forked from digego/extempore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest-examples.sh
executable file
·36 lines (33 loc) · 981 Bytes
/
test-examples.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
: ${EXAMPLES:=
"examples/core/audio_101.xtm \
examples/core/fmsynth.xtm \
examples/core/mtaudio.xtm \
examples/core/nbody_lang_shootout.xtm \
examples/core/polysynth.xtm \
examples/core/temporal_recursion_101.xtm \
examples/external/electrofunk.xtm \
examples/external/fluid_dynamics.xtm \
examples/external/opengl_101.xtm \
examples/external/openvg.xtm \
examples/external/pic.xtm \
examples/external/raymarcher.xtm \
examples/external/sampler.xtm \
examples/external/xtmrender1.xtm \
examples/external/xtmrender2.xtm \
examples/external/xtmrender3.xtm \
examples/external/xtmrender4.xtm"}
for f in $EXAMPLES
do
./extempore --eval "(sys:run-tests \"$f\" #t #t)"
rc=$?
if (($rc != 0)); then
echo -e "\033[0;31mError in example $f\033[0;00m"
echo
exit $rc
else
echo -e "\033[0;32mSuccessfully ran example $f\033[0;00m"
echo
fi
done
exit 0