diff options
author | Simon McVittie <smcv@collabora.com> | 2020-08-26 16:06:44 +0100 |
---|---|---|
committer | Alexander Larsson <alexander.larsson@gmail.com> | 2020-08-27 11:29:52 +0200 |
commit | 3379c277bebebac2c727711fac75e4d7eb66480b (patch) | |
tree | baedc0dfae398d53e1b2f0b63c2aa787cf6e165d /tests/test-run.sh | |
parent | 414671a666e6fc9278edca2e383ca134c6a58f75 (diff) | |
download | flatpak-3379c277bebebac2c727711fac75e4d7eb66480b.tar.gz |
tests: Test container-manager interface
Signed-off-by: Simon McVittie <smcv@collabora.com>
Diffstat (limited to 'tests/test-run.sh')
-rw-r--r-- | tests/test-run.sh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/test-run.sh b/tests/test-run.sh index 57740a3b..d7473d41 100644 --- a/tests/test-run.sh +++ b/tests/test-run.sh @@ -24,7 +24,7 @@ set -euo pipefail skip_without_bwrap skip_revokefs_without_fuse -echo "1..17" +echo "1..18" # Use stable rather than master as the branch so we can test that the run # command automatically finds the branch correctly @@ -102,6 +102,14 @@ fi ok "host os-release" +run_sh org.test.Platform 'cat /run/host/container-manager' > container-manager +echo flatpak > expected +diff -u expected container-manager +run_sh org.test.Platform 'echo "${container}"' > container-manager +diff -u expected container-manager + +ok "host container-manager" + if run org.test.Nonexistent 2> run-error-log; then assert_not_reached "Unexpectedly able to run non-existent runtime" fi |