10 |
|
|
11 |
set on_error_die |
set on_error_die |
12 |
set passaccuracy=7 |
set passaccuracy=7 |
13 |
printf '%s\t%s\t%s\t%s\t%s\t%s\t%s\n' " " Make " " " " Exact "# of" " " > summary.txt |
printf '%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\n' " " Make " " " " Exact "# of" " " " " > summary.txt |
14 |
printf '%s\t%s\t%s\t%s\t%s\t%s\t%s\n' Config Depend Compile Execute Match Digits Experiment >> summary.txt |
printf '%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\n' Config Depend Compile Execute Match Digits Status Experiment >> summary.txt |
15 |
|
|
16 |
# Pass any arguments |
# Pass any arguments |
17 |
foreach arg ($argv) |
foreach arg ($argv) |
49 |
set execute=- |
set execute=- |
50 |
set exactmatch=- |
set exactmatch=- |
51 |
set accuracy=- |
set accuracy=- |
52 |
|
set pass=FAIL |
53 |
echo ============================================================================== |
echo ============================================================================== |
54 |
echo Entering $dr |
echo Entering $dr |
55 |
cd $dr |
cd $dr |
123 |
if ($?fail ) then |
if ($?fail ) then |
124 |
if (! $?fails) set fails |
if (! $?fails) set fails |
125 |
set fails=($fails $dr) |
set fails=($fails $dr) |
126 |
|
set pass=FAIL |
127 |
echo " ***** FAIL *****" |
echo " ***** FAIL *****" |
128 |
else |
else |
129 |
if (! $?passes) set passes |
if (! $?passes) set passes |
130 |
set passes=($passes $dr) |
set passes=($passes $dr) |
131 |
|
set pass=Pass |
132 |
echo "" |
echo "" |
133 |
echo " ***** PASS (grade $lvl) *****" |
echo " ***** PASS (grade $lvl) *****" |
134 |
endif |
endif |
135 |
set accuracy=$lvl |
set accuracy=$lvl |
136 |
else |
else |
137 |
set exactmatch=Yes |
set exactmatch=Yes |
138 |
|
set pass=Pass |
139 |
echo "" |
echo "" |
140 |
echo Model passed at highest accuracy. |
echo Model passed at highest accuracy. |
141 |
echo "" |
echo "" |
149 |
tail output.txt |
tail output.txt |
150 |
echo The runtime error occured in \"$dr\" |
echo The runtime error occured in \"$dr\" |
151 |
if ($?on_error_die) exit 1 |
if ($?on_error_die) exit 1 |
152 |
|
set pass=- |
153 |
endif |
endif |
154 |
|
rm -f high.txt oldhigh.txt low.txt oldlow.txt output.txt make.log |
155 |
endif |
endif |
156 |
cd .. |
cd .. |
157 |
endif |
endif |
159 |
cd .. |
cd .. |
160 |
# Pretty summary |
# Pretty summary |
161 |
printresults: |
printresults: |
162 |
printf ' %s\t %s\t %s\t %s\t %s\t %s\t%s\n' $config $makedepend $compile $execute $exactmatch $accuracy $dr >> summary.txt |
printf ' %s\t %s\t %s\t %s\t %s\t %s\t %s\t%s\n' $config $makedepend $compile $execute $exactmatch $accuracy $pass $dr >> summary.txt |
163 |
end |
end |
164 |
echo ============================================================================== |
echo ============================================================================== |
165 |
echo "" |
echo "" |