Makefile.am 1.71 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
           string-test parse-config-test sockaddr2info-test
13

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

27
TS_ALL = $(TS_PROGS) $(TS_SH)
28

29
noinst_PROGRAMS = $(TS_PROGS)
Niels Möller's avatar
Niels Möller committed
30

31 32 33
# Workaround to get automake to keep dependencies for testutils.o
EXTRA_PROGRAMS = testutils

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

37 38
include .dist_rapid7

39
EXTRA_DIST = testutils.h $(TS_SH) \
40
	functions.sh run-tests setup-env key-1.private key-2.private \
41
	$(dist_rapid7)
42

43 44 45 46 47 48
# 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
49 50 51

DISTCLEANFILES = yarrow-seed-file

Niels Möller's avatar
Niels Möller committed
52 53 54
all:
	@echo make check to build testprograms.

55 56
.PHONY: check-some check-more

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