-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Expand file tree
/
Copy pathpackage-test.mk
More file actions
56 lines (46 loc) · 1.56 KB
/
package-test.mk
File metadata and controls
56 lines (46 loc) · 1.56 KB
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
#
# This Makefile performs some end to end tests against a package installed
# within the CI environment.
#
# It reuses the eapol_test build-time tests, but runs them against the assets
# installed by the distribution packaging.
#
# We want the run-time environment to be lean, typical of a fresh system
# installation so that we catch any missing runtime dependencies, assets
# missing from the packages, issues with the dynamic loader, etc.
#
# Therefore we skip the usual build framework so that we do not have so
# configure the build tree and so that our only dependency is some non-ancient
# version GNU Make. (Any version in a supported distribution will do.)
#
ifeq "${VERBOSE}" ""
Q=@
else
Q=
endif
# Provide what test.eap needs
top_srcdir:=.
BUILD_DIR:=build
DIR:=src/tests/eapol_test
OUTPUT:=$(BUILD_DIR)/tests/eapol_test
PACKAGE_TEST:=true
ALL_TGTS:=$(addprefix rlm_eap_,$(notdir $(subst -,_,$(patsubst %.conf,%.la,$(wildcard $(DIR)/*.conf)))))
#
# For the package tests we use the system version of radiusd on the standard
# port
#
RADIUSD_BIN:=$(shell which radiusd || which freeradius)
PORT:=1812
SECRET:=testing123
DICT_PATH:=/usr/share/freeradius/dictionary/
#
# We assume a preinstalled version of eapol_test
#
EAPOL_TEST:=$(shell which eapol_test)
# This Makefile, for meta-making
POST_INSTALL_MAKEFILE_ARG:=-f $(CURDIR)/$(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST))
POST_INSTALL_RADIUSD_BIN_ARG:=RADIUSD_BIN=$(RADIUSD_BIN)
.PHONY: package-test
package-test: test.eap
include $(top_srcdir)/src/tests/test_record.mk
include $(DIR)/all.mk