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

3 4 5
# -O0 is not recogniced on AIX
# AM_CFLAGS = -O0

6
AM_CPPFLAGS = -I$(srcdir)/.. -I.. -I../nettle
7

Niels Möller's avatar
Niels Möller committed
8
TS_PROGS = arcfour-test aes-test blowfish-test cast128-test \
Niels Möller's avatar
Niels Möller committed
9 10
	   des-test \
	   serpent-test twofish-test \
11
           md5-test sha1-test rsa-test dsa-test spki-tag-test \
12 13
           string-test parse-config-test sockaddr2info-test \
	   utf8-test
14

Niels Möller's avatar
Niels Möller committed
15 16
TS_SH = conv-1-test conv-2-test conv-3-test \
	export-1-test keygen-1-test keygen-2-test \
17 18
	write-key-1-test write-key-2-test seed-test \
	lsh-1-test lsh-2-test lsh-3-test lsh-4-test \
19
	lsh-5-test lsh-6-test lsh-7-test lsh-8-test lsh-9-test \
Pontus Freyhult's avatar
Pontus Freyhult committed
20
	lsh-encrypted-key-test lsh-decrypt-key-test \
21
	lsh-cat-test lshg-1-test lshg-cat-test lshg-cat-2-test \
Niels Möller's avatar
Niels Möller committed
22
	daemon-fd-test \
Niels Möller's avatar
Niels Möller committed
23
	tcpip-local-test tcpip-local-in-use-test tcpip-remote-test \
24
	socks5-test socks4-test \
25
	lshg-tcpip-local-test \
26
	lcp-test \
Niels Möller's avatar
Niels Möller committed
27
	rapid7-lsh-test rapid7-lshd-test login-auth-test lshd-no-auth-test \
Niels Möller's avatar
Niels Möller committed
28
	lshd-random-input-test
29

30
TS_ALL = $(TS_PROGS) $(TS_SH)
31

32
noinst_PROGRAMS = $(TS_PROGS)
Niels Möller's avatar
Niels Möller committed
33

34 35 36
# Workaround to get automake to keep dependencies for testutils.o
EXTRA_PROGRAMS = testutils

Niels Möller's avatar
Niels Möller committed
37
LDADD = testutils.o ../liblsh.a ../spki/libspki.a ../nettle/libnettle.a \
38
	$(DOTDOT_LIBARGP)
Niels Möller's avatar
Niels Möller committed
39

40 41
include .dist_rapid7

42
EXTRA_DIST = testutils.h $(TS_SH) \
43
	functions.sh run-tests setup-env key-1.private key-2.private \
44
	$(dist_rapid7) UTF-8-test.txt
45

46
# FIXME: Move into some tmp directory.
47
CLEANFILES = foo foo.pub test-seed-1 test-seed-2 test.out1 test.out2 lcp-file-*.txt
48 49 50 51

# Files and directories used by the test cases.
distclean-local:
	rm -rf temphome home *.pid
52 53 54

DISTCLEANFILES = yarrow-seed-file

Niels Möller's avatar
Niels Möller committed
55 56 57
all:
	@echo make check to build testprograms.

58 59
.PHONY: check-some check-more

60
# sexp-conv may be dynamically linked
61
check: $(TS_ALL)
62 63
	LD_LIBRARY_PATH="`pwd`/../nettle/.lib" srcdir=$(srcdir) \
		$(srcdir)/run-tests $(TS_ALL)
64