Makefile.am 866 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 10 11 12 13 14 15 16

TS_SOME = $(TS_PROGS) $(TS_SH)

# Tests that require that lsh is set up for password-less login.
TS_MORE_SH = lsh-1-test lsh-2-test lsh-3-test
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

Niels Möller's avatar
Niels Möller committed
23
EXTRA_DIST = macros.m4 $(SOURCES:.c=.m4) $(TS_SH) key-1.private
24

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

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

32 33 34 35 36 37 38 39 40 41
.PHONY: check-some check-more

check: check-some

check-some: $(TS_SOME)
	srcdir=$(srcdir) $(srcdir)/runtests $^

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