summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlaurenw-arm <lauren.wehrmeister@arm.com>2023-03-20 16:28:13 -0500
committerManish V Badarkhe <manish.badarkhe@arm.com>2023-03-22 17:27:08 +0100
commit4fcd69a4a3f94239650b09438624656f02a5fcd6 (patch)
tree003a9d6f950833f93ef4f3ad300a62b0749b8c4d
parent21402bb42a38db0b5ffd80fd1953d1878adf7728 (diff)
tc: new plat test group with expect changes
Adding group for PLATFORM_TEST build flag to be utilized for different testing options for TC, specifically AP/RSS NV Counters test here. Signed-off-by: Lauren Wehrmeister <lauren.wehrmeister@arm.com> Change-Id: I6858557816be040ca6ddf2c1b2d8f471f5032209
-rw-r--r--expect-lava/crash_passed_test.exp9
-rw-r--r--expect/crash_passed_test.exp14
-rw-r--r--group/tf-plat-tests/fvp-tc2-nv-ctrs:fvp-linux.tc-fip.tc-tc.crash-tc2-debug5
-rw-r--r--run_config/fvp-tc.crash11
-rw-r--r--tf_config/fvp-tc2-nv-ctrs (renamed from tf_config/fvp-tc2-plat-test-nv-ctrs)0
5 files changed, 39 insertions, 0 deletions
diff --git a/expect-lava/crash_passed_test.exp b/expect-lava/crash_passed_test.exp
new file mode 100644
index 00000000..fd7f0dcb
--- /dev/null
+++ b/expect-lava/crash_passed_test.exp
@@ -0,0 +1,9 @@
+#
+# Copyright (c) 2023, Arm Limited. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+# Expect script for AP/RSS non-volatile counter platform test
+#
+
+expect_string+=('i;Passed nv_counter_test')
diff --git a/expect/crash_passed_test.exp b/expect/crash_passed_test.exp
new file mode 100644
index 00000000..b0e347cc
--- /dev/null
+++ b/expect/crash_passed_test.exp
@@ -0,0 +1,14 @@
+#
+# Copyright (c) 2023, Arm Limited. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+# Expect script for AP/RSS non-volatile counter platform test
+#
+
+source [file join [file dirname [info script]] handle-arguments.inc]
+
+# Trusted Firmware boot section
+source [file join [file dirname [info script]] trusted-firmware.inc]
+
+expect_string "Passed nv_counter_test"
diff --git a/group/tf-plat-tests/fvp-tc2-nv-ctrs:fvp-linux.tc-fip.tc-tc.crash-tc2-debug b/group/tf-plat-tests/fvp-tc2-nv-ctrs:fvp-linux.tc-fip.tc-tc.crash-tc2-debug
new file mode 100644
index 00000000..b8939c8b
--- /dev/null
+++ b/group/tf-plat-tests/fvp-tc2-nv-ctrs:fvp-linux.tc-fip.tc-tc.crash-tc2-debug
@@ -0,0 +1,5 @@
+#
+# Copyright (c) 2022, Arm Limited. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
diff --git a/run_config/fvp-tc.crash b/run_config/fvp-tc.crash
new file mode 100644
index 00000000..e7317fd4
--- /dev/null
+++ b/run_config/fvp-tc.crash
@@ -0,0 +1,11 @@
+#!/usr/bin/env bash
+#
+# Copyright (c) 2023, Arm Limited. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+
+generate_lava_job() {
+ uart="1" timeout="60" port="5003" file="crash_passed_test.exp" set_primary="1" \
+ track_expect
+}
diff --git a/tf_config/fvp-tc2-plat-test-nv-ctrs b/tf_config/fvp-tc2-nv-ctrs
index 949f7d82..949f7d82 100644
--- a/tf_config/fvp-tc2-plat-test-nv-ctrs
+++ b/tf_config/fvp-tc2-nv-ctrs