Skip to content

Commit 5cf1091

Browse files
committed
run test under test/ and lisp/image/jpeg/ directory for QEMU
1 parent d396e4b commit 5cf1091

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.travis.sh

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,42 @@ if [ "$QEMU" != "" ]; then
7474
eval "$(dpkg-buildflags --export=sh)"
7575
make -C lisp -f Makefile.Linux eus0 eus1 eus2 eusg eusx eusgl eus eusjpeg
7676
travis_time_end
77+
78+
if [[ `gcc -dumpmachine | egrep "^(arm|aarch)"` != "" ]]; then
79+
export ARCHDIR=LinuxARM
80+
elif [[ `gcc -dumpmachine | egrep "^x86_64"` != "" ]]; then
81+
export ARCHDIR=Linux64
82+
else
83+
export ARCHDIR=Linux
84+
fi
85+
export PATH=`pwd`/$ARCHDIR/bin:$PATH
86+
87+
export EXIT_STATUS=0;
88+
set +e
89+
# run test in EusLisp/test
90+
for test_l in test/*.l; do
91+
92+
travis_time_start euslisp.${test_l##*/}.test
93+
94+
eusgl $test_l;
95+
export TMP_EXIT_STATUS=$?
96+
97+
travis_time_end `expr 32 - $TMP_EXIT_STATUS`
98+
99+
export EXIT_STATUS=`expr $TMP_EXIT_STATUS + $EXIT_STATUS`;
100+
done;
101+
echo "Exit status : $EXIT_STATUS";
102+
103+
travis_time_start euslisp.eusjpeg.test
104+
105+
eusgl '(progn (load (format nil "~A/lisp/image/jpeg/eusjpeg.l" *eusdir*))(image::write-jpeg-file "test.jpg" (instance color-image24 :init 100 100)) (print *user*) (unix::exit))'
106+
107+
export TMP_EXIT_STATUS=$?
108+
109+
travis_time_end `expr 32 - $TMP_EXIT_STATUS`
110+
export EXIT_STATUS=`expr $TMP_EXIT_STATUS + $EXIT_STATUS`;
111+
echo "Exit status : $EXIT_STATUS";
112+
[ $EXIT_STATUS == 0 ] || exit 1
77113
exit 0
78114
fi
79115

0 commit comments

Comments
 (0)