aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSandrine Bailleux <sandrine.bailleux@arm.com>2022-12-08 09:58:45 +0100
committerTrustedFirmware Code Review <review@review.trustedfirmware.org>2022-12-08 09:58:45 +0100
commit638ef6eef88e0aaa2bd61beaafd548a255c4b31b (patch)
tree030c50b66bc0700c176aa0cf6c6fc45ae59280c2
parentb68713efb9b143ba878af18aff5c65bfa28ad8fe (diff)
parent309d95eb37808ee136e42015f81690cd5c8972bf (diff)
downloadtf-a-tests-master.tar.gz
Merge "refactor: add new test-suite 'tests-timer-stress'"HEADmaster
-rw-r--r--plat/hisilicon/hikey960/tests.xml2
-rw-r--r--tftf/tests/tests-extensive.mk4
-rw-r--r--tftf/tests/tests-extensive.xml2
-rw-r--r--tftf/tests/tests-tftf-validation.xml1
-rw-r--r--tftf/tests/tests-timer-stress.mk10
-rw-r--r--tftf/tests/tests-timer-stress.xml15
6 files changed, 32 insertions, 2 deletions
diff --git a/plat/hisilicon/hikey960/tests.xml b/plat/hisilicon/hikey960/tests.xml
index c72b7834..a1d87466 100644
--- a/plat/hisilicon/hikey960/tests.xml
+++ b/plat/hisilicon/hikey960/tests.xml
@@ -10,10 +10,12 @@
<!-- External references to all individual tests files. -->
<!DOCTYPE testsuites [
<!ENTITY tests-tftf-validation SYSTEM "../../../tftf/tests/tests-tftf-validation.xml">
+ <!ENTITY tests-timer-stress SYSTEM "../../../tftf/tests/tests-timer-stress.xml">
]>
<testsuites>
&tests-tftf-validation;
+ &tests-timer-stress;
</testsuites>
diff --git a/tftf/tests/tests-extensive.mk b/tftf/tests/tests-extensive.mk
index d1c6c5e0..5e0f0068 100644
--- a/tftf/tests/tests-extensive.mk
+++ b/tftf/tests/tests-extensive.mk
@@ -6,6 +6,8 @@
# Run all standard tests, plus the extensive ones.
include tftf/tests/tests-standard.mk
-TESTS_MAKEFILE += tftf/tests/tests-psci-extensive.mk
+
+TESTS_MAKEFILE += tftf/tests/tests-psci-extensive.mk \
+ tftf/tests/tests-timer-stress.mk
include ${TESTS_MAKEFILE}
diff --git a/tftf/tests/tests-extensive.xml b/tftf/tests/tests-extensive.xml
index 773c19e0..58249678 100644
--- a/tftf/tests/tests-extensive.xml
+++ b/tftf/tests/tests-extensive.xml
@@ -23,6 +23,7 @@
<!ENTITY tests-performance SYSTEM "tests-performance.xml">
<!ENTITY tests-smc SYSTEM "tests-smc.xml">
<!ENTITY tests-pmu-leakage SYSTEM "tests-pmu-leakage.xml">
+ <!ENTITY tests-timer-stress SYSTEM "tests-timer-stress.xml">
]>
<testsuites>
@@ -41,5 +42,6 @@
&tests-performance;
&tests-smc;
&tests-pmu-leakage;
+ &tests-timer-stress;
</testsuites>
diff --git a/tftf/tests/tests-tftf-validation.xml b/tftf/tests/tests-tftf-validation.xml
index 932b10e8..e1e48d96 100644
--- a/tftf/tests/tests-tftf-validation.xml
+++ b/tftf/tests/tests-tftf-validation.xml
@@ -20,7 +20,6 @@
<testcase name="Verify the timer interrupt generation" function="test_timer_framework_interrupt" />
<testcase name="Target timer to a power down cpu" function="test_timer_target_power_down_cpu" />
<testcase name="Test scenario where multiple CPUs call same timeout" function="test_timer_target_multiple_same_interval" />
- <testcase name="Stress test the timer framework" function="stress_test_timer_framework" />
</testsuite>
</testsuites>
diff --git a/tftf/tests/tests-timer-stress.mk b/tftf/tests/tests-timer-stress.mk
new file mode 100644
index 00000000..50ee7234
--- /dev/null
+++ b/tftf/tests/tests-timer-stress.mk
@@ -0,0 +1,10 @@
+#
+# Copyright (c) 2022, Arm Limited. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+
+TESTS_SOURCES += \
+ $(addprefix tftf/tests/framework_validation_tests/, \
+ test_timer_framework.c \
+ )
diff --git a/tftf/tests/tests-timer-stress.xml b/tftf/tests/tests-timer-stress.xml
new file mode 100644
index 00000000..e461e907
--- /dev/null
+++ b/tftf/tests/tests-timer-stress.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ Copyright (c) 2022, Arm Limited. All rights reserved.
+
+ SPDX-License-Identifier: BSD-3-Clause
+-->
+
+<testsuites>
+
+ <testsuite name="Stress tests" description="Validate all stress tests">
+ <testcase name="Stress test the timer framework" function="stress_test_timer_framework" />
+ </testsuite>
+
+</testsuites>