Makefile.am 937 Bytes
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 = des-test spki-tag-test
TS_SH = keygen-test
6 7 8 9

TS_SOME = $(TS_PROGS) $(TS_SH)

# Tests that require that lsh is set up for password-less login.
10
TS_MORE_SH = lsh-1-test lsh-2-test lsh-3-test tcpip-local-test
11 12 13 14 15 16
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)
17

Niels Möller's avatar
Niels Möller committed
18
# SUFFIXES = .c .o
19
noinst_PROGRAMS = $(TS_PROGS)
Niels Möller's avatar
Niels Möller committed
20 21 22

LDADD = ../liblsh.a ../symmetric/libsymmetric.a

23 24
EXTRA_DIST = macros.m4 $(SOURCES:.c=.m4) $(TS_SH) $(TS_MORE_SH) \
	functions.sh runtests key-1.private
25

Niels Möller's avatar
Niels Möller committed
26 27 28
all:
	@echo make check to build testprograms.

Niels Möller's avatar
Niels Möller committed
29
M4FLAGS = -P #-s
Niels Möller's avatar
Niels Möller committed
30
%.c: macros.m4 %.m4
Niels Möller's avatar
Niels Möller committed
31
	$(M4) $(M4FLAGS) $^ > $@
Niels Möller's avatar
Niels Möller committed
32

33 34 35 36 37
.PHONY: check-some check-more

check: check-some

check-some: $(TS_SOME)
38
	srcdir=$(srcdir) $(srcdir)/runtests $(TS_SOME)
39 40

check-more: $(TS_ALL)
41
	srcdir=$(srcdir) $(srcdir)/runtests $(TS_ALL)
42