summaryrefslogtreecommitdiffstats
path: root/ci/ci_run_all_sm_tests.sh
diff options
context:
space:
mode:
authorMichael Abel <75477722+abelikt@users.noreply.github.com>2021-10-26 16:51:26 +0200
committerGitHub <noreply@github.com>2021-10-26 16:51:26 +0200
commitd337b32c10a8b0bffef5fc0dbc01c129e1cd0a0b (patch)
treec2ed20b6c2062b5edfe6c6074d242c8da83a8cf2 /ci/ci_run_all_sm_tests.sh
parent1085fd7779c6aa88e64f31373beeba2c74dd0e86 (diff)
Update test invocations and add plugin management (#521)
* Add dummy-plugin management to the workflows * Update format of dummy plugin output * Add crude plugin mangement and update pysys calls * Merge forgotten build for the tedge_dummy_plugin * Fix name of job * Add missing sudo invocation
Diffstat (limited to 'ci/ci_run_all_sm_tests.sh')
-rwxr-xr-xci/ci_run_all_sm_tests.sh21
1 files changed, 20 insertions, 1 deletions
diff --git a/ci/ci_run_all_sm_tests.sh b/ci/ci_run_all_sm_tests.sh
index bbbd2ee4..baaddc95 100755
--- a/ci/ci_run_all_sm_tests.sh
+++ b/ci/ci_run_all_sm_tests.sh
@@ -21,11 +21,30 @@ cd $TEBASEDIR
# Check if clients are installed
dpkg -s mosquitto-clients
+
+sudo cp sm/plugins/tedge_docker_plugin/tedge_docker_plugin.sh /etc/tedge/sm-plugins/docker
+
+sudo cp /home/pi/tedge_dummy_plugin/tedge_dummy_plugin /etc/tedge/sm-plugins/fruits
+
+sudo tedge config set software.plugin.default apt
+
+sudo mkdir -p /tmp/.tedge_dummy_plugin/
+
+sudo cp tests/PySys/software-management-end-to-end/dummy-plugin-configuration/list-valid.0 /tmp/.tedge_dummy_plugin/list-valid.0
+
# Run all PySys tests
python3 -m venv ~/env-pysys
source ~/env-pysys/bin/activate
pip3 install -r tests/requirements.txt
cd tests/PySys/
-pysys.py run -v DEBUG 'sm-apt-*' -XmyPlatform='smcontainer'
+
+# Run all software management tests, including the ones for the
+# fake- and the docker plugin
+pysys.py run -v DEBUG 'SoftwareManagement.*' -XmyPlatform='smcontainer' -Xdockerplugin='dockerplugin' -Xfakeplugin='fakeplugin'
+
deactivate
+
+sudo tedge config unset software.plugin.default
+sudo rm -f /etc/tedge/sm-plugins/docker
+sudo rm -f /etc/tedge/sm-plugins/fruits