Makefile.am 1.42 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
           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 \
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 33
EXTRA_DIST = testutils.c testutils.h $(TS_SH) \
	functions.sh run-tests setup-env key-1.private
34

35 36 37 38 39 40 41
# 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
42 43 44
all:
	@echo make check to build testprograms.

Niels Möller's avatar
Niels Möller committed
45 46 47 48
# 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
49

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

51 52
.PHONY: check-some check-more

53
check: $(TS_ALL)
Niels Möller's avatar
Niels Möller committed
54
	srcdir=$(srcdir) $(srcdir)/run-tests $(TS_ALL)
55