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

3
AM_CFLAGS = -O0
4

5
# Tests that can be used without any special setup.
Niels Möller's avatar
Niels Möller committed
6
TS_PROGS = arcfour-test aes-test blowfish-test cast128-test \
Niels Möller's avatar
Niels Möller committed
7 8
	   des-test \
	   serpent-test twofish-test \
9
           md5-test sha1-test rsa-test dsa-test spki-tag-test \
10 11
           string-test parse-config-test

Niels Möller's avatar
Niels Möller committed
12 13
TS_SH = conv-1-test conv-2-test conv-3-test \
	export-1-test keygen-1-test keygen-2-test \
14 15
	write-key-1-test write-key-2-test seed-test \
	lsh-1-test lsh-2-test lsh-3-test lsh-4-test \
16
	lsh-5-test lsh-6-test lsh-7-test lsh-8-test lsh-9-test \
17
	lsh-cat-test lshg-1-test lshg-cat-test lshg-cat-2-test \
18
	tcpip-local-test tcpip-remote-test \
19
	lshg-tcpip-local-test ssh1-fallback-test
20

21
TS_ALL = $(TS_PROGS) $(TS_SH)
22 23 24

# Don't use automakes testsuite support
# TESTS = $(TS_PROGS) $(TS_SH)
25

Niels Möller's avatar
Niels Möller committed
26
# SUFFIXES = .c .o
27
noinst_PROGRAMS = $(TS_PROGS)
Niels Möller's avatar
Niels Möller committed
28

Niels Möller's avatar
Niels Möller committed
29 30
LDADD = testutils.o ../liblsh.a ../nettle/libnettle.a \
	$(addprefix ../,@LIBARGP@)
Niels Möller's avatar
Niels Möller committed
31

32
EXTRA_DIST = testutils.c testutils.h $(TS_SH) \
33 34
	functions.sh run-tests setup-env key-1.private key-2.private \
	fake-sshd1
35

36 37 38 39 40 41
# 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
42 43 44

DISTCLEANFILES = yarrow-seed-file

Niels Möller's avatar
Niels Möller committed
45 46 47
all:
	@echo make check to build testprograms.

Niels Möller's avatar
Niels Möller committed
48 49 50 51
# M4FLAGS = -P #-s
# %.c: macros.m4 %.m4
# 	$(M4) $(M4FLAGS) $^ > $@T
# 	test -s $@T && mv -f $@T $@
Niels Möller's avatar
Niels Möller committed
52

Niels Möller's avatar
Niels Möller committed
53

54 55
.PHONY: check-some check-more

56
check: $(TS_ALL)
Niels Möller's avatar
Niels Möller committed
57
	srcdir=$(srcdir) $(srcdir)/run-tests $(TS_ALL)
58