summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorKevin Krakauer <krakauer@google.com>2020-10-29 14:26:48 -0700
committergVisor bot <gvisor-bot@google.com>2020-10-29 14:28:56 -0700
commit181fea0b58f2e13a469a34eb0b921b169d292a9d (patch)
treef5a63da72ff07f333688599abeb420b7826c4123 /Makefile
parentb9f18fe2f1ad0c8547e2bd66d1cd3bbbddfbddda (diff)
Make RedirectTarget thread safe
Fixes #4613. PiperOrigin-RevId: 339746784
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 88f23de8d..f8098b539 100644
--- a/Makefile
+++ b/Makefile
@@ -210,6 +210,15 @@ iptables-tests: load-iptables
@$(call submake,test-runtime RUNTIME="iptables" TARGETS="//test/iptables:iptables_test")
.PHONY: iptables-tests
+# Run the iptables tests with runsc only. Useful for developing to skip runc
+# testing.
+iptables-runsc-tests: load-iptables
+ @sudo modprobe iptable_filter
+ @sudo modprobe ip6table_filter
+ @$(call submake,install-test-runtime RUNTIME="iptables" ARGS="--net-raw")
+ @$(call submake,test-runtime RUNTIME="iptables" TARGETS="//test/iptables:iptables_test")
+.PHONY: iptables-runsc-tests
+
packetdrill-tests: load-packetdrill
@$(call submake,install-test-runtime RUNTIME="packetdrill")
@$(call submake,test-runtime RUNTIME="packetdrill" TARGETS="$(shell $(MAKE) query TARGETS='attr(tags, packetdrill, tests(//...))')")