Ignore:
Timestamp:
Feb 8, 2010, 1:40:21 AM (10 years ago)
Author:
Sam Hocevar
Message:

Nicer make check output for our custom tests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/test/check-win32

    r4320 r4332  
    1010win32_config_h=$(dirname "$0")/../win32/config.h
    1111
    12 failure=0
     12nfails=0
     13ntokens=0
    1314for key in $(sed -ne 's/.*#undef *\([A-Za-z0-9_]*\).*/\1/p' "$config_h_in");
    1415do
     16  ntokens=$(($ntokens + 1))
    1517  if ! grep '[ef] \<'"$key"'\>' "$win32_config_h" >/dev/null 2>&1; then
    1618    echo "error: $key missing from win32/config.h"
    17     failure=1
     19    nfails=$(($nfails + 1))
    1820  fi
    1921done
    2022
    21 if test "$failure" != "0"; then
     23echo "$ntokens tokens, $nfails errors in Win32 config.h"
     24
     25if test "$nfails" != "0"; then
    2226  exit 1
    2327fi
    2428
    25 echo "0 errors in Win32 config.h"
    2629exit 0
    2730
Note: See TracChangeset for help on using the changeset viewer.