summaryrefslogtreecommitdiff
path: root/tests/check.test
blob: 4f9945a3d4c222e9a697d18f5baf813e9341b95a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#! /bin/sh

# Test Automake style tests.

. $srcdir/defs || exit 1

cat > Makefile.am << 'END'
TESTS = frob.test
END

: > frob.test

$ACLOCAL || exit 1
$AUTOMAKE || exit 1

grep '^check-TESTS:' Makefile.in || exit 1
grep '^check-DEJAGNU' Makefile.in && exit 1

# check-TESTS is phony.
sed -n '/^\.PHONY:/,/^$/p' Makefile.in | grep check-TESTS || exit 1

exit 0