aboutsummaryrefslogtreecommitdiff
path: root/tests/test_resources
diff options
context:
space:
mode:
authorDmitrii Agibov <dmitrii.agibov@arm.com>2022-10-04 14:14:47 +0100
committerDmitrii Agibov <dmitrii.agibov@arm.com>2022-10-04 15:12:33 +0100
commit2d6ec94a2a085e7fa4fc23c4c7dcda3206eec98c (patch)
tree80a7e00ec9b29508b8044c935da2afb4b7443789 /tests/test_resources
parentdf5aa7561532f95ead0cd86053e0284b2723f566 (diff)
downloadmlia-2d6ec94a2a085e7fa4fc23c4c7dcda3206eec98c.tar.gz
MLIA-580 Fix test that produces untracked files
- Create separate test for the application execution, update test application configuration file - Use simple mock object in the test for the backend manager Change-Id: Ia0f7f29d43a55223d7b2fb47348b0779a26e2268
Diffstat (limited to 'tests/test_resources')
-rw-r--r--tests/test_resources/backends/applications/application4/backend-config.json4
-rw-r--r--tests/test_resources/backends/applications/application4/hello_app.txt4
-rw-r--r--tests/test_resources/backends/systems/system4/backend-config.json6
3 files changed, 3 insertions, 11 deletions
diff --git a/tests/test_resources/backends/applications/application4/backend-config.json b/tests/test_resources/backends/applications/application4/backend-config.json
index d4362be..11017e4 100644
--- a/tests/test_resources/backends/applications/application4/backend-config.json
+++ b/tests/test_resources/backends/applications/application4/backend-config.json
@@ -12,9 +12,7 @@
],
"commands": {
"run": [
- "cp {application.config_dir}/hello_app.txt {system.config_dir}",
- "echo '{user_params:0}' > {system.config_dir}/params.txt",
- "cat hello_app.txt"
+ "echo {application.name}"
]
},
"user_params": {
diff --git a/tests/test_resources/backends/applications/application4/hello_app.txt b/tests/test_resources/backends/applications/application4/hello_app.txt
deleted file mode 100644
index 2ec0d1d..0000000
--- a/tests/test_resources/backends/applications/application4/hello_app.txt
+++ /dev/null
@@ -1,4 +0,0 @@
-SPDX-FileCopyrightText: Copyright 2022, Arm Limited and/or its affiliates.
-SPDX-License-Identifier: Apache-2.0
-
-Hello from APP!
diff --git a/tests/test_resources/backends/systems/system4/backend-config.json b/tests/test_resources/backends/systems/system4/backend-config.json
index 7701c05..daa4025 100644
--- a/tests/test_resources/backends/systems/system4/backend-config.json
+++ b/tests/test_resources/backends/systems/system4/backend-config.json
@@ -4,10 +4,8 @@
"description": "This is system 4",
"commands": {
"run": [
- "echo {application.name}",
- "{application.commands.run:0}",
- "{application.commands.run:1}",
- "{application.commands.run:2}"
+ "echo {system.name}",
+ "{application.commands.run:0}"
]
},
"user_params": {