Changeset 5501


Ignore:
Timestamp:
08/23/10 09:45:22 (15 years ago)
Author:
Mathieu Morlighem
Message:

Improved runme (string id won't failed and we allows go back to where we started in case qmu crashes, which happens very often ;)) and updated some tests now that vz is spcd

Location:
issm/trunk/test
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/test/NightlyRun/runme.m

    r5362 r5501  
    109109
    110110%Loop over tests and launch sequence
     111root=pwd;
    111112for id=test_ids,
    112113        try,
    113114
    114115                %Execute test
     116                eval(['cd ' root ]);
     117                id_string=IdToName(id);
    115118                eval(['test' num2str(id)]);
    116119
     
    147150                                        if (error_diff>tolerance);
    148151                                                disp(sprintf(['ERROR   difference: %-7.2g > %7.2g test id: %i test name: %s field: %s'],...
    149                                                         error_diff,tolerance,id,IdToName(id),fieldname));
     152                                                        error_diff,tolerance,id,id_string,fieldname));
    150153                                        else
    151154                                                disp(sprintf(['SUCCESS difference: %-7.2g < %7.2g test id: %i test name: %s field: %s'],...
    152                                                         error_diff,tolerance,id,IdToName(id),fieldname));
     155                                                        error_diff,tolerance,id,id_string,fieldname));
    153156                                        end
    154157
     
    163166                                                fprintf(fid,'\n------------------------------------------------------------------\n');
    164167                                                fclose(fid);
    165                                                 disp(sprintf(['FAILURE difference: N/A test id: %i test name: %s field: %s'],id,IdToName(id),fieldname));
     168                                                disp(sprintf(['FAILURE difference: N/A test id: %i test name: %s field: %s'],id,id_string,fieldname));
    166169                                        elseif strcmpi(output,'daily');
    167170                                                fid=fopen([ISSM_DIR '/dailylog/matlaberror.log'], 'at');
     
    169172                                                fprintf(fid,'\n------------------------------------------------------------------\n');
    170173                                                fclose(fid);
    171                                                 disp(sprintf(['FAILURE difference: N/A test id: %i test name: %s field: %s'],id,IdToName(id),fieldname));
     174                                                disp(sprintf(['FAILURE difference: N/A test id: %i test name: %s field: %s'],id,id_string,fieldname));
    172175                                        else
    173176                                                rethrow(me2);
     
    187190                        fprintf(fid,'\n------------------------------------------------------------------\n');
    188191                        fclose(fid);
    189                         disp(sprintf(['FAILURE difference: N/A test id: %i test name: %s field: %s'],id,IdToName(id),'N/A'));
     192                        disp(sprintf(['FAILURE difference: N/A test id: %i test name: %s field: %s'],id,id_string,'N/A'));
    190193                elseif strcmpi(output,'daily');
    191194                        fid=fopen([ISSM_DIR '/dailylog/matlaberror.log'], 'at');
     
    193196                        fprintf(fid,'\n------------------------------------------------------------------\n');
    194197                        fclose(fid);
    195                         disp(sprintf(['FAILURE difference: N/A test id: %i test name: %s field: %s'],id,IdToName(id),'N/A'));
     198                        disp(sprintf(['FAILURE difference: N/A test id: %i test name: %s field: %s'],id,id_string,'N/A'));
    196199                else
    197200                        rethrow(me);
Note: See TracChangeset for help on using the changeset viewer.