Commit 8d9184f1 authored by stevanradakovic's avatar stevanradakovic

Add mps health check tests.

parent c05a0c0d
Pipeline #5798 passed with stages
in 35 minutes and 29 seconds
......@@ -6,5 +6,3 @@ if [ ! -d "$1" ]; then
echo "Directory $1 not found"
exit 0
fi
exec rm -rf $1
......@@ -109,3 +109,7 @@ thunderx.ramdisk: http://images.validation.linaro.org/thunderx/initramfs-4.12-rc
x86-atom330.bzimage: https://images.collabora.co.uk/qa/kernel/linux-v4.14-200/x86_64/bzImage
x86-atom330.modules: https://images.collabora.co.uk/qa/kernel/linux-v4.14-200/x86_64/modules.tar.xz
x86-atom330.ramdisk: https://images.collabora.co.uk/singularity/health-check/qemu/ramdisk-5/rootfs.cpio.gz
mps2.tar.gz: http://ci.trustedfirmware.org//job/tf-m-build-test-review/3185/artifact/mps2_an521_v3.0.tar.gz
tfm_sign.bin: http://ci.trustedfirmware.org//job/tf-m-build-test-review/3185/artifact/build-ci-all/AN521_GNUARM_ConfigCoreIPC_Debug_BL2/install/outputs/AN521/tfm_sign.bin
mcuboot.bin: http://ci.trustedfirmware.org//job/tf-m-build-test-review/3185/artifact/build-ci-all/AN521_GNUARM_ConfigCoreIPC_Debug_BL2/install/outputs/AN521/mcuboot.bin
\ No newline at end of file
- cmd: print
lines:
- "Trying 127.0.1.1..."
- "Connected to staging01.lavalab."
- "Escape character is '^]'."
- " MPS2 01 7132 [115200 N81]"
- "[INF] Starting bootloader"
- cmd: execute
args:
- "./share/utils/checksum"
- "/mnt/V2M_MPS/tfm_sign.bin"
- "89218d5a7a20a3c9cf0a196305f80dd4571ee272609958fa893a31e0c1396b27"
quit_on:
1: "Wrong checksum"
- cmd: print
lines:
- "[INF] Image 0: magic= bad, copy_done=0xbb, image_ok=0x9e"
- "[INF] Scratch: magic= bad, copy_done=0x5, image_ok=0x50"
- "[INF] Boot source: none"
- "[INF] Swap type: test"
- "[INF] Bootloader chainload address offset: 0x80000"
- "[INF] Jumping to the first image slot"
- "[1;34m[Sec Thread] Secure image initializing![0m"
- "TFM level is: 3"
- "[1;34m[Sec Thread] Jumping to non-secure code...[0m"
- "[33m"
- "#### Execute test suites for the Non-secure area ####"
- "[33mRunning Test Suite Core non-secure positive tests (TFM_CORE_TEST_1XXX)..."
- "[37m> Executing 'TFM_CORE_TEST_1001' "
- " Description: 'Test service request from NS thread mode'"
- "[32m TEST PASSED!"
- "[37m> Executing 'TFM_CORE_TEST_1003' "
- " Description: 'Test the success of service init'"
- "[32m TEST PASSED!"
- "[37m> Executing 'TFM_CORE_TEST_1004' "
- " Description: 'Test direct recursion of secure services (DEPRECATED)'"
- "This test is DEPRECATED and the test execution was SKIPPED"
- "[32m TEST PASSED!"
- "[37m> Executing 'TFM_CORE_TEST_1005' "
- " Description: 'Test secure service memory access permissions'"
- "[32m TEST PASSED!"
- "[37m> Executing 'TFM_CORE_TEST_1006' "
- " Description: 'Test secure service MPU accesses'"
- "[32m TEST PASSED!"
- "[37m> Executing 'TFM_CORE_TEST_1007' "
- " Description: 'Test secure service buffer accesses'"
- "[32m TEST PASSED!"
- "[37m> Executing 'TFM_CORE_TEST_1008' "
- " Description: 'Test secure service to service call'"
- "[32m TEST PASSED!"
- "[37m> Executing 'TFM_CORE_TEST_1009' "
- " Description: 'Test secure service share change request'"
- "[32m TEST PASSED!"
- "[37m> Executing 'TFM_CORE_TEST_1010' "
- " Description: 'Test secure service to service call with buffer handling'"
- "[32m TEST PASSED!"
- "[37m> Executing 'TFM_CORE_TEST_1012' "
- " Description: 'Test service peripheral access'"
- "[32m TEST PASSED!"
- "[32mTESTSUITE PASSED!"
- "[33m"
- "*** Non-secure test suites summary ***"
- "[37mTest suite 'Core non-secure positive tests (TFM_CORE_TEST_1XXX)' has [32m PASSED"
- "[33m"
- "*** End of Non-secure test suites ***"
- cmd: sleep
value: 50
device_type_prefix: mps
description: "[health check] mps"
timeout: 240
results:
lava.validate: pass
lava.job: pass
basic_test.secure_image_initializing: pass
{% extends 'mps.jinja2' %}
{% set connection_list = ['uart0'] %}
{% set connection_commands = {'uart0': '{{ LAVA_DUMMYSYS_ROOT }}/lava-board --delay 0 --jitter 0 --command {{ LAVA_TESTS_ROOT }}/commands.yaml'} %}
{% set connection_tags = {'uart0': ['primary', 'telnet']} %}
{% set hard_reset_command = '/bin/true reboot' %}
{% set power_off_command = '/bin/true off' %}
{% set power_on_command = '/bin/true on' %}
device_type: "{{ META_LAVA_DT }}"
job_name: "{{ META_LAVA_DESCRIPTION }}"
timeouts:
job:
minutes: 20
action:
minutes: 5
actions:
power-off:
minutes: 1
connections:
lava-test-monitor:
minutes: 3
priority: medium
visibility: public
actions:
- deploy:
to: mps
images:
recovery_image:
url: {{ META_LAVA_CACHE }}/mps2.tar.gz
compression: gz
test_binary_1:
url: {{ META_LAVA_CACHE }}/tfm_sign.bin
test_binary_2:
url: {{ META_LAVA_CACHE }}/mcuboot.bin
namespace: target
- boot:
method: minimal
reset: false
timeout:
minutes: 10
namespace: target
- test:
timeout:
minutes: 5
namespace: target
monitors:
- name: "basic_test"
start: "Jumping to the first image slot"
end: "End of Non-secure test suites"
pattern: "\\[1;34m\\[Sec Thread\\] (?P<test_case_id>Secure image initializing)(?P<result>!)"
fixupdict:
'!': pass
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment