7 |
|
echo "Usage: makeall install [clean] [make options]" |
8 |
|
echo " or: makeall clean" |
9 |
|
echo " or: makeall library" |
10 |
+ |
echo " or: makeall test" |
11 |
|
exit 1 |
12 |
|
endif |
13 |
|
if ( "$1" == library ) then |
21 |
|
echo " RAYPATH=.:$ldir" |
22 |
|
echo " export RAYPATH" |
23 |
|
echo "" |
24 |
+ |
exit 0 |
25 |
+ |
endif |
26 |
+ |
if ( "$1" == test ) then |
27 |
+ |
cd test |
28 |
+ |
set fails=() |
29 |
+ |
foreach d (cal gen util px renders) |
30 |
+ |
cd $d |
31 |
+ |
make -k clean all && make clean |
32 |
+ |
if ($status) set fails=($fails $d) |
33 |
+ |
cd .. |
34 |
+ |
end |
35 |
+ |
if ($#fails) then |
36 |
+ |
echo "Unit tests failed in $#fails directories" |
37 |
+ |
echo "Run 'make' manually in test/ subfolders: $fails" |
38 |
+ |
exit 1 |
39 |
+ |
endif |
40 |
+ |
echo "All tests passed successfully." |
41 |
|
exit 0 |
42 |
|
endif |
43 |
|
set srcdirs=( common rt meta cv gen ot px hd util cal ) |