1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-12-04 14:46:30 -05:00

Cleanup: tests Makefile.am

This commit is contained in:
Marvin Scholz 2018-08-07 20:10:49 +02:00
parent 5136d93536
commit 7b7a9830a5
2 changed files with 47 additions and 16 deletions

9
.gitignore vendored
View File

@ -27,13 +27,18 @@ missing
mkinstalldirs mkinstalldirs
*.tar.gz *.tar.gz
config.h.in~ config.h.in~
/build-aux
# Ignore test output files # Ignore test output files
/tests/*.log /tests/*.log
/tests/*.trs /tests/*.trs
# Ignore test compiled binary files # Ignore test build artifacts
/tests/tests/ctest_*.test /tests/*.lo
/tests/*.la
/tests/.deps/
/tests/.libs/
/tests/ctest_*_test
# Ignore auxiliary files # Ignore auxiliary files
/tap-driver.sh /tap-driver.sh

View File

@ -3,24 +3,50 @@
TEST_LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) \ TEST_LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) \
$(top_srcdir)/tap-driver.sh $(top_srcdir)/tap-driver.sh
check_PROGRAMS =
#
# Helper library for TAP tests
#
libice_ctest_la_SOURCES = ctest_lib.c ctest_lib.h
noinst_LTLIBRARIES = libice_ctest.la
#
# Script-based tests
#
TESTS = \ TESTS = \
startup.test \ startup.test \
admin.test \ admin.test
ctest_suite.test \
ctest_resourcematch.test \
ctest_refobject.test
EXTRA_DIST = $(TESTS)
EXTRA_DIST += \ #
# Test programs
#
ctest_suite_test_SOURCES = ctest_suite.c
ctest_suite_test_LDADD = libice_ctest.la
check_PROGRAMS += ctest_suite_test
ctest_resourcematch_test_SOURCES = ctest_resourcematch.c ../src/resourcematch.c
ctest_resourcematch_test_LDADD = libice_ctest.la
check_PROGRAMS += ctest_resourcematch_test
ctest_refobject_test_SOURCES = ctest_refobject.c ../src/refobject.c
ctest_refobject_test_LDADD = libice_ctest.la \
../src/common/thread/libicethread.la \
../src/common/avl/libiceavl.la
check_PROGRAMS += ctest_refobject_test
#
# Extra files needed by tests
#
EXTRA_DIST = $(TESTS) \
icecast.xml \ icecast.xml \
on-connect.sh on-connect.sh
check_PROGRAMS = ctest_suite.test ctest_resourcematch.test ctest_refobject.test TESTS += $(check_PROGRAMS)
noinst_HEADERS = ctest_lib.h
ctest_suite_test_SOURCES=ctest_suite.c ctest_lib.c
ctest_resourcematch_test_SOURCES=ctest_resourcematch.c ctest_lib.c ../src/resourcematch.c
ctest_refobject_test_SOURCES=ctest_refobject.c ctest_lib.c ../src/refobject.c
ctest_refobject_test_DEPENDENCIES = ../src/common/thread/libicethread.la ../src/common/avl/libiceavl.la
ctest_refobject_test_LDADD = $(ctest_refobject_test_DEPENDENCIES)