summaryrefslogtreecommitdiffstats
path: root/meta-agl-test/recipes-external/tar/files/run-ptest
diff options
context:
space:
mode:
authorQiu Tingting <qiutt@fujitsu.com>2023-09-28 07:22:26 +0000
committerQiu Tingting <qiutt@fujitsu.com>2023-09-28 07:22:26 +0000
commit39319e3a3bdfcc6c6da47035bf04b4255aec09e5 (patch)
treecc4c0e060e71e08d7eb8e16ad87e7f5625164802 /meta-agl-test/recipes-external/tar/files/run-ptest
parent5478e04bfe18d8fbb9404ca659bc86f1c49e52cb (diff)
tar: Add ptest support
Add ptest support for tar. It contains two parts. One part is a backport for http://cgit.openembedded.org/openembedded-core/commit/?h=master-next&id=878e154181e5e8d18e3605f0989bebf4aec1c6e1 It should be deleted after yocto version up. Another part is changing formate of the result of "ptest-runner tar" Because some cases have same name, adding a case number can better locate incorrect case. A sample: PASS: tar version --> PASS: 1: tar version SPEC-4753 Signed-off-by: Qiu Tingting <qiutt@fujitsu.com> Change-Id: I878bdf1693f0e71c1ba33642cd4ff70977e125f9
Diffstat (limited to 'meta-agl-test/recipes-external/tar/files/run-ptest')
-rw-r--r--meta-agl-test/recipes-external/tar/files/run-ptest14
1 files changed, 14 insertions, 0 deletions
diff --git a/meta-agl-test/recipes-external/tar/files/run-ptest b/meta-agl-test/recipes-external/tar/files/run-ptest
new file mode 100644
index 00000000..185b33d6
--- /dev/null
+++ b/meta-agl-test/recipes-external/tar/files/run-ptest
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+# Define tar test work dir
+WORKDIR=@PTEST_PATH@/tests/
+
+# Run test
+cd ${WORKDIR}
+./atconfig ./atlocal ./testsuite
+
+# clear log
+rm -rf testsuite.dir
+rm -rf testsuite.log
+
+./testsuite --am-fmt