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

Niels Möller's avatar
Niels Möller committed
3
CFLAGS = @CFLAGS@ -O0
4

5
# Tests that can be used without any special setup.
6
TS_PROGS = arcfour-test aes-test blowfish-test des-test twofish-test \
7 8
           md5-test sha1-test rsa-test dsa-test spki-tag-test \
           string-test
9
TS_SH = conv-1-test conv-2-test export-1-test keygen-1-test keygen-2-test \
10
	write-key-1-test write-key-2-test
11 12 13 14

TS_SOME = $(TS_PROGS) $(TS_SH)

# Tests that require that lsh is set up for password-less login.
15 16 17 18
TS_MORE_SH = lsh-1-test lsh-2-test lsh-3-test lsh-4-test \
	lsh-5-test lsh-6-test lsh-7-test \
	lsh-cat-test lshg-cat-test lshg-cat-2-test \
	tcpip-local-test tcpip-remote-test \
19
	lshg-tcpip-local-test ssh1-fallback-test
20 21 22 23 24 25
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)
26

Niels Möller's avatar
Niels Möller committed
27
# SUFFIXES = .c .o
28
noinst_PROGRAMS = $(TS_PROGS)
Niels Möller's avatar
Niels Möller committed
29

30
LDADD = ../liblsh.a ../nettle/libnettle.a $(addprefix ../,@LIBARGP@)
Niels Möller's avatar
Niels Möller committed
31

32 33
EXTRA_DIST = macros.m4 $(SOURCES:.c=.m4) $(TS_SH) $(TS_MORE_SH) \
	functions.sh runtests key-1.private
34

Niels Möller's avatar
Niels Möller committed
35 36 37
all:
	@echo make check to build testprograms.

Niels Möller's avatar
Niels Möller committed
38
M4FLAGS = -P #-s
39
%.c: macros.m4 %.m4
Niels Möller's avatar
Niels Möller committed
40
	$(M4) $(M4FLAGS) $^ > $@T
Niels Möller's avatar
Niels Möller committed
41
	test -s $@T && mv -f $@T $@
Niels Möller's avatar
Niels Möller committed
42

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

44 45 46 47 48
.PHONY: check-some check-more

check: check-some

check-some: $(TS_SOME)
49
	srcdir=$(srcdir) $(srcdir)/runtests $(TS_SOME)
50 51

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