Makefile.am 1.74 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
	tcpip-local-test tcpip-local-in-use-test tcpip-remote-test \
23
	socks5-test socks4-test \
24
	lshg-tcpip-local-test \
Niels Möller's avatar
Niels Möller committed
25
	rapid7-lsh-test rapid7-lshd-test login-auth-test lshd-no-auth-test \
Niels Möller's avatar
Niels Möller committed
26
	lshd-random-input-test
27

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

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

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

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

38 39
include .dist_rapid7

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

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

DISTCLEANFILES = yarrow-seed-file

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

56 57
.PHONY: check-some check-more

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