You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: aa_test_inittest.m
    path of file: ./repos/automaticanalysis/developer
    
    the code of the file until where you have to start completion: function aap = aa_test_inittest(testpath, parameterfile, deleteprevious, wheretoprocess)

    
function aap = aa_test_inittest(testpath, parameterfile, deleteprevious, wheretoprocess)

% this is a convenience function called by testing scripts to setup
% data and results directories and required processing options

if isempty(parameterfile)
    aap = aarecipe([testpath '.xml']);
else
    aap = aarecipe(parameterfile,[testpath '.xml']);
end