]> granicus.if.org Git - libevent/commitdiff
automake-ify test dir, too
authorNiels Provos <provos@gmail.com>
Sat, 8 Mar 2003 05:24:26 +0000 (05:24 +0000)
committerNiels Provos <provos@gmail.com>
Sat, 8 Mar 2003 05:24:26 +0000 (05:24 +0000)
svn:r44

Makefile.am
test/Makefile.am [new file with mode: 0644]

index 8d6266600d38f3e4fde0110f8a12431148ef3512..c523aca8acc845f1e0186e7ead47ecceaaf33d0a 100644 (file)
@@ -1,6 +1,6 @@
 AUTOMAKE_OPTIONS = foreign no-dependencies
 
-SUBDIRS = . sample
+SUBDIRS = . sample test
 
 EXTRA_DIST = acconfig.h test/Makefile.in compat/err.h compat/sys/queue.h \
              compat/sys/tree.h compat/sys/_time.h
diff --git a/test/Makefile.am b/test/Makefile.am
new file mode 100644 (file)
index 0000000..6380c9d
--- /dev/null
@@ -0,0 +1,40 @@
+AUTOMAKE_OPTIONS = foreign no-dependencies
+
+LDADD = -L.. -levent
+CPPFPLAGS = -I.. 
+CFLAGS = -I../compat
+
+noinst_PROGRAMS = test-eof test-weof test-time
+
+test_eof_sources = test-eof.c
+test_weof_sources = test-weof.c
+test_time_sources = test-time.c
+
+DISTCLEANFILES = *~
+
+all:   test
+
+test: $(noinst_PROGRAMS)
+       @echo "Running tests:"
+       @echo -n " test-eof: "
+       @if ./test-eof >/dev/null ; \
+       then \
+               echo OKAY ; \
+       else \
+               echo FAILED ; \
+       fi
+       @echo -n " test-weof: "
+       @if ./test-weof >/dev/null ; \
+       then \
+               echo OKAY ; \
+       else \
+               echo FAILED ; \
+       fi
+       @echo -n " test-time: "
+       @if ./test-time >/dev/null ; \
+       then \
+               echo OKAY ; \
+       else \
+               echo FAILED ; \
+       fi
+