aboutsummaryrefslogtreecommitdiff
path: root/test/docker-from-docker/docker_init.sh
diff options
context:
space:
mode:
authorSamruddhi Khandale <skhandale@microsoft.com>2022-11-24 02:03:07 +0300
committerGitHub <noreply@github.com>2022-11-24 02:03:07 +0300
commit4b3ccf36eabcad859a13806a8dc47dfa651182a1 (patch)
tree31bebbe272b46d737093e1ea98bebf90b73f260b /test/docker-from-docker/docker_init.sh
parent188f1ef26bc8fa942d552dfaa8596091a8a39126 (diff)
Adds test coverage (#308)
* Add test coverage * temp: debug test * Update tests
Diffstat (limited to 'test/docker-from-docker/docker_init.sh')
-rw-r--r--test/docker-from-docker/docker_init.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/docker-from-docker/docker_init.sh b/test/docker-from-docker/docker_init.sh
new file mode 100644
index 0000000..2164921
--- /dev/null
+++ b/test/docker-from-docker/docker_init.sh
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+set -e
+
+# Optional: Import test library
+source dev-container-features-test-lib
+
+check "docker-init-exists" bash -c "ls /usr/local/share/docker-init.sh"
+check "log-exists" bash -c "ls /tmp/vscr-docker-from-docker.log"
+check "log-contents-for-success" bash -c "cat /tmp/vscr-docker-from-docker.log | grep 'Success'"
+check "log-contents" bash -c "cat /tmp/vscr-docker-from-docker.log | grep 'Proxying /var/run/docker-host.sock to /var/run/docker.sock for vscode'"
+check "docker-ps" bash -c "docker ps"
+
+# Report result
+reportResults \ No newline at end of file