File: run-tests

package info (click to toggle)
fim 0.7.1-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,048 kB
  • sloc: cpp: 32,769; ansic: 4,507; makefile: 1,549; sh: 1,502; perl: 189; exp: 28; awk: 9
file content (25 lines) | stat: -rwxr-xr-x 517 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh

MODE=${1-}

if [ -z "$MODE" ] ; then
    # For autopkgtest
    VAR="FIM_EXE=/usr/bin/fim abs_builddir="
    # Generate the Makefile from scratch
    dh_autoreconf_clean
    dh_autoreconf
    dh_auto_configure
    # Disable the command for target "all"
    sed -i -e 's/$(MAKE) $(AM_MAKEFLAGS) all-recursive/#/' Makefile
else
    VAR=
fi

# Pretend we are in a basic terminal
export TERM=vt102

# Ensure that there is no $DISPLAY when running the tests
export DISPLAY=

# Run the unit tests
make tests $VAR