Changeset 20500 for issm/trunk/test/NightlyRun/IdFromString.m
- Timestamp:
- 04/12/16 21:32:01 (9 years ago)
- Location:
- issm/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk
- Property svn:ignore
-
old new 1 build-js 2 build-esmf 3 build-gcm 1 4 build-fw 2 5 build-ad
-
- Property svn:mergeinfo changed
/issm/trunk-jpl merged: 19104,19106-19126,19128-19134,19136-19170,19172-19299,19302,19306-19405,19407-19604,19606-19668,19670-20496
- Property svn:ignore
-
issm/trunk/test
- Property svn:mergeinfo changed
-
issm/trunk/test/NightlyRun/IdFromString.m
r19105 r20500 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 … … 27 32 28 33 %Process string (delete return carriage); 29 ids_raw=strsplit (ids_raw,char(10));34 ids_raw=strsplit_strict(ids_raw,char(10)); 30 35 ids_raw=ids_raw(1:end-1); 31 36 for i=1:length(ids_raw), 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.