summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrediano Ziglio <fziglio@redhat.com>2016-10-09 10:02:29 +0100
committerFrediano Ziglio <fziglio@redhat.com>2016-10-09 10:03:36 +0100
commit03d448173eba415953af18863de4f5cd5a5dabf8 (patch)
treeeaece707b2b45006d571bbe8008087c37a6b79b0
parent9ceea7f92e6d38f80c7a01b7ee1168a3fcdd633a (diff)
Add the old test_closure test to the automatic tests
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
-rw-r--r--tests/Makefile.am15
-rwxr-xr-xtests/test_closure (renamed from test_closure)4
2 files changed, 11 insertions, 8 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index c73f309..f75a70a 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -1,8 +1,11 @@
NULL =
-TESTS =
-noinst_PROGRAMS = $(TESTS)
-check_PROGRAMS = $(TESTS)
+TESTS = \
+ $(check_PROGRAMS) \
+ test_closure \
+ $(NULL)
+noinst_PROGRAMS = $(check_PROGRAMS)
+check_PROGRAMS =
# common code
noinst_LIBRARIES = libtest.a
@@ -14,12 +17,12 @@ LDADD = \
libtest.a \
$(NULL)
-TESTS += delay
+check_PROGRAMS += delay
delay_SOURCES = delay.c
-TESTS += bandwidth
+check_PROGRAMS += bandwidth
bandwidth_SOURCES = bandwidth.c
bandwidth_LDFLAGS = -pthread
-TESTS += ping
+check_PROGRAMS += ping
ping_SOURCES = ping.c
diff --git a/test_closure b/tests/test_closure
index 6b06824..e2df3df 100755
--- a/test_closure
+++ b/tests/test_closure
@@ -14,9 +14,9 @@ if ! nc -h &> /dev/null; then
fi
# send a file quite long, check all is received
-dd if=latency of=latency.test bs=1024 count=19 &> /dev/null
+dd if=../latency of=latency.test bs=1000 count=18 &> /dev/null
killall latency &> /dev/null || true
-./latency 10ms 4K > /dev/null &
+../latency 10ms 4K > /dev/null &
latency=$!
sleep 0.2
nc -4l $ip_listen $port > out &