Skip to content

Commit 1b1f07b

Browse files
committed
add compiled test for QEMU
1 parent f9e3e16 commit 1b1f07b

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.travis.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,23 @@ if [ "$QEMU" != "" ]; then
9999
travis_time_end `expr 32 - $TMP_EXIT_STATUS`
100100

101101
export EXIT_STATUS=`expr $TMP_EXIT_STATUS + $EXIT_STATUS`;
102+
103+
travis_time_start compiled.${test_l##*/}.test
104+
105+
eusgl "(let ((o (namestring (merge-pathnames \".o\" \"$test_l\"))) (so (namestring (merge-pathnames \".so\" \"$test_l\")))) (compile-file \"$test_l\" :o o) (if (probe-file so) (load so) (exit 1))))"
106+
export TMP_EXIT_STATUS=$?
107+
108+
export CONTINUE=0
109+
# const.l does not compilable https://github.com/euslisp/EusLisp/issues/318
110+
if [[ $test_l =~ const.l ]]; then export CONTINUE=1; fi
111+
112+
if [[ $CONTINUE == 0 ]]; then travis_time_end `expr 32 - $TMP_EXIT_STATUS`; else travis_time_end 33; fi
113+
114+
if [[ $TMP_EXIT_STATUS != 0 ]]; then echo "Failed running $test_l. Exiting with $TMP_EXIT_STATUS"; fi
115+
116+
if [[ $CONTINUE != 0 ]]; then continue; fi
117+
118+
export EXIT_STATUS=`expr $TMP_EXIT_STATUS + $EXIT_STATUS`;
102119
done;
103120
echo "Exit status : $EXIT_STATUS";
104121

0 commit comments

Comments
 (0)