summaryrefslogtreecommitdiff
path: root/tests/Makefile.am
blob: 3c5185af9a62d527ce802f90b35dcea676292f6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
EXTRA_DIST = failover/dhcp-1.cf failover/dhcp-2.cf failover/new-failover \
	     DHCPv6/000-badmsgtype.pl \
	     DHCPv6/010-solicit-noclientid.pl \
	     DHCPv6/011-solicit-serverid.pl \
	     DHCPv6/020-advertise-mcast.pl \
	     DHCPv6/030-request-noclientid.pl \
	     DHCPv6/031-request-noserverid.pl \
	     DHCPv6/032-request-badduid.pl \
	     DHCPv6/110-information-request-ia_na.pl \
	     DHCPv6/111-information-request-ia_ta.pl \
	     DHCPv6/112-badduid.pl \
	     DHCPv6/210-solicit-nohost.pl \
	     DHCPv6/211-solicit-opt-in-na.pl \
	     DHCPv6/212-solicit-opt-in-na-norapidcommit.pl \
	     DHCPv6/280-release-nohost.pl \
	     DHCPv6/281-release-bad-address.pl \
	     DHCPv6/282-release-no-address.pl \
	     DHCPv6/283-release.pl \
	     DHCPv6/290-decline-nohost.pl \
	     DHCPv6/291-decline-bad-address.pl \
	     DHCPv6/292-decline-no-address.pl \
	     DHCPv6/293-decline.pl \
	     DHCPv6/README DHCPv6/dhcp_client.pm \
	     DHCPv6/stubcli-opt-in-na.pl DHCPv6/stubcli.pl \
	     DHCPv6/test-a.conf DHCPv6/test-b.conf \
	     HOWTO-unit-test \
	     unit_test_sample.c \
             shell/dhclient_tests.sh \
             shell/linux_script_tests.sh \
             shell/example_tests.sh \
             shell/dhcp_test_lib.sh \
             shell/ip-echo.sh \
             shell/echo.sh

AM_CPPFLAGS = -I..

check_LIBRARIES = libt_api.a
libt_api_a_SOURCES = t_api.c t_api_dhcp.c

# Let's start with an empty list of shell tests.
SHTESTS =

# Let's add dhclient tests. In the future, it will be possible to specify
# whether those tests should run or not.
SHTESTS += shell/dhclient_tests.sh
SHTESTS += shell/linux_script_tests.sh

# The following is a very simple example set of scripts. Do not uncomment it
# on production systems, as one test there fails on purpose.
# SHTESTS += shell/example_tests.sh

# test using command-line arguments, so use check-local target instead of TESTS
check-local:
	@for shtest in $(SHTESTS) ; do \
	echo Running test: $$shtest ; \
	${SHELL} $(abs_builddir)/$$shtest || exit ; \
	done