ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/makeall
(Generate patch)

Comparing ray/makeall (file contents):
Revision 1.29 by greg, Wed May 30 14:14:55 2018 UTC vs.
Revision 1.30 by greg, Fri Sep 11 20:38:46 2020 UTC

# Line 7 | Line 7 | if ( $#argv < 1 ) then
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
# Line 20 | Line 21 | 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 )

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines