1 2 static char help[] = "Tests options file parsing.\n\n"; 3 4 #include <petscsys.h> 5 #include <petscviewer.h> 6 7 int main(int argc,char **argv) 8 { 9 10 PetscCall(PetscInitialize(&argc,&argv,"ex54options",help)); 11 PetscCall(PetscFinalize()); 12 return 0; 13 } 14 15 /*TEST 16 17 test: 18 suffix: 0 19 localrunfiles: ex54options 20 args: -options_left 0 -options_view 21 filter: egrep -v "(malloc|nox|display|saws_port|vecscatter|check_pointer_intensity|cuda_initialize|error_output_stdout|use_gpu_aware_mpi|checkstack)" | egrep "^-" 22 testset: 23 args: -options_left 0 -options_view 24 test: 25 suffix: 1 26 localrunfiles: ex54options ex54options_1a_wrong ex54options_1b_wrong ex54options_1c_wrong ex54options_1d_wrong ex54options_1e_wrong ex54options_1f_wrong ex54options_1g_wrong 27 args: -options_file {{ex54options_1a_wrong ex54options_1b_wrong ex54options_1c_wrong ex54options_1d_wrong ex54options_1e_wrong ex54options_1f_wrong ex54options_1g_wrong}separate output} 28 # Some machines use the fullpath in the program name, so filter with " ex54options" and not "ex54options" 29 filter: Error: egrep -v "(malloc|nox|display|saws_port|vecscatter|check_pointer_intensity|cuda_initialize|error_output_stdout|use_gpu_aware_mpi|checkstack)" | egrep " ex54options" 30 test: 31 suffix: 1_options_file-ex54options_1h 32 localrunfiles: ex54options ex54options_1h 33 args: -options_file ex54options_1h 34 filter: egrep -v "(malloc|nox|display|saws_port|vecscatter|check_pointer_intensity|cuda_initialize|error_output_stdout|use_gpu_aware_mpi|checkstack)" | egrep "^-" 35 36 TEST*/ 37