]> git.ozlabs.org Git - ccan/blob - tools/test_all.sh
tdb2: cancel transactions on tdb_close
[ccan] / tools / test_all.sh
1 #! /bin/sh
2
3 # First, test normal config.
4 if ! make -s; then
5     echo Normal config failed.
6     exit 1
7 fi
8
9 # Now, remove one HAVE_ at a time.
10 cp config.h original-config.h
11 trap "mv original-config.h config.h && rm -f .newconfig" EXIT
12
13 while grep -q '1$' config.h; do
14     tr '\012' @ < config.h | sed 's/1@/0@/' | tr @ '\012' > .newconfig
15     diff -u config.h .newconfig
16     mv .newconfig config.h
17     if ! make -s; then
18         echo Failed config:
19         cat config.h
20         exit 1
21     fi
22 done