ci(n1sdp): add PSCI runtime instrumentation tests
Add fragments to enable building FIP images with TFTF on N1SDP. There's
no support for this at the moment. With this in place, add fragments and
a test configuration to enable the "Runtime Instrumentation" test suite
to be run.
Signed-off-by: Harrison Mutai <harrison.mutai@arm.com>
Change-Id: I43afb806777de6e128ebe9686708c78cce26673a
diff --git a/script/lava-templates/n1sdp-tftf.yaml b/script/lava-templates/n1sdp-tftf.yaml
new file mode 100644
index 0000000..ca83ed8
--- /dev/null
+++ b/script/lava-templates/n1sdp-tftf.yaml
@@ -0,0 +1,62 @@
+device_type: n1sdp
+job_name: tf-n1sdp
+timeouts:
+ # Global timeout value for the whole job.
+ job:
+ minutes: 30
+ actions:
+ lava-test-monitor:
+ seconds: 120
+ connections:
+ lava-test-monitor:
+ seconds: 300
+
+priority: ${LAVA_PRIORITY:-medium}
+visibility: public
+actions:
+
+- deploy:
+ namespace: recovery
+ timeout:
+ minutes: 10
+ to: flasher
+ images:
+ recovery_image:
+ url: $recovery_img_url
+ compression: zip
+
+- boot:
+ namespace: recovery
+ timeout:
+ minutes: 3
+ method: minimal
+ parameters:
+ kernel-start-message: ''
+ prompts: ['Cmd>']
+
+- boot:
+ namespace: uart1
+ method: new_connection
+ connection: uart1
+
+- test:
+ namespace: uart1
+ connection-namespace: uart1
+ timeout:
+ minutes: 10
+ monitors:
+ - name: TFTF
+ # LAVA looks for a testsuite start string...
+ start: 'Booting trusted firmware test framework'
+ # ...and a testsuite end string.
+ end: 'Exiting tests.'
+
+ # For each test case, LAVA looks for a string which includes the testcase
+ # name and result.
+ pattern: "(?s)> Executing '(?P<test_case_id>.+?(?='))'(.*) TEST COMPLETE\\\s+(?P<result>(Skipped|Passed|Failed|Crashed))"
+
+ fixupdict:
+ Passed: pass
+ Failed: fail
+ Crashed: fail
+ Skipped: skip