summaryrefslogtreecommitdiff
path: root/tests/kolainst
diff options
context:
space:
mode:
authorJoseph Marrero Corchado <jmarrero@users.noreply.github.com>2022-01-11 21:01:20 -0500
committerGitHub <noreply@github.com>2022-01-11 21:01:20 -0500
commit6567d825252cfa4b1ebab1dd8c9043bc6f73e3d6 (patch)
tree694e214047806060e78340187779ee72b835828f /tests/kolainst
parent7cc84819078aec6b9637b3ad29712ca3e2f8433e (diff)
parent998154f8ffc2f471bf4f3b59602332ba15ef6d07 (diff)
downloadostree-6567d825252cfa4b1ebab1dd8c9043bc6f73e3d6.tar.gz
Merge pull request #2515 from cgwalters/cliwrap-lib
main: Also support CLI extensions in `/usr/libexec/libostree/ext`
Diffstat (limited to 'tests/kolainst')
-rw-r--r--tests/kolainst/destructive/basic-misc.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/kolainst/destructive/basic-misc.sh b/tests/kolainst/destructive/basic-misc.sh
new file mode 100644
index 00000000..6d14cc04
--- /dev/null
+++ b/tests/kolainst/destructive/basic-misc.sh
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+# Random misc tests
+
+set -xeuo pipefail
+
+. ${KOLA_EXT_DATA}/libinsttest.sh
+
+echo "1..1"
+date
+
+# Test CLI extensions installed alongside the system
+extdir=/usr/libexec/libostree/ext/
+mkdir -p "${extdir}"
+ln -sr /usr/bin/env ${extdir}/ostree-env
+
+env TESTENV=foo ostree env > out.txt
+assert_file_has_content out.text TESTENV=foo
+rm -vf "${extdir}/ostree-env"
+echo "ok env"
+
+# End test
+date