diff options
author | P Dheeraj Srujan Kumar <p.dheeraj.srujan.kumar@intel.com> | 2024-01-01 18:04:20 +0300 |
---|---|---|
committer | P Dheeraj Srujan Kumar <p.dheeraj.srujan.kumar@intel.com> | 2024-01-01 21:54:16 +0300 |
commit | faa49504c47a58dfe23e7b478c964e12ea86efb8 (patch) | |
tree | 7b6fe1094bb65a16ccdff6f9c619bdaa7ccfb73d /meta-openbmc-mods/meta-common/recipes-core/dbus/dbus/run-ptest | |
parent | 0127bdba37b5e22adcc423d170589211de377e2e (diff) | |
download | openbmc-faa49504c47a58dfe23e7b478c964e12ea86efb8.tar.xz |
Update to internal 1-1.14update
Signed-off-by: P Dheeraj Srujan Kumar <p.dheeraj.srujan.kumar@intel.com>
Diffstat (limited to 'meta-openbmc-mods/meta-common/recipes-core/dbus/dbus/run-ptest')
-rwxr-xr-x | meta-openbmc-mods/meta-common/recipes-core/dbus/dbus/run-ptest | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/meta-openbmc-mods/meta-common/recipes-core/dbus/dbus/run-ptest b/meta-openbmc-mods/meta-common/recipes-core/dbus/dbus/run-ptest new file mode 100755 index 000000000..d3eec0823 --- /dev/null +++ b/meta-openbmc-mods/meta-common/recipes-core/dbus/dbus/run-ptest @@ -0,0 +1,35 @@ +#!/bin/sh + +output() { + retcode=$? + if [ $retcode -eq 0 ] + then echo "PASS: $i" + elif [ $retcode -eq 77 ] + then echo "SKIP: $i" + else echo "FAIL: $i" + fi +} + +export DBUS_TEST_HOMEDIR=./test +export XDG_RUNTIME_DIR=./test +export LD_LIBRARY_PATH=@PTEST_PATH@/test/.libs + +files=`ls test/test-*` + +for i in $files +do + #these programs are used by testcase test-bus, don't run here + #additionally, test-names needs to be run under X + if [ $i = "test/test-service" ] \ + || [ $i = "test/test-shell-service" ] \ + || [ $i = "test/test-segfault" ] \ + || [ $i = "test/test-bus" ] \ + || [ $i = "test/test-names" ] + then + continue + fi + + ./$i ./test/data >/dev/null 2>&1 + output +done + |