File: make-check

package info (click to toggle)
bibtool 2.67%2Bds-5
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,608 kB
  • sloc: ansic: 11,646; perl: 7,482; makefile: 543; sh: 301; tcl: 51
file content (30 lines) | stat: -rwxr-xr-x 706 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
26
27
28
29
30
#!/bin/sh
# autopkgtest check based on upstream check ($ make -C test)
# written for Debian by Jerome Benoit <calculus@rezozer.net> on behalf of the Debian Tex Maintainers team
# copyright: 2015-2016 Jerome Benoit <calculus@rezozer.net>
# distributed under the terms and conditions of GPL version 2 or later

set -ue

cp -prd test $ADTTMP

cat << EOF > $ADTTMP/test/GNUmakefile
#!/usr/bin/make -f

PERL = /usr/bin/perl

BIBTOOLPROG = /usr/bin/bibtool

default:

check:
	BIBTOOL_PRG=\$(BIBTOOLPROG) \$(PERL) -Ilib -MBUnit -e "exit all()" || ( find . -name '*.err*' -o -name '*.out*' -printf "\n%f" | sort | xargs tail -n +1 ; exit 1 ; )

clean:
	rm -f *.out* *.err*

EOF

make -C $ADTTMP/test check

exit 0