aboutsummaryrefslogtreecommitdiff
path: root/test/git
diff options
context:
space:
mode:
Diffstat (limited to 'test/git')
-rw-r--r--test/git/install_git_from_src_bionic.sh16
-rw-r--r--test/git/install_git_from_src_jammy.sh16
-rw-r--r--test/git/scenarios.json18
3 files changed, 50 insertions, 0 deletions
diff --git a/test/git/install_git_from_src_bionic.sh b/test/git/install_git_from_src_bionic.sh
new file mode 100644
index 0000000..4bdcf30
--- /dev/null
+++ b/test/git/install_git_from_src_bionic.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+set -e
+
+# Optional: Import test library
+source dev-container-features-test-lib
+
+check "version" git --version
+check "gettext" dpkg-query -l gettext
+
+cd /tmp && git clone https://github.com/devcontainers/feature-starter.git
+cd feature-starter
+check "perl" bash -c "git -c grep.patternType=perl grep -q 'a.+b'"
+
+# Report result
+reportResults
diff --git a/test/git/install_git_from_src_jammy.sh b/test/git/install_git_from_src_jammy.sh
new file mode 100644
index 0000000..4bdcf30
--- /dev/null
+++ b/test/git/install_git_from_src_jammy.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+set -e
+
+# Optional: Import test library
+source dev-container-features-test-lib
+
+check "version" git --version
+check "gettext" dpkg-query -l gettext
+
+cd /tmp && git clone https://github.com/devcontainers/feature-starter.git
+cd feature-starter
+check "perl" bash -c "git -c grep.patternType=perl grep -q 'a.+b'"
+
+# Report result
+reportResults
diff --git a/test/git/scenarios.json b/test/git/scenarios.json
index a57bea7..90aa7e3 100644
--- a/test/git/scenarios.json
+++ b/test/git/scenarios.json
@@ -7,5 +7,23 @@
"ppa": "false"
}
}
+ },
+ "install_git_from_src_jammy": {
+ "image": "ubuntu:jammy",
+ "features": {
+ "git": {
+ "version": "latest",
+ "ppa": "false"
+ }
+ }
+ },
+ "install_git_from_src_bionic": {
+ "image": "ubuntu:bionic",
+ "features": {
+ "git": {
+ "version": "latest",
+ "ppa": "false"
+ }
+ }
}
}