File: make-check

package info (click to toggle)
atftp 0.8.0-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 968 kB
  • sloc: ansic: 7,028; sh: 939; makefile: 36
file content (24 lines) | stat: -rw-r--r-- 333 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
#!/bin/sh

set -eu

WORKDIR=$(mktemp -d)

trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM

# Copy the source tree:
cp -r . $WORKDIR
cd $WORKDIR

# Clean if necessary:
if [ -f debian/autoreconf.before ]; then
    dh_auto_clean
    dh_autoreconf_clean
fi

# Reconfigure:
dh_autoreconf
dh_auto_configure

# Run the tests:
dh_auto_test