Changeset 20141
- Timestamp:
- 02/12/16 08:53:59 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/test/NightlyRun/IdFromString.m
r19370 r20141 8 8 % ids=IdFromString('Parallel'); 9 9 % ids=IdFromString('79North'); 10 % ids=IdFromString('*'); %Print all tests 10 11 11 12 %Check input … … 18 19 19 20 %Grep string 20 [dummy ids_raw]=system(['find ./ -name "test[0-9]*.m" | xargs grep "%Test Name:" | grep ' string ' | sed -e "s/test/ /g" -e "s/\.m:/ /g" | awk {''print $2''}']); 21 if strcmp(string,'*'), 22 [dummy ids_raw]=system(['find ./ -name "test[0-9]*.m" | xargs grep "%Test Name:" | sed -e "s/test/ /g" -e "s/\.m:/ /g" | awk {''print $2''}']); 23 else 24 [dummy ids_raw]=system(['find ./ -name "test[0-9]*.m" | xargs grep "%Test Name:" | grep ' string ' | sed -e "s/test/ /g" -e "s/\.m:/ /g" | awk {''print $2''}']); 25 end 21 26 22 27 %return if no test found … … 32 37 eval(['ids=[ids ' ids_raw{i} '];']); 33 38 end 39 ids=sort(ids); 34 40 35 41 %Display names
Note:
See TracChangeset
for help on using the changeset viewer.