|
Revision 4332, 0.6 kB
(checked in by sam, 7 months ago)
|
|
Nicer make check output for our custom tests.
|
-
Property svn:executable set to
*
|
| Line | |
|---|
| 1 | #!/bin/sh |
|---|
| 2 | |
|---|
| 3 | ret=0 |
|---|
| 4 | |
|---|
| 5 | # |
|---|
| 6 | # Check that the Win32 config.h is in sync with config.h.in |
|---|
| 7 | # |
|---|
| 8 | |
|---|
| 9 | config_h_in=$(dirname "$0")/../config.h.in |
|---|
| 10 | win32_config_h=$(dirname "$0")/../win32/config.h |
|---|
| 11 | |
|---|
| 12 | nfails=0 |
|---|
| 13 | ntokens=0 |
|---|
| 14 | for key in $(sed -ne 's/.*#undef *\([A-Za-z0-9_]*\).*/\1/p' "$config_h_in"); |
|---|
| 15 | do |
|---|
| 16 | ntokens=$(($ntokens + 1)) |
|---|
| 17 | if ! grep '[ef] \<'"$key"'\>' "$win32_config_h" >/dev/null 2>&1; then |
|---|
| 18 | echo "error: $key missing from win32/config.h" |
|---|
| 19 | nfails=$(($nfails + 1)) |
|---|
| 20 | fi |
|---|
| 21 | done |
|---|
| 22 | |
|---|
| 23 | echo "$ntokens tokens, $nfails errors in Win32 config.h" |
|---|
| 24 | |
|---|
| 25 | if test "$nfails" != "0"; then |
|---|
| 26 | exit 1 |
|---|
| 27 | fi |
|---|
| 28 | |
|---|
| 29 | exit 0 |
|---|