Commit 7b7a9830 authored by Marvin Scholz's avatar Marvin Scholz

Cleanup: tests Makefile.am

parent 5136d935
......@@ -27,13 +27,18 @@ missing
mkinstalldirs
*.tar.gz
config.h.in~
/build-aux
# Ignore test output files
/tests/*.log
/tests/*.trs
# Ignore test compiled binary files
/tests/tests/ctest_*.test
# Ignore test build artifacts
/tests/*.lo
/tests/*.la
/tests/.deps/
/tests/.libs/
/tests/ctest_*_test
# Ignore auxiliary files
/tap-driver.sh
......
......@@ -3,24 +3,50 @@
TEST_LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) \
$(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 = \
startup.test \
admin.test \
ctest_suite.test \
ctest_resourcematch.test \
ctest_refobject.test
admin.test
EXTRA_DIST = $(TESTS)
#
# Test programs
#
EXTRA_DIST += \
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 \
on-connect.sh
check_PROGRAMS = ctest_suite.test ctest_resourcematch.test ctest_refobject.test
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)
TESTS += $(check_PROGRAMS)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment