1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
#!/bin/sh
set -e
# Sanity check
test -n "${AUTOPKGTEST_TMP}"
# Copy all tests to an empty directory and change to it.
cp -pr tests "${AUTOPKGTEST_TMP}/"
cd "${AUTOPKGTEST_TMP}/"
# Use installed copy instead of built one
sed -e 's:\$builddir/src/zile:/usr/bin/zile:g' -i tests/run-lisp-test.pl
# Run all tests. Use a hardcoded dumb terminal to avoid test failures
# if $TERM is unset. Has the nice side-effect that running the tests
# in a local xterm doesn't leave the xterm in an unusable state
# afterwards.
env TERM=vt100 EDITOR_CMD=/usr/bin/zile perl tests/run-lisp-test.pl $(find tests -name '*.el')
|