Changeset 20141


Ignore:
Timestamp:
02/12/16 08:53:59 (9 years ago)
Author:
Mathieu Morlighem
Message:

Added * option to IdFrom String

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/test/NightlyRun/IdFromString.m

    r19370 r20141  
    88%      ids=IdFromString('Parallel');
    99%      ids=IdFromString('79North');
     10%      ids=IdFromString('*');          %Print all tests
    1011
    1112%Check input
     
    1819
    1920%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''}']);
     21if 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''}']);
     23else
     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''}']);
     25end
    2126
    2227%return if no test found
     
    3237        eval(['ids=[ids ' ids_raw{i} '];']);
    3338end
     39ids=sort(ids);
    3440
    3541%Display names
Note: See TracChangeset for help on using the changeset viewer.