File: testsuite

package info (click to toggle)
zile 2.6.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 7,252 kB
  • sloc: ansic: 74,161; sh: 9,167; lisp: 665; makefile: 378; perl: 171
file content (19 lines) | stat: -rwxr-xr-x 610 bytes parent folder | download
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')