Makefile.am 1.21 KB
Newer Older
Niels Möller's avatar
Niels Möller committed
1 2
# Testsuite

3
# Tests that can be used without any special setup.
4 5
TS_PROGS = arcfour-test des-test rijndael-test twofish-test \
           md5-test sha1-test rsa-test dsa-test spki-tag-test
6 7
TS_SH = conv-1-test conv-2-test keygen-1-test keygen-2-test \
	write-key-1-test write-key-2-test
8 9 10 11

TS_SOME = $(TS_PROGS) $(TS_SH)

# Tests that require that lsh is set up for password-less login.
12
TS_MORE_SH = lsh-1-test lsh-2-test lsh-3-test lsh-4-test lsh-5-test \
13 14
	lsh-cat-test tcpip-local-test tcpip-remote-test \
	lshg-tcpip-local-test
15 16 17 18 19 20
TS_MORE_PROGS =

TS_ALL = $(TS_PROGS) $(TS_SH) $(TS_MORE_PROGS) $(TS_MORE_SH) 

# Don't use automakes testsuite support
# TESTS = $(TS_PROGS) $(TS_SH)
21

Niels Möller's avatar
Niels Möller committed
22
# SUFFIXES = .c .o
23
noinst_PROGRAMS = $(TS_PROGS)
Niels Möller's avatar
Niels Möller committed
24

Niels Möller's avatar
Niels Möller committed
25
LDADD = ../liblsh.a ../symmetric/libsymmetric.a $(addprefix ../,@LIBARGP@)
Niels Möller's avatar
Niels Möller committed
26

27 28
EXTRA_DIST = macros.m4 $(SOURCES:.c=.m4) $(TS_SH) $(TS_MORE_SH) \
	functions.sh runtests key-1.private
29

Niels Möller's avatar
Niels Möller committed
30 31 32
all:
	@echo make check to build testprograms.

Niels Möller's avatar
Niels Möller committed
33
M4FLAGS = -P #-s
34
%.c: macros.m4 %.m4
Niels Möller's avatar
Niels Möller committed
35
	$(M4) $(M4FLAGS) $^ > $@T
Niels Möller's avatar
Niels Möller committed
36
	test -s $@T && mv -f $@T $@
Niels Möller's avatar
Niels Möller committed
37

Niels Möller's avatar
Niels Möller committed
38

39 40 41 42 43
.PHONY: check-some check-more

check: check-some

check-some: $(TS_SOME)
44
	srcdir=$(srcdir) $(srcdir)/runtests $(TS_SOME)
45 46

check-more: $(TS_ALL)
47
	srcdir=$(srcdir) $(srcdir)/runtests $(TS_ALL)
48