From 2af02c198adabacff30c400b0bfcad972ce5abcc Mon Sep 17 00:00:00 2001 From: Samruddhi Khandale Date: Fri, 16 Dec 2022 16:08:37 -0800 Subject: Git - Bug Fix: Feature fails with "ppa:false" for "buster" & "bullseye" (#340) --- test/git/install_git_from_src_bullseye.sh | 16 ++++++++++++++++ test/git/install_git_from_src_buster.sh | 16 ++++++++++++++++ test/git/scenarios.json | 18 ++++++++++++++++++ 3 files changed, 50 insertions(+) create mode 100644 test/git/install_git_from_src_bullseye.sh create mode 100644 test/git/install_git_from_src_buster.sh (limited to 'test') diff --git a/test/git/install_git_from_src_bullseye.sh b/test/git/install_git_from_src_bullseye.sh new file mode 100644 index 0000000..4bdcf30 --- /dev/null +++ b/test/git/install_git_from_src_bullseye.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_buster.sh b/test/git/install_git_from_src_buster.sh new file mode 100644 index 0000000..4bdcf30 --- /dev/null +++ b/test/git/install_git_from_src_buster.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 90aa7e3..22af7a8 100644 --- a/test/git/scenarios.json +++ b/test/git/scenarios.json @@ -25,5 +25,23 @@ "ppa": "false" } } + }, + "install_git_from_src_bullseye": { + "image": "debian:bullseye", + "features": { + "git": { + "version": "latest", + "ppa": "false" + } + } + }, + "install_git_from_src_buster": { + "image": "debian:buster", + "features": { + "git": { + "version": "latest", + "ppa": "false" + } + } } } -- cgit v1.2.3