Browse Source

test: refactor a lot of test suite related stuff.

tags/v0.99.beta20
Sam Hocevar 9 years ago
parent
commit
5b50cfa59c
18 changed files with 34 additions and 29 deletions
  1. +8
    -4
      .gitignore
  2. +1
    -2
      Makefile.am
  3. +2
    -0
      caca/Makefile.am
  4. +4
    -4
      caca/t/Makefile.am
  5. +0
    -0
      caca/t/bench.c
  6. +0
    -0
      caca/t/bench.vcxproj
  7. +0
    -0
      caca/t/caca-test.cpp
  8. +0
    -0
      caca/t/canvas.cpp
  9. +0
    -0
      caca/t/check-copyright
  10. +18
    -0
      caca/t/check-doxygen
  11. +0
    -0
      caca/t/check-source
  12. +0
    -0
      caca/t/check-win32
  13. +0
    -0
      caca/t/dirty.cpp
  14. +0
    -0
      caca/t/driver.cpp
  15. +0
    -0
      caca/t/export.cpp
  16. +0
    -0
      caca/t/simple.c
  17. +1
    -1
      configure.ac
  18. +0
    -18
      test/check-doxygen

+ 8
- 4
.gitignore View File

@@ -24,6 +24,14 @@ stamp-*
*-stamp
INSTALL
caca-config
# Testsuite binaries
caca/t/bench
caca/t/caca-test
caca/t/simple
caca/t/*.log
caca/t/*.trs
ruby/*.log
ruby/*.trs
# caca-sharp binaries
caca-sharp/*.dll
caca-sharp/*.config
@@ -88,10 +96,6 @@ src/cacaplay
src/cacaserver
src/cacaclock
src/img2txt
# Testsuite binaries
test/bench
test/caca-test
test/simple
# Tools binaries
tools/optipal
tools/makefont


+ 1
- 2
Makefile.am View File

@@ -1,7 +1,6 @@

SUBDIRS = kernel caca src examples tools \
cxx caca-sharp python ruby java \
doc test
cxx caca-sharp python ruby java doc
DIST_SUBDIRS = $(SUBDIRS) win32

EXTRA_DIST = NOTES COPYING.GPL COPYING.ISC COPYING.LGPL bootstrap build-dos build-kernel build-win32 build-win64 caca-config.in libcaca.spec libcaca.sln


+ 2
- 0
caca/Makefile.am View File

@@ -1,4 +1,6 @@

SUBDIRS = . t

EXTRA_DIST = caca.pc.in \
mono9.data monobold12.data \
libcaca.vcxproj libcaca.def


test/Makefile.am → caca/t/Makefile.am View File

@@ -1,5 +1,5 @@

AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/caca -I../caca
AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/caca -I..

if USE_CPPUNIT
cppunit_tests = caca-test
@@ -16,12 +16,12 @@ TESTS = simple check-copyright check-source check-win32 \
$(doxygen_tests) $(cppunit_tests)

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

bench_SOURCES = bench.c
bench_LDADD = ../caca/libcaca.la
bench_LDADD = ../libcaca.la

caca_test_SOURCES = caca-test.cpp canvas.cpp dirty.cpp driver.cpp export.cpp
caca_test_CXXFLAGS = $(CPPUNIT_CFLAGS)
caca_test_LDADD = ../caca/libcaca.la $(CPPUNIT_LIBS)
caca_test_LDADD = ../libcaca.la $(CPPUNIT_LIBS)


test/bench.c → caca/t/bench.c View File


test/bench.vcxproj → caca/t/bench.vcxproj View File


test/caca-test.cpp → caca/t/caca-test.cpp View File


test/canvas.cpp → caca/t/canvas.cpp View File


test/check-copyright → caca/t/check-copyright View File


+ 18
- 0
caca/t/check-doxygen View File

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

#
# Check for Doxygen warnings
#
nfiles="$(grep -c "Parsing file" < ../../doc/doxygen.log)"
if nfails="$(grep -c Warning: ../../doc/doxygen.log 2>/dev/null)"; then
grep Warning: ../../doc/doxygen.log | sed 's/\(.\{75\}\)...*/\1 .../'
fi

echo "$nfiles files, $nfails visible errors in documentation"

if test "$nfails" != "0"; then
exit 1
fi

exit 0


test/check-source → caca/t/check-source View File


test/check-win32 → caca/t/check-win32 View File


test/dirty.cpp → caca/t/dirty.cpp View File


test/driver.cpp → caca/t/driver.cpp View File


test/export.cpp → caca/t/export.cpp View File


test/simple.c → caca/t/simple.c View File


+ 1
- 1
configure.ac View File

@@ -555,9 +555,9 @@ AC_CONFIG_FILES(
[Makefile
kernel/Makefile
caca/Makefile
caca/t/Makefile
src/Makefile
examples/Makefile
test/Makefile
tools/Makefile
java/Makefile
caca-sharp/Makefile


+ 0
- 18
test/check-doxygen View File

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

#
# Check for Doxygen warnings
#
nfiles="$(grep -c "Parsing file" < ../doc/doxygen.log)"
if nfails="$(grep -c Warning: ../doc/doxygen.log 2>/dev/null)"; then
grep Warning: ../doc/doxygen.log | sed 's/\(.\{75\}\)...*/\1 .../'
fi

echo "$nfiles files, $nfails visible errors in documentation"

if test "$nfails" != "0"; then
exit 1
fi

exit 0


Loading…
Cancel
Save