Debian Codegraph @

debian/tests/run-tests

raw
1 #!/bin/sh
2
3 MODE=${1-}
4
5 if [ -z "$MODE" ] ; then
6 # For autopkgtest
7 VAR="FIM_EXE=/usr/bin/fim abs_builddir="
8 # Generate the Makefile from scratch
9 dh_autoreconf_clean
10 dh_autoreconf
11 dh_auto_configure
12 # Disable the command for target "all"
13 sed -i -e 's/$(MAKE) $(AM_MAKEFLAGS) all-recursive/#/' Makefile
14 else
15 VAR=
16 fi
17
18 # Pretend we are in a basic terminal
19 export TERM=vt102
20
21 # Ensure that there is no $DISPLAY when running the tests
22 export DISPLAY=
23
24 # Run the unit tests
25 make tests $VAR