aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Spicer <joshspicer@github.com>2022-05-25 23:11:44 +0300
committerGitHub <noreply@github.com>2022-05-25 23:11:44 +0300
commitc04da7388b7c303463eb67123094d1cf20386feb (patch)
treeecdcbfdf86afdf95494a73915c6c7237e6c5c656
parenta4d434f22df175f6e337fef8f099a197b574f64b (diff)
fix crazy test.sh formatting
-rw-r--r--test/azure-cli/test.sh17
-rw-r--r--test/common/test.sh19
-rw-r--r--test/desktop-lite/test.sh15
-rw-r--r--test/docker-from-docker/test.sh17
-rw-r--r--test/docker-in-docker/test.sh17
-rw-r--r--test/git-lfs/test.sh17
-rw-r--r--test/github-cli/test.sh17
-rw-r--r--test/gradle/test.sh17
-rw-r--r--test/hugo/test.sh17
-rw-r--r--test/java/test.sh17
-rw-r--r--test/kubectl-helm-minikube/test.sh19
-rw-r--r--test/maven/test.sh17
-rw-r--r--test/node/test.sh17
-rw-r--r--test/powershell/test.sh17
-rw-r--r--test/ruby/test.sh17
-rw-r--r--test/rust/test.sh17
-rw-r--r--test/sshd/test.sh15
-rw-r--r--test/terraform/test.sh15
18 files changed, 143 insertions, 161 deletions
diff --git a/test/azure-cli/test.sh b/test/azure-cli/test.sh
index d91c689..b8ab73a 100644
--- a/test/azure-cli/test.sh
+++ b/test/azure-cli/test.sh
@@ -1,13 +1,12 @@
+#!/bin/bash
- #!/bin/bash
+set -e
- set -e
+# Optional: Import test library
+source dev-container-features-test-lib
- # Optional: Import test library
- source dev-container-features-test-lib
+# Definition specific tests
+check "version" az --version
- # Definition specific tests
- check "version" az --version
-
- # Report result
- reportResults \ No newline at end of file
+# Report result
+reportResults \ No newline at end of file
diff --git a/test/common/test.sh b/test/common/test.sh
index 773c66f..1282015 100644
--- a/test/common/test.sh
+++ b/test/common/test.sh
@@ -1,14 +1,13 @@
+#!/bin/bash
- #!/bin/bash
+set -e
- set -e
+# Optional: Import test library
+source dev-container-features-test-lib
- # Optional: Import test library
- source dev-container-features-test-lib
+# Definition specific tests
+check "jq" jq --version
+check "curl" curl --version
- # Definition specific tests
- check "jq" jq --version
- check "curl" curl --version
-
- # Report result
- reportResults \ No newline at end of file
+# Report result
+reportResults \ No newline at end of file
diff --git a/test/desktop-lite/test.sh b/test/desktop-lite/test.sh
index f9bf160..bd0a516 100644
--- a/test/desktop-lite/test.sh
+++ b/test/desktop-lite/test.sh
@@ -1,12 +1,11 @@
+#!/bin/bash
- #!/bin/bash
+set -e
- set -e
+# Optional: Import test library
+source dev-container-features-test-lib
- # Optional: Import test library
- source dev-container-features-test-lib
+echo 'NO TESTS FOR ME YET!'
- echo 'NO TESTS FOR ME YET!'
-
- # Report result
- reportResults \ No newline at end of file
+# Report result
+reportResults \ No newline at end of file
diff --git a/test/docker-from-docker/test.sh b/test/docker-from-docker/test.sh
index 22878ba..3a802b5 100644
--- a/test/docker-from-docker/test.sh
+++ b/test/docker-from-docker/test.sh
@@ -1,13 +1,12 @@
+#!/bin/bash
- #!/bin/bash
+set -e
- set -e
+# Optional: Import test library
+source dev-container-features-test-lib
- # Optional: Import test library
- source dev-container-features-test-lib
+# Definition specific tests
+check "version" docker --version
- # Definition specific tests
- check "version" docker --version
-
- # Report result
- reportResults \ No newline at end of file
+# Report result
+reportResults \ No newline at end of file
diff --git a/test/docker-in-docker/test.sh b/test/docker-in-docker/test.sh
index 22878ba..3a802b5 100644
--- a/test/docker-in-docker/test.sh
+++ b/test/docker-in-docker/test.sh
@@ -1,13 +1,12 @@
+#!/bin/bash
- #!/bin/bash
+set -e
- set -e
+# Optional: Import test library
+source dev-container-features-test-lib
- # Optional: Import test library
- source dev-container-features-test-lib
+# Definition specific tests
+check "version" docker --version
- # Definition specific tests
- check "version" docker --version
-
- # Report result
- reportResults \ No newline at end of file
+# Report result
+reportResults \ No newline at end of file
diff --git a/test/git-lfs/test.sh b/test/git-lfs/test.sh
index 321b0d9..7e6f6f2 100644
--- a/test/git-lfs/test.sh
+++ b/test/git-lfs/test.sh
@@ -1,13 +1,12 @@
+#!/bin/bash
- #!/bin/bash
+set -e
- set -e
+# Optional: Import test library
+source dev-container-features-test-lib
- # Optional: Import test library
- source dev-container-features-test-lib
+# Definition specific tests
+check "version" git-lfs --version
- # Definition specific tests
- check "version" git-lfs --version
-
- # Report result
- reportResults \ No newline at end of file
+# Report result
+reportResults \ No newline at end of file
diff --git a/test/github-cli/test.sh b/test/github-cli/test.sh
index 4ff9d2c..a419c34 100644
--- a/test/github-cli/test.sh
+++ b/test/github-cli/test.sh
@@ -1,13 +1,12 @@
+#!/bin/bash
- #!/bin/bash
+set -e
- set -e
+# Optional: Import test library
+source dev-container-features-test-lib
- # Optional: Import test library
- source dev-container-features-test-lib
+# Definition specific tests
+check "version" gh --version
- # Definition specific tests
- check "version" gh --version
-
- # Report result
- reportResults \ No newline at end of file
+# Report result
+reportResults \ No newline at end of file
diff --git a/test/gradle/test.sh b/test/gradle/test.sh
index 5931ee7..9a804e2 100644
--- a/test/gradle/test.sh
+++ b/test/gradle/test.sh
@@ -1,13 +1,12 @@
+#!/bin/bash
- #!/bin/bash
+set -e
- set -e
+# Optional: Import test library
+source dev-container-features-test-lib
- # Optional: Import test library
- source dev-container-features-test-lib
+# Definition specific tests
+check "version" gradle --version
- # Definition specific tests
- check "version" gradle --version
-
- # Report result
- reportResults \ No newline at end of file
+# Report result
+reportResults \ No newline at end of file
diff --git a/test/hugo/test.sh b/test/hugo/test.sh
index b4d6636..c915d84 100644
--- a/test/hugo/test.sh
+++ b/test/hugo/test.sh
@@ -1,13 +1,12 @@
+#!/bin/bash
- #!/bin/bash
+set -e
- set -e
+# Optional: Import test library
+source dev-container-features-test-lib
- # Optional: Import test library
- source dev-container-features-test-lib
+# Definition specific tests
+check "version" hugo version
- # Definition specific tests
- check "version" hugo version
-
- # Report result
- reportResults \ No newline at end of file
+# Report result
+reportResults \ No newline at end of file
diff --git a/test/java/test.sh b/test/java/test.sh
index ab4526e..5c6fa89 100644
--- a/test/java/test.sh
+++ b/test/java/test.sh
@@ -1,13 +1,12 @@
+#!/bin/bash
- #!/bin/bash
+set -e
- set -e
+# Optional: Import test library
+source dev-container-features-test-lib
- # Optional: Import test library
- source dev-container-features-test-lib
+# Definition specific tests
+check "version" java --version
- # Definition specific tests
- check "version" java --version
-
- # Report result
- reportResults \ No newline at end of file
+# Report result
+reportResults \ No newline at end of file
diff --git a/test/kubectl-helm-minikube/test.sh b/test/kubectl-helm-minikube/test.sh
index 7114896..94a024a 100644
--- a/test/kubectl-helm-minikube/test.sh
+++ b/test/kubectl-helm-minikube/test.sh
@@ -1,14 +1,13 @@
+#!/bin/bash
- #!/bin/bash
+set -e
- set -e
+# Optional: Import test library
+source dev-container-features-test-lib
- # Optional: Import test library
- source dev-container-features-test-lib
+# Definition specific tests
+check "kube" kubectl
+check "helm" helm version
- # Definition specific tests
- check "kube" kubectl
- check "helm" helm version
-
- # Report result
- reportResults \ No newline at end of file
+# Report result
+reportResults \ No newline at end of file
diff --git a/test/maven/test.sh b/test/maven/test.sh
index 63cfb0f..561eed0 100644
--- a/test/maven/test.sh
+++ b/test/maven/test.sh
@@ -1,13 +1,12 @@
+#!/bin/bash
- #!/bin/bash
+set -e
- set -e
+# Optional: Import test library
+source dev-container-features-test-lib
- # Optional: Import test library
- source dev-container-features-test-lib
+# Definition specific tests
+check "version" maven --version
- # Definition specific tests
- check "version" maven --version
-
- # Report result
- reportResults \ No newline at end of file
+# Report result
+reportResults \ No newline at end of file
diff --git a/test/node/test.sh b/test/node/test.sh
index cbe7309..3478478 100644
--- a/test/node/test.sh
+++ b/test/node/test.sh
@@ -1,13 +1,12 @@
+#!/bin/bash
- #!/bin/bash
+set -e
- set -e
+# Optional: Import test library
+source dev-container-features-test-lib
- # Optional: Import test library
- source dev-container-features-test-lib
+# Definition specific tests
+check "version" node --version
- # Definition specific tests
- check "version" node --version
-
- # Report result
- reportResults \ No newline at end of file
+# Report result
+reportResults \ No newline at end of file
diff --git a/test/powershell/test.sh b/test/powershell/test.sh
index aec5d1e..51fd0f0 100644
--- a/test/powershell/test.sh
+++ b/test/powershell/test.sh
@@ -1,13 +1,12 @@
+#!/bin/bash
- #!/bin/bash
+set -e
- set -e
+# Optional: Import test library
+source dev-container-features-test-lib
- # Optional: Import test library
- source dev-container-features-test-lib
+# Definition specific tests
+check "version" pwsh --version
- # Definition specific tests
- check "version" pwsh --version
-
- # Report result
- reportResults \ No newline at end of file
+# Report result
+reportResults \ No newline at end of file
diff --git a/test/ruby/test.sh b/test/ruby/test.sh
index 9560308..1927cb6 100644
--- a/test/ruby/test.sh
+++ b/test/ruby/test.sh
@@ -1,13 +1,12 @@
+#!/bin/bash
- #!/bin/bash
+set -e
- set -e
+# Optional: Import test library
+source dev-container-features-test-lib
- # Optional: Import test library
- source dev-container-features-test-lib
+# Definition specific tests
+check "version" ruby --version
- # Definition specific tests
- check "version" ruby --version
-
- # Report result
- reportResults \ No newline at end of file
+# Report result
+reportResults \ No newline at end of file
diff --git a/test/rust/test.sh b/test/rust/test.sh
index bc625c3..8ff9a67 100644
--- a/test/rust/test.sh
+++ b/test/rust/test.sh
@@ -1,13 +1,12 @@
+#!/bin/bash
- #!/bin/bash
+set -e
- set -e
+# Optional: Import test library
+source dev-container-features-test-lib
- # Optional: Import test library
- source dev-container-features-test-lib
+# Definition specific tests
+check "version" rust --version
- # Definition specific tests
- check "version" rust --version
-
- # Report result
- reportResults \ No newline at end of file
+# Report result
+reportResults \ No newline at end of file
diff --git a/test/sshd/test.sh b/test/sshd/test.sh
index f9bf160..bd0a516 100644
--- a/test/sshd/test.sh
+++ b/test/sshd/test.sh
@@ -1,12 +1,11 @@
+#!/bin/bash
- #!/bin/bash
+set -e
- set -e
+# Optional: Import test library
+source dev-container-features-test-lib
- # Optional: Import test library
- source dev-container-features-test-lib
+echo 'NO TESTS FOR ME YET!'
- echo 'NO TESTS FOR ME YET!'
-
- # Report result
- reportResults \ No newline at end of file
+# Report result
+reportResults \ No newline at end of file
diff --git a/test/terraform/test.sh b/test/terraform/test.sh
index f9bf160..bd0a516 100644
--- a/test/terraform/test.sh
+++ b/test/terraform/test.sh
@@ -1,12 +1,11 @@
+#!/bin/bash
- #!/bin/bash
+set -e
- set -e
+# Optional: Import test library
+source dev-container-features-test-lib
- # Optional: Import test library
- source dev-container-features-test-lib
+echo 'NO TESTS FOR ME YET!'
- echo 'NO TESTS FOR ME YET!'
-
- # Report result
- reportResults \ No newline at end of file
+# Report result
+reportResults \ No newline at end of file