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
	lshg-tcpip-local-test ssh1-fallback-test \
Niels Möller's avatar
Niels Möller committed
23
	rapid7-lsh-test rapid7-lshd-test login-auth-test lshd-no-auth-test \
Niels Möller's avatar
Niels Möller committed
24
	lshd-random-input-test
25

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

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

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

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

36 37
include .dist_rapid7

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

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

DISTCLEANFILES = yarrow-seed-file

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

54 55
.PHONY: check-some check-more

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