Skip to contentSkip to conversation

openvpn: add ptest support

PATCH New [email protected] 1 participant 1 message Nov 20, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 openvpn: add ptest support

From: Jiaying Song <[email protected]>

All test cases PASS.
Add openvpn to PTESTS_SLOW because test duration longer than 30s Below is parts of the run log:
[==========] xkey provider tests: Running 3 test(s).
[ RUN ] xkey_provider_test_fetch
[ OK ] xkey_provider_test_fetch
[ RUN ] xkey_provider_test_mgmt_sign_cb
[ OK ] xkey_provider_test_mgmt_sign_cb
[ RUN ] xkey_provider_test_generic_sign_cb
[ OK ] xkey_provider_test_generic_sign_cb
[==========] xkey provider tests: 3 test(s) run.
[ PASSED ] 3 test(s).
PASS: provider_testdriver

The files t_client.sh.in and t_cltsrv.sh were not added because they require specific environment configuration files. It is recommended that users configure these based on their environment before testing.

Since the recipe enables iproute2, the condition for t_net.sh based on HAVE_SITNL is not met, so t_net.sh will not be included in the build.

---
 .../ptest-packagelists-meta-networking.inc    |  1 +
 .../recipes-support/openvpn/openvpn/run-ptest |  5 ++
 .../recipes-support/openvpn/openvpn_2.6.12.bb | 48 ++++++++++++++++++-
 3 files changed, 52 insertions(+), 2 deletions(-)
 create mode 100644 meta-networking/recipes-support/openvpn/openvpn/run-ptest
meta-networking/conf/include/ptest-packagelists-meta-networking.inc +1 -0
index 7ec6f9063d..2197a06e74 100644
@@ -25,6 +25,7 @@ PTESTS_FAST_META_NETWORKING = "\
 #    firewalld
 PTESTS_SLOW_META_NETWORKING = "\
     net-snmp \
+    openvpn \
 "
 
 PTESTS_PROBLEMS_META_NETWORKING = "\
meta-networking/recipes-support/openvpn/openvpn/run-ptest new file +5 -0
new file mode 100644
index 0000000000..5b187d9086
@@ -0,0 +1,5 @@
+#!/bin/sh
+for x in `find ./ -name Makefile`;
+do
+	make -C `dirname ${x}` -k runtest-TESTS
+done
meta-networking/recipes-support/openvpn/openvpn_2.6.12.bb +46 -2

71 lines not on this page · raw message

Signature · 1 line
2.34.1