From e67f4dc0fd053d7bac56a8c802b3a1af68da5bf6 Mon Sep 17 00:00:00 2001 From: Samruddhi Khandale Date: Tue, 10 Jan 2023 15:09:56 -0800 Subject: Common-utils: Fix build failures for alpine 3.14 & 3.15 (#393) * Common-utils: Fix build failures for alpine 3.14 & 3.15 * version bump --- test/common-utils/alpine-3-14.sh | 15 +++++++++++++++ test/common-utils/alpine-3-15.sh | 15 +++++++++++++++ test/common-utils/scenarios.json | 14 ++++++++++++++ 3 files changed, 44 insertions(+) create mode 100755 test/common-utils/alpine-3-14.sh create mode 100755 test/common-utils/alpine-3-15.sh (limited to 'test/common-utils') diff --git a/test/common-utils/alpine-3-14.sh b/test/common-utils/alpine-3-14.sh new file mode 100755 index 0000000..5ed334c --- /dev/null +++ b/test/common-utils/alpine-3-14.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +set -e + +# Optional: Import test library +source dev-container-features-test-lib + +# Definition specific tests +. /etc/os-release +check "non-root user" test "$(whoami)" = "devcontainer" +check "distro" test "${ID}" = "alpine" +check "bashrc" ls /etc/bash/bashrc + +# Report result +reportResults \ No newline at end of file diff --git a/test/common-utils/alpine-3-15.sh b/test/common-utils/alpine-3-15.sh new file mode 100755 index 0000000..5ed334c --- /dev/null +++ b/test/common-utils/alpine-3-15.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +set -e + +# Optional: Import test library +source dev-container-features-test-lib + +# Definition specific tests +. /etc/os-release +check "non-root user" test "$(whoami)" = "devcontainer" +check "distro" test "${ID}" = "alpine" +check "bashrc" ls /etc/bash/bashrc + +# Report result +reportResults \ No newline at end of file diff --git a/test/common-utils/scenarios.json b/test/common-utils/scenarios.json index dbf9cdc..43d11c9 100644 --- a/test/common-utils/scenarios.json +++ b/test/common-utils/scenarios.json @@ -115,6 +115,20 @@ } } }, + "alpine-3-14": { + "image": "alpine:3.14", + "remoteUser": "devcontainer", + "features": { + "common-utils": {} + } + }, + "alpine-3-15": { + "image": "alpine:3.15", + "remoteUser": "devcontainer", + "features": { + "common-utils": {} + } + }, "devcontainer-info": { "build": { "dockerfile": "Dockerfile" -- cgit v1.2.3