File: tests.mk

package info (click to toggle)
netcfg 1.198
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,636 kB
  • sloc: ansic: 5,652; sh: 209; makefile: 83
file content (21 lines) | stat: -rw-r--r-- 654 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# List of test files
TESTS = test/test_inet_mton.o						\
        test/test_inet_ptom.o						\
        test/test_netcfg_parse_cidr_address.o				\
        test/test_netcfg_network_address.o				\
        test/test_netcfg_gateway_reachable.o				\
        test/test_nc_v6_interface_configured.o

# List of other objects that we need to pull in to make the tests work
OBJECTS = netcfg-common.o wireless.o ethtool-lite.o ipv6.o write_interface.o

test/run: $(TESTS) $(OBJECTS) test/srunner.o
	$(CC) -o $@ $^ $(LDOPTS) -lcheck -lsubunit -lm -lpthread -lrt

test: test/run
	@echo "----------------------------------------"
	@echo
	@echo
	@test/run

.PHONY: test