Skip to content

Commit 8ffeac8

Browse files
committed
test-foreign.l only works with arm/aarch/x86/i386
1 parent f9e1a59 commit 8ffeac8

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.travis.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,15 @@ if [ "$QEMU" != "" ]; then
9797
eusgl $test_l;
9898
export TMP_EXIT_STATUS=$?
9999

100-
travis_time_end `expr 32 - $TMP_EXIT_STATUS`
100+
export CONTINUE=0
101+
# test-foreign.l only works for x86 / arm
102+
if [[ $test_l =~ test-foreign.l && ! "$(gcc -dumpmachine)" =~ "aarch".*|"arm".*|"x86_64".*|"i"[0-9]"86".* ]]; then export CONTINUE=1; fi
103+
104+
if [[ $CONTINUE == 0 ]]; then travis_time_end `expr 32 - $TMP_EXIT_STATUS`; else travis_time_end 33; fi
105+
106+
if [[ $TMP_EXIT_STATUS != 0 ]]; then echo "Failed running $test_l. Exiting with $TMP_EXIT_STATUS"; fi
107+
108+
if [[ $CONTINUE != 0 ]]; then export TMP_EXIT_STATUS=0; fi
101109

102110
export EXIT_STATUS=`expr $TMP_EXIT_STATUS + $EXIT_STATUS`;
103111

@@ -106,7 +114,6 @@ if [ "$QEMU" != "" ]; then
106114
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))))"
107115
export TMP_EXIT_STATUS=$?
108116

109-
export CONTINUE=0
110117
# const.l does not compilable https://github.com/euslisp/EusLisp/issues/318
111118
if [[ $test_l =~ const.l ]]; then export CONTINUE=1; fi
112119

0 commit comments

Comments
 (0)