source: libcaca/trunk/test/check-win32 @ 4332

Last change on this file since 4332 was 4332, checked in by Sam Hocevar, 10 years ago

Nicer make check output for our custom tests.

  • Property svn:executable set to *
File size: 575 bytes
Line 
1#!/bin/sh
2
3ret=0
4
5#
6# Check that the Win32 config.h is in sync with config.h.in
7#
8
9config_h_in=$(dirname "$0")/../config.h.in
10win32_config_h=$(dirname "$0")/../win32/config.h
11
12nfails=0
13ntokens=0
14for key in $(sed -ne 's/.*#undef *\([A-Za-z0-9_]*\).*/\1/p' "$config_h_in");
15do
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
21done
22
23echo "$ntokens tokens, $nfails errors in Win32 config.h"
24
25if test "$nfails" != "0"; then
26  exit 1
27fi
28
29exit 0
30
Note: See TracBrowser for help on using the repository browser.