* t/parallel-tests-recheck-depends-on-all.sh: Skip the test
when cross-compiling.
* t/vala-vapi.sh: Skip tests that do not make sense when
cross-compiling.
* t/yacc-basic.sh: Likewise.
* t/yacc-cxx.sh: Likewise.
Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
# See automake bug#11252.
am_parallel_tests=yes
-required=cc
+required='cc native'
. ./defs || Exit 1
cat >> configure.ac << 'END'
ls -l # For debugging.
cat zardoz.c # Likewise.
grep 'BARBAR' zardoz.c
-$MAKE test1
+cross_compiling || $MAKE test1 || Exit 1
# Simple check on remake rules.
$sleep
$MAKE
cat zardoz.c # For debugging.
grep 'BAZBAZ' zardoz.c
-$MAKE test2
+cross_compiling || $MAKE test2 || Exit 1
# Check the distribution.
$MAKE distcheck
if cross_compiling; then :; else
echo a | ./foo
echo b | ./foo && Exit 1
+ echo a | ./bar
+ echo b | ./bar && Exit 1
: For shells with busted 'set -e'.
fi
-echo a | ./bar
-echo b | ./bar && Exit 1
-
# The Yacc-derived C sources must be shipped.
$MAKE echo-distcom
$MAKE -s echo-distcom | grep '[ /]parse\.c '
test -f foo3-parse3.output
test -f foo4-parse4.output
-for i in 1 2 3 4; do
- echo a | ./foo$i
- echo b | ./foo$i && Exit 1
- : For shells with busted 'set -e'.
-done
+if cross_compiling; then :; else
+ for i in 1 2 3 4; do
+ echo a | ./foo$i
+ echo b | ./foo$i && Exit 1
+ : For shells with busted 'set -e'.
+ done
+fi
# The Yacc-derived C++ sources must be shipped.
$MAKE echo-distcom