mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-13 06:16:10 -04:00
automake-ify test dir, too
svn:r44
This commit is contained in:
parent
71e513296d
commit
ea1d95d2fb
@ -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
|
||||
|
40
test/Makefile.am
Normal file
40
test/Makefile.am
Normal file
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user