summaryrefslogtreecommitdiff
path: root/regress/sys
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2016-10-19 14:31:20 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2016-10-19 14:31:20 +0000
commitb637cf12911d41492a0177a91ca822942cb89d94 (patch)
treee5d538d45ac01f9d17da2805079e96d00558a054 /regress/sys
parent6265e7e767b9de79f55337bbc4ed27e64bcb7f3a (diff)
The clean:, cleandir:, and obj: targets of src/Makefile descend into
regress/ and run python to set the IMPORT_PYTHON variable in several test Makefiles. This results in W^X violations during 'make build'. Avoid doing that. ok bluhm
Diffstat (limited to 'regress/sys')
-rw-r--r--regress/sys/net/pf_forward/Makefile4
-rw-r--r--regress/sys/net/pf_fragment/Makefile4
-rw-r--r--regress/sys/netinet/arp/Makefile4
-rw-r--r--regress/sys/netinet/pmtu/Makefile4
-rw-r--r--regress/sys/netinet6/frag6/Makefile4
-rw-r--r--regress/sys/netinet6/nd6/Makefile4
-rw-r--r--regress/sys/netinet6/rh0/Makefile4
7 files changed, 21 insertions, 7 deletions
diff --git a/regress/sys/net/pf_forward/Makefile b/regress/sys/net/pf_forward/Makefile
index 484740db708..eb11bb751df 100644
--- a/regress/sys/net/pf_forward/Makefile
+++ b/regress/sys/net/pf_forward/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.16 2016/09/02 21:30:34 bluhm Exp $
+# $OpenBSD: Makefile,v 1.17 2016/10/19 14:31:19 tb Exp $
# The following ports must be installed:
#
@@ -6,9 +6,11 @@
# py-libdnet python interface to libdnet
# scapy powerful interactive packet manipulation in python
+.if ! (make(clean) || make(cleandir) || make(obj))
# Check wether all required python packages are installed. If some
# are missing print a warning and skip the tests, but do not fail.
PYTHON_IMPORT != python2.7 -c 'from scapy.all import *' 2>&1 || true
+.endif
.if ! empty(PYTHON_IMPORT)
regress:
@echo '${PYTHON_IMPORT}'
diff --git a/regress/sys/net/pf_fragment/Makefile b/regress/sys/net/pf_fragment/Makefile
index 152ad7bb454..f5919e69f9c 100644
--- a/regress/sys/net/pf_fragment/Makefile
+++ b/regress/sys/net/pf_fragment/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.21 2016/09/02 21:30:34 bluhm Exp $
+# $OpenBSD: Makefile,v 1.22 2016/10/19 14:31:19 tb Exp $
# The following ports must be installed:
#
@@ -6,9 +6,11 @@
# py-libdnet python interface to libdnet
# scapy powerful interactive packet manipulation in python
+.if ! (make(clean) || make(cleandir) || make(obj))
# Check whether all required python packages are installed. If some
# are missing print a warning and skip the tests, but do not fail.
PYTHON_IMPORT != python2.7 -c 'from scapy.all import *' 2>&1 || true
+.endif
.if ! empty(PYTHON_IMPORT)
regress:
@echo '${PYTHON_IMPORT}'
diff --git a/regress/sys/netinet/arp/Makefile b/regress/sys/netinet/arp/Makefile
index 75322f3f540..e26a8a3e288 100644
--- a/regress/sys/netinet/arp/Makefile
+++ b/regress/sys/netinet/arp/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.8 2016/09/02 21:30:34 bluhm Exp $
+# $OpenBSD: Makefile,v 1.9 2016/10/19 14:31:19 tb Exp $
# The following ports must be installed:
#
@@ -6,9 +6,11 @@
# py-libdnet python interface to libdnet
# scapy powerful interactive packet manipulation in python
+.if ! (make(clean) || make(cleandir) || make(obj))
# Check wether all required python packages are installed. If some
# are missing print a warning and skip the tests, but do not fail.
PYTHON_IMPORT != python2.7 -c 'from scapy.all import *' 2>&1 || true
+.endif
.if ! empty(PYTHON_IMPORT)
regress:
@echo '${PYTHON_IMPORT}'
diff --git a/regress/sys/netinet/pmtu/Makefile b/regress/sys/netinet/pmtu/Makefile
index 61e95b04ecf..71f7345ae68 100644
--- a/regress/sys/netinet/pmtu/Makefile
+++ b/regress/sys/netinet/pmtu/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.4 2016/10/19 13:37:18 bluhm Exp $
+# $OpenBSD: Makefile,v 1.5 2016/10/19 14:31:19 tb Exp $
# The following ports must be installed:
#
@@ -6,9 +6,11 @@
# py-libdnet python interface to libdnet
# scapy powerful interactive packet manipulation in python
+.if ! (make(clean) || make(cleandir) || make(obj))
# Check wether all required python packages are installed. If some
# are missing print a warning and skip the tests, but do not fail.
PYTHON_IMPORT != python2.7 -c 'from scapy.all import *' 2>&1 || true
+.endif
.if ! empty(PYTHON_IMPORT)
regress:
@echo '${PYTHON_IMPORT}'
diff --git a/regress/sys/netinet6/frag6/Makefile b/regress/sys/netinet6/frag6/Makefile
index 83a6b78edd1..a168bf33a93 100644
--- a/regress/sys/netinet6/frag6/Makefile
+++ b/regress/sys/netinet6/frag6/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.12 2016/09/02 21:30:34 bluhm Exp $
+# $OpenBSD: Makefile,v 1.13 2016/10/19 14:31:19 tb Exp $
# The following ports must be installed:
#
@@ -6,9 +6,11 @@
# py-libdnet python interface to libdnet
# scapy powerful interactive packet manipulation in python
+.if ! (make(clean) || make(cleandir) || make(obj))
# Check wether all required python packages are installed. If some
# are missing print a warning and skip the tests, but do not fail.
PYTHON_IMPORT != python2.7 -c 'from scapy.all import *' 2>&1 || true
+.endif
.if ! empty(PYTHON_IMPORT)
regress:
@echo '${PYTHON_IMPORT}'
diff --git a/regress/sys/netinet6/nd6/Makefile b/regress/sys/netinet6/nd6/Makefile
index a1a45345f9e..971832303a6 100644
--- a/regress/sys/netinet6/nd6/Makefile
+++ b/regress/sys/netinet6/nd6/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.4 2016/09/02 21:30:34 bluhm Exp $
+# $OpenBSD: Makefile,v 1.5 2016/10/19 14:31:19 tb Exp $
# The following ports must be installed:
#
@@ -6,9 +6,11 @@
# py-libdnet python interface to libdnet
# scapy powerful interactive packet manipulation in python
+.if ! (make(clean) || make(cleandir) || make(obj))
# Check wether all required python packages are installed. If some
# are missing print a warning and skip the tests, but do not fail.
PYTHON_IMPORT != python2.7 -c 'from scapy.all import *' 2>&1 || true
+.endif
.if ! empty(PYTHON_IMPORT)
regress:
@echo '${PYTHON_IMPORT}'
diff --git a/regress/sys/netinet6/rh0/Makefile b/regress/sys/netinet6/rh0/Makefile
index 23a11f8670a..473af6b5055 100644
--- a/regress/sys/netinet6/rh0/Makefile
+++ b/regress/sys/netinet6/rh0/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.6 2016/09/02 21:30:34 bluhm Exp $
+# $OpenBSD: Makefile,v 1.7 2016/10/19 14:31:19 tb Exp $
# The following ports must be installed:
#
@@ -6,9 +6,11 @@
# py-libdnet python interface to libdnet
# scapy powerful interactive packet manipulation in python
+.if ! (make(clean) || make(cleandir) || make(obj))
# Check wether all required python packages are installed. If some
# are missing print a warning and skip the tests, but do not fail.
PYTHON_IMPORT != python2.7 -c 'from scapy.all import *' 2>&1 || true
+.endif
.if ! empty(PYTHON_IMPORT)
regress:
@echo '${PYTHON_IMPORT}'