aboutsummaryrefslogtreecommitdiff
path: root/test/common-utils/config-subdirectory.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/common-utils/config-subdirectory.sh')
-rwxr-xr-xtest/common-utils/config-subdirectory.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/common-utils/config-subdirectory.sh b/test/common-utils/config-subdirectory.sh
new file mode 100755
index 0000000..ba67fb6
--- /dev/null
+++ b/test/common-utils/config-subdirectory.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+set -e
+
+# Optional: Import test library
+source dev-container-features-test-lib
+
+# Definition specific tests
+check "owned-config-sub-directory" bash -c "ls -ld ~/.config/subdirectory | awk '{print $3}' | grep 'devcontainer'"
+check "owned-config-directory" bash -c "ls -ld ~/.config | awk '{print $3}' | grep 'devcontainer'"
+
+# Report result
+reportResults