]> granicus.if.org Git - libevent/commitdiff
test: register different tests in automake
authorAzat Khuzhin <a3at.mail@gmail.com>
Fri, 20 Jan 2017 13:29:19 +0000 (16:29 +0300)
committerAzat Khuzhin <a3at.mail@gmail.com>
Sun, 22 Jan 2017 00:22:07 +0000 (03:22 +0300)
Before this patch we have one test.sh (well test-script.sh), and tooks
very long to run it sequentially, but they are pretty lightweight, so we
should run then in parallel.

test/include.am

index 308813cd25ad3fc5b145964b4a408cec163946f7..eea249f80229bc490d748d0716495be6a3b05dcb 100644 (file)
@@ -42,14 +42,41 @@ noinst_HEADERS+=                            \
        test/tinytest_local.h                   \
        test/tinytest_macros.h
 
-# We need to copy this file, since automake doesn't want us to use top_srcdir
-# in TESTS.
-TESTS = test/test-script.sh
+TESTS = \
+       test_runner_epoll \
+       test_runner_select \
+       test_runner_kqueue \
+       test_runner_evport \
+       test_runner_devpoll \
+       test_runner_poll \
+       test_runner_win32 \
+       test_runner_timerfd \
+       test_runner_changelist \
+       test_runner_timerfd_changelist
+LOG_COMPILER = true
+TESTS_COMPILER = true
+
+test_runner_epoll: test/test.sh
+       test/test.sh -b EPOLL
+test_runner_select: test/test.sh
+       test/test.sh -b SELECT
+test_runner_kqueue: test/test.sh
+       test/test.sh -b KQUEUE
+test_runner_evport: test/test.sh
+       test/test.sh -b EVPORT
+test_runner_devpoll: test/test.sh
+       test/test.sh -b DEVPOLL
+test_runner_poll: test/test.sh
+       test/test.sh -b POLL
+test_runner_win32: test/test.sh
+       test/test.sh -b WIN32
+test_runner_timerfd: test/test.sh
+       test/test.sh -b "" -t
+test_runner_changelist: test/test.sh
+       test/test.sh -b "" -c
+test_runner_timerfd_changelist: test/test.sh
+       test/test.sh -b "" -T
 
-test/test-script.sh: test/test.sh
-       cp $(top_srcdir)/test/test.sh $@
-
-DISTCLEANFILES += test/test-script.sh
 DISTCLEANFILES += test/regress.gen.c test/regress.gen.h
 
 if BUILD_REGRESS