소스 검색

Add a test for win32/config.h synchronisation.

tags/v0.99.beta17
Sam Hocevar sam 15 년 전
부모
커밋
a769de4d5a
2개의 변경된 파일26개의 추가작업 그리고 1개의 파일을 삭제
  1. +3
    -1
      tests/Makefile.am
  2. +23
    -0
      tests/check-build

+ 3
- 1
tests/Makefile.am 파일 보기

@@ -6,9 +6,11 @@ if USE_CPPUNIT
cppunit_tests = caca-test
endif

EXTRA_DIST = check-build

noinst_PROGRAMS = simple bench $(cppunit_tests)

TESTS = simple $(cppunit_tests)
TESTS = simple check-build $(cppunit_tests)

simple_SOURCES = simple.c
simple_LDADD = ../caca/libcaca.la


+ 23
- 0
tests/check-build 파일 보기

@@ -0,0 +1,23 @@
#!/bin/sh

failure=0

config_h_in=$(dirname "$0")/../config.h.in
win32_config_h=$(dirname "$0")/../win32/config.h

for key in $(sed -ne 's/.*#undef *\([A-Za-z0-9_]*\).*/\1/p' "$config_h_in");
do
if ! grep '[ef] \<'"$key"'\>' "$win32_config_h" >/dev/null 2>&1; then
echo "error: $key missing from win32/config.h"
failure=1
fi
done

if test "$failure" != "0"; then
exit 1
else
echo "0 errors in Win32 config.h"
fi

exit 0


불러오는 중...
취소
저장