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

Niels Möller's avatar
Niels Möller committed
3
CFLAGS = @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 10
           md5-test sha1-test rsa-test dsa-test spki-tag-test \
           string-test
Niels Möller's avatar
Niels Möller committed
11 12
TS_SH = conv-1-test conv-2-test conv-3-test \
	export-1-test keygen-1-test keygen-2-test \
Niels Möller's avatar
Niels Möller committed
13
	write-key-1-test write-key-2-test seed-test
14 15 16 17

TS_SOME = $(TS_PROGS) $(TS_SH)

# Tests that require that lsh is set up for password-less login.
18 19
TS_MORE_SH = lsh-1-test lsh-2-test lsh-3-test lsh-4-test \
	lsh-5-test lsh-6-test lsh-7-test \
20
	lsh-cat-test lshg-1-test lshg-cat-test lshg-cat-2-test \
21
	tcpip-local-test tcpip-remote-test \
22
	lshg-tcpip-local-test ssh1-fallback-test
23 24 25 26 27 28
TS_MORE_PROGS =

TS_ALL = $(TS_PROGS) $(TS_SH) $(TS_MORE_PROGS) $(TS_MORE_SH) 

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

Niels Möller's avatar
Niels Möller committed
30
# SUFFIXES = .c .o
31
noinst_PROGRAMS = $(TS_PROGS)
Niels Möller's avatar
Niels Möller committed
32

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

Niels Möller's avatar
Niels Möller committed
36 37
EXTRA_DIST = testutils.c testutils.h $(TS_SH) $(TS_MORE_SH) \
	functions.sh run-tests key-1.private
38

39 40 41 42 43 44 45
# FIXME: Get a rm -rf temphome somewhere?
CLEANFILES = foo foo.pub test-seed-1 test-seed-2 test.out1 test.out2 \
	     temphome/.lsh/identity \
	     temphome/.lsh/identity.pub

DISTCLEANFILES = yarrow-seed-file

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

Niels Möller's avatar
Niels Möller committed
49 50 51 52
# 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
53

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

55 56 57 58 59
.PHONY: check-some check-more

check: check-some

check-some: $(TS_SOME)
60
	srcdir=$(srcdir) $(srcdir)/runtests $(TS_SOME)
61 62

check-more: $(TS_ALL)
63
	srcdir=$(srcdir) $(srcdir)/runtests $(TS_ALL)
64