Makefile.am 1.81 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
12
           md5-test sha1-test rsa-test dsa-test \
	   server-config-test spki-tag-test \
13
14
           string-test parse-config-test sockaddr2info-test \
	   utf8-test
15

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

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

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

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

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

41
42
include .dist_rapid7

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

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

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

DISTCLEANFILES = yarrow-seed-file

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

59
60
.PHONY: check-some check-more

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