-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from vermaete/master
ptest + qemu
- Loading branch information
Showing
9 changed files
with
231 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
header: | ||
version: 1 | ||
|
||
local_conf_header: | ||
opendds: | | ||
IMAGE_INSTALL:append = " opendds" | ||
PACKAGECONFIG:append:pn-opendds = " doc-group3" | ||
PACKAGECONFIG:append:pn-opendds-native = " doc-group3" | ||
INHERIT += "cve-check" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
header: | ||
version: 1 | ||
|
||
machine: qemux86-64 | ||
|
||
distro: poky | ||
|
||
repos: | ||
meta-opendds: | ||
poky: | ||
url: https://git.yoctoproject.org/git/poky | ||
path: layers/poky | ||
branch: scarthgap | ||
layers: | ||
meta: | ||
meta-poky: | ||
meta-openembedded: | ||
url: http://git.openembedded.org/meta-openembedded | ||
path: layers/meta-openembedded | ||
branch: scarthgap | ||
layers: | ||
meta-oe: | ||
meta-python: | ||
meta-networking: | ||
meta-perl: | ||
|
||
bblayers_conf_header: | ||
standard: | | ||
POKY_BBLAYERS_CONF_VERSION = "2" | ||
BBPATH = "${TOPDIR}" | ||
BBFILES ?= "" | ||
local_conf_header: | ||
standard: | | ||
CONF_VERSION = "2" | ||
SDKMACHINE = "x86_64" | ||
USER_CLASSES = "buildstats" | ||
debug-tweaks: | | ||
EXTRA_IMAGE_FEATURES = "debug-tweaks" | ||
IMAGE_ROOTFS_EXTRA_SPACE = "1524288" | ||
diskmon: | | ||
BB_DISKMON_DIRS = "\ | ||
STOPTASKS,${TMPDIR},1G,100K \ | ||
STOPTASKS,${DL_DIR},1G,100K \ | ||
STOPTASKS,${SSTATE_DIR},1G,100K \ | ||
STOPTASKS,/tmp,100M,100K \ | ||
HALT,${TMPDIR},100M,1K \ | ||
HALT,${DL_DIR},100M,1K \ | ||
HALT,${SSTATE_DIR},100M,1K \ | ||
HALT,/tmp,10M,1K" | ||
network: | | ||
IMAGE_FEATURES:append = " ssh-server-openssh" | ||
hostname:pn-base-files = "quemu-opendds" | ||
system: | | ||
DISTRO_FEATURES:append = " systemd usrmerge" | ||
VIRTUAL-RUNTIME_init_manager = "systemd" | ||
qemu: | | ||
QB_MEM = "-m 4096" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
recipes-connectivity/opendds/opendds/0003-tests-added-dependencies-to-run-all-tests.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
From 560c6ec8a3d0073b0a1d01c1148bb4c104ce6a1a Mon Sep 17 00:00:00 2001 | ||
From: Jan Vermaete <[email protected]> | ||
Date: Sun, 28 Apr 2024 13:03:37 +0200 | ||
Subject: [PATCH 3/3] tests: added dependencies to run all tests | ||
|
||
Upstream-Status: Inappropriate [enable feature] | ||
|
||
Signed-off-by: Jan Vermaete <[email protected]> | ||
--- | ||
DDS_TAOv2.mwc | 3 +++ | ||
1 file changed, 3 insertions(+) | ||
|
||
diff --git a/DDS_TAOv2.mwc b/DDS_TAOv2.mwc | ||
index 384e2620a..a337a9190 100644 | ||
--- a/DDS_TAOv2.mwc | ||
+++ b/DDS_TAOv2.mwc | ||
@@ -6,6 +6,9 @@ workspace { | ||
tools | ||
java | ||
DevGuideExamples | ||
+ // Needed for testing | ||
+ $(TAO_ROOT)/orbsvcs/ImplRepo_Service/ImplRepo_Service.mpc | ||
+ $(TAO_ROOT)/orbsvcs/Naming_Service/Naming_Service.mpc | ||
|
||
exclude { | ||
java/jms | ||
-- | ||
2.39.2 | ||
|
48 changes: 48 additions & 0 deletions
48
...nectivity/opendds/opendds/0010-WIP-test-filter-tests-that-should-not-run-on-the-tar.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
From c41ea08127d8cda6b95c828089b8f1df74335a14 Mon Sep 17 00:00:00 2001 | ||
From: Jan Vermaete <[email protected]> | ||
Date: Wed, 24 Apr 2024 20:32:45 +0200 | ||
Subject: [PATCH 10/10] WIP: test: filter tests that should not run on the | ||
target | ||
|
||
Do not the tests marked with !CROSS_COMPILED | ||
|
||
These tests are skipped when running the OpenDDS testsuite on a target. | ||
|
||
Upstream-Status: Pending | ||
|
||
Signed-off-by: Jan Vermaete <[email protected]> | ||
--- | ||
tests/dcps_tests.lst | 6 +++--- | ||
1 file changed, 3 insertions(+), 3 deletions(-) | ||
|
||
diff --git a/tests/dcps_tests.lst b/tests/dcps_tests.lst | ||
index efe998a25..7a0040014 100644 | ||
--- a/tests/dcps_tests.lst | ||
+++ b/tests/dcps_tests.lst | ||
@@ -77,12 +77,12 @@ tests/DCPS/Compiler/is_topic_type/run_test.pl: !DCPS_MIN | ||
tests/DCPS/Compiler/vread_vwrite/run_test.pl: !DCPS_MIN RAPIDJSON CXX11 | ||
tests/DCPS/Compiler/TryConstruct/run_test.pl: !DCPS_MIN | ||
tests/DCPS/Compiler/TryConstruct/C++11/run_test.pl: !DCPS_MIN CXX11 !OPENDDS_SAFETY_PROFILE | ||
-tests/DCPS/Compiler/typeobject_hash_consistency/run_test.pl: !DCPS_MIN !OPENDDS_SAFETY_PROFILE | ||
+tests/DCPS/Compiler/typeobject_hash_consistency/run_test.pl: !DCPS_MIN !OPENDDS_SAFETY_PROFILE !CROSS_COMPILED | ||
tests/DCPS/Compiler/xcdr/run_test.pl | ||
tests/DCPS/Compiler/xcdr/run_test.pl --dynamic: !OPENDDS_SAFETY_PROFILE !DDS_NO_CONTENT_SUBSCRIPTION | ||
tests/DCPS/Compiler/XtypesExtensibility/run_test.pl: !DCPS_MIN | ||
tests/DCPS/Compiler/typeobject_generator/run_test.pl | ||
-tests/DCPS/Compiler/keywords/run_test.pl classic: !DCPS_MIN | ||
+tests/DCPS/Compiler/keywords/run_test.pl classic: !DCPS_MIN !CROSS_COMPILED | ||
tests/DCPS/Compiler/keywords/run_test.pl cpp11: !DCPS_MIN CXX11 !OPENDDS_SAFETY_PROFILE | ||
tests/DCPS/Compiler/explicit_ints/run_test.pl classic: !DCPS_MIN | ||
tests/DCPS/Compiler/explicit_ints/run_test.pl cpp11: !DCPS_MIN CXX11 !OPENDDS_SAFETY_PROFILE | ||
@@ -266,7 +266,7 @@ tests/stress-tests/run_test.pl: !DCPS_MIN !NO_UNIT_TESTS | ||
tests/DCPS/KeyTest/run_test.pl keymarshalling: !DCPS_MIN | ||
tests/DCPS/KeyTest/run_test.pl isbounded: !DCPS_MIN | ||
tests/DCPS/KeyTest/run_test.pl md5: !DCPS_MIN | ||
-tests/DCPS/KeyTest/run_test.pl compiler: !DCPS_MIN !TARGET !OPENDDS_SAFETY_PROFILE | ||
+tests/DCPS/KeyTest/run_test.pl compiler: !DCPS_MIN !TARGET !OPENDDS_SAFETY_PROFILE !CROSS_COMPILED | ||
tests/DCPS/CompatibilityTest/run_test.pl: !DCPS_MIN !OPENDDS_SAFETY_PROFILE | ||
tests/DCPS/CompatibilityTest/run_test.pl rtps_disc: !DCPS_MIN RTPS !GH_ACTIONS_M10 | ||
tests/DCPS/CompatibilityTest/run_test.pl rtps_disc_tcp: !DCPS_MIN RTPS !OPENDDS_SAFETY_PROFILE | ||
-- | ||
2.39.2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,23 @@ | ||
#!/bin/sh | ||
|
||
export DDS_ROOT=/usr/share/DDS_ROOT | ||
export ACE_ROOT=/usr | ||
export TAO_ROOT=/usr | ||
export PERLLIB="$PERLLIB:/usr/share/DDS_ROOT/tools/scripts/modules" | ||
export ACE_ROOT=$DDS_ROOT/ACE_wrappers | ||
export TAO_ROOT=$DDS_ROOT/ACE_wrappers/TAO/ | ||
export PERLLIB="$PERLLIB:$DDS_ROOT/tools/scripts/modules" | ||
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$DDS_ROOT/lib" | ||
LOG="/tmp/opendds_ptest_$(date +%Y%m%d-%H%M%S).log" | ||
LOG_LONG="/tmp/opendds_ptest_$(date +%Y%m%d-%H%M%S).log" | ||
LOG_SHORT="/tmp/opendds_ptest_short_$(date +%Y%m%d-%H%M%S).log" | ||
|
||
# Todo: some sed experts can do their thing | ||
${DDS_ROOT}/tests/auto_run_tests.pl @PTEST_ARGS@ 2>&1 | tee -a ${LOG} | sed -rnu '/^auto_run_tests_finished:/p' | sed -u 's/^auto_run_tests_finished: // ; /Result:0/ s/^/PASS: / ; /Result:0/! s/^/FAIL: /' | sed -u 's/\(.*\) \(Time:.*\) \(Result:.*\)/\1/' | ||
${DDS_ROOT}/tests/auto_run_tests.pl @PTEST_ARGS@ -Config CROSS_COMPILED 2>&1 | tee -a ${LOG_LONG} | sed -rnu '/^auto_run_tests_finished:/p' | sed -u 's/^auto_run_tests_finished: // ; /Result:0/ s/^/PASS: / ; /Result:0/! s/^/FAIL: /' | sed -u 's/\(.*\) \(Time:.*\) \(Result:.*\)/\1/' | tee -a ${LOG_SHORT} | ||
|
||
passed=`grep PASS: ${LOG_SHORT}|wc -l` | ||
failed=`grep FAIL: ${LOG_SHORT}|wc -l` | ||
all=$((passed + failed)) | ||
|
||
echo "=== Test Summary ===" | ||
echo "TOTAL: ${all}" | ||
echo "PASSED: ${passed}" | ||
echo "FAILED: ${failed}" | ||
|
||
exit ${failed} | ||
~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters