diff --git a/lava/group-default-tpl.yaml b/lava/group-default-tpl.yaml index 7f641ef4c8adf0c0987df6f53136a96232b28f85..ba61bd2b3a552e434b9fb97c01edf88440183113 100644 --- a/lava/group-default-tpl.yaml +++ b/lava/group-default-tpl.yaml @@ -18,4 +18,17 @@ job_name: {{image_name}}-{{group}} from: git name: {{test_name}} path: test-cases/{{test_name}}.yaml -{%- endfor -%} +{%- endfor %} + + - test: + timeout: + minutes: 5 + namespace: system + name: fs-check + definitions: + - repository: https://gitlab.apertis.org/tests/apertis-test-cases.git + branch: 'apertis/v2023dev2' + history: False + from: git + name: check-fs-errors + path: test-cases/check-fs-errors.yaml diff --git a/test-cases/check-fs-errors.yaml b/test-cases/check-fs-errors.yaml new file mode 100644 index 0000000000000000000000000000000000000000..28bf85cf796b35ac0bd3fa7a255cae2d8d40ed88 --- /dev/null +++ b/test-cases/check-fs-errors.yaml @@ -0,0 +1,45 @@ +metadata: + name: sanity-check + format: "Apertis Test Definition 1.0" + image-types: + fixedfunction: [ armhf, arm64, amd64 ] + hmi: [ armhf, amd64 ] + basesdk: [ amd64 ] + sdk: [ amd64 ] + image-deployment: + - APT + - OSTree + type: sanity + exec-type: automated + priority: critical + maintainer: "Apertis Project" + description: "This test checks that no filesystem errors have occured." + + pre-conditions: + - "This test must be executed after other tests." + + expected: + - "The command should report no failure and its output should be something + like this at the end:" + - | + + set +x + # FS check successful + + notes: + - "This test must be executed in an image after running all automated or + manual tests." + +install: + git-repos: + - url: https://gitlab.apertis.org/pkg/apertis-tests.git + branch: 'apertis/v2023dev2' + +run: + steps: + - "# Enter test directory:" + - cd apertis-tests + - "# Execute the following command:" + - common/fs-check + +parse: + pattern: 'TEST_RESULT:(?P<result>\w+):(?P<test_case_id>[^:]+):'