aboutsummaryrefslogtreecommitdiff
path: root/package/optee-test/0002-xtest-regression-1027-1028-skip-tests-when-test-leve.patch
diff options
context:
space:
mode:
authorGravatar Etienne Carriere <etienne.carriere@linaro.org>2020-05-29 16:27:40 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2020-07-14 15:34:28 +0200
commitb7cb6020e569f5cdd0fe8ce35ab134ec83046c5c (patch)
tree71d7a354bd60e647dc12df58083ee02a3aab833d /package/optee-test/0002-xtest-regression-1027-1028-skip-tests-when-test-leve.patch
parent0f2dfa3eefaf1bb8071063968d4fef278199c9ff (diff)
downloadbuildroot-b7cb6020e569f5cdd0fe8ce35ab134ec83046c5c.tar.gz
buildroot-b7cb6020e569f5cdd0fe8ce35ab134ec83046c5c.tar.bz2
package/optee-test: bump to version 3.9.0
Bump OP-TEE Test package version to OP-TEE release 3.9.0. Drop patch on scripts/file_to_c.py that is merged in 3.9.0. Add patch from [1] for related issue found in 3.9.0 xtest tool. Add patch to default disable xtest regression test 1027 and 1028 that mandate changes in Linux kernel OP-TEE driver that are not available in mainline, at least as of Linux kernel v5.7. [1] https://github.com/OP-TEE/optee_test/commit/e1af176af2bb274745e9b0d43456763f8946f107 Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'package/optee-test/0002-xtest-regression-1027-1028-skip-tests-when-test-leve.patch')
-rw-r--r--package/optee-test/0002-xtest-regression-1027-1028-skip-tests-when-test-leve.patch47
1 files changed, 47 insertions, 0 deletions
diff --git a/package/optee-test/0002-xtest-regression-1027-1028-skip-tests-when-test-leve.patch b/package/optee-test/0002-xtest-regression-1027-1028-skip-tests-when-test-leve.patch
new file mode 100644
index 0000000000..d45644426e
--- /dev/null
+++ b/package/optee-test/0002-xtest-regression-1027-1028-skip-tests-when-test-leve.patch
@@ -0,0 +1,47 @@
+From 899099be7f522d59baa51d26077c0f5804161cfe Mon Sep 17 00:00:00 2001
+From: Etienne Carriere <etienne.carriere@linaro.org>
+Date: Fri, 29 May 2020 15:27:06 +0200
+Subject: [PATCH] xtest: regression 1027/1028: skip tests when test level is 0
+
+Skip regression tests 1027 and 1028 when xtest runs with test level 0
+since these tests expect changes in Linux kernel that are not available
+in mainline kernel source trees, at least up to v5.7.
+
+Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
+---
+ host/xtest/regression_1000.c | 12 ++++++++++++
+ 1 file changed, 12 insertions(+)
+
+diff --git a/host/xtest/regression_1000.c b/host/xtest/regression_1000.c
+index a70a722..2b0140c 100644
+--- a/host/xtest/regression_1000.c
++++ b/host/xtest/regression_1000.c
+@@ -2096,6 +2096,12 @@ static void xtest_tee_test_1027(ADBG_Case_t *c)
+ TEEC_UUID uuid_ns = { };
+ char uuid_name[TEE_UUID_NS_NAME_SIZE] = { };
+
++ /* Skip test at level 0 since its dependency on patched Linux kernel */
++ if (level == 0) {
++ Do_ADBG_Log("Test level 0: skip regression 1027");
++ return;
++ }
++
+ result = xtest_uuid_from_str(&uuid_ns, client_uuid_linux_ns);
+
+ if (!ADBG_EXPECT_TEEC_SUCCESS(c, result))
+@@ -2159,6 +2165,12 @@ static void xtest_tee_test_1028(ADBG_Case_t *c)
+ char uuid_name[TEE_UUID_NS_NAME_SIZE] = { };
+ uint32_t group = 0;
+
++ /* Skip test at level 0 since its dependency on patched Linux kernel */
++ if (level == 0) {
++ Do_ADBG_Log("Test level 0: skip regression 1027");
++ return;
++ }
++
+ group = getegid();
+
+ result = xtest_uuid_from_str(&uuid_ns, client_uuid_linux_ns);
+--
+2.17.1
+