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

3
AM_CFLAGS = -O0
4

Niels Möller's avatar
Niels Möller committed
5
TS_PROGS = arcfour-test aes-test blowfish-test cast128-test \
Niels Möller's avatar
Niels Möller committed
6 7
	   des-test \
	   serpent-test twofish-test \
8
           md5-test sha1-test rsa-test dsa-test spki-tag-test \
9 10
           string-test parse-config-test

Niels Möller's avatar
Niels Möller committed
11 12
TS_SH = conv-1-test conv-2-test conv-3-test \
	export-1-test keygen-1-test keygen-2-test \
13 14
	write-key-1-test write-key-2-test seed-test \
	lsh-1-test lsh-2-test lsh-3-test lsh-4-test \
15
	lsh-5-test lsh-6-test lsh-7-test lsh-8-test lsh-9-test \
16
	lsh-cat-test lshg-1-test lshg-cat-test lshg-cat-2-test \
17
	tcpip-local-test tcpip-remote-test \
18
	lshg-tcpip-local-test ssh1-fallback-test
19

20
TS_ALL = $(TS_PROGS) $(TS_SH)
21

22
noinst_PROGRAMS = $(TS_PROGS)
Niels Möller's avatar
Niels Möller committed
23

Niels Möller's avatar
Niels Möller committed
24 25
LDADD = testutils.o ../liblsh.a ../nettle/libnettle.a \
	$(addprefix ../,@LIBARGP@)
Niels Möller's avatar
Niels Möller committed
26

27
EXTRA_DIST = testutils.c testutils.h $(TS_SH) \
28 29
	functions.sh run-tests setup-env key-1.private key-2.private \
	fake-sshd1
30

31 32 33 34 35 36
# FIXME: Move into some tmp directory.
CLEANFILES = foo foo.pub test-seed-1 test-seed-2 test.out1 test.out2

# Files and directories used by the test cases.
distclean-local:
	rm -rf temphome home *.pid
37 38 39

DISTCLEANFILES = yarrow-seed-file

Niels Möller's avatar
Niels Möller committed
40 41 42
all:
	@echo make check to build testprograms.

Niels Möller's avatar
Niels Möller committed
43 44 45 46
# M4FLAGS = -P #-s
# %.c: macros.m4 %.m4
# 	$(M4) $(M4FLAGS) $^ > $@T
# 	test -s $@T && mv -f $@T $@
Niels Möller's avatar
Niels Möller committed
47

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

49 50
.PHONY: check-some check-more

51
# sexp-conv may be dynamically linked
52
check: $(TS_ALL)
53 54
	LD_LIBRARY_PATH="`pwd`/../nettle/.lib" srcdir=$(srcdir) \
		$(srcdir)/run-tests $(TS_ALL)
55