From 63e9392aa8d43f6f4f0454623b197efd9596709b Mon Sep 17 00:00:00 2001 From: Samruddhi Khandale Date: Thu, 14 Jul 2022 13:19:36 -0700 Subject: PHP: Install additional versions (#61) * PHP: install additional versions * fix bug * fix test scenario * adding quotes * change identifier * nit * tweak: to unblock git merge * nit --- test-scenarios/install_additional_php.sh | 13 +++++++++++++ test-scenarios/scenarios.json | 9 +++++++++ 2 files changed, 22 insertions(+) create mode 100644 test-scenarios/install_additional_php.sh (limited to 'test-scenarios') diff --git a/test-scenarios/install_additional_php.sh b/test-scenarios/install_additional_php.sh new file mode 100644 index 0000000..590187a --- /dev/null +++ b/test-scenarios/install_additional_php.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +set -e + +# Optional: Import test library +source dev-container-features-test-lib + +check "php version 8.1.4 installed as default" php --version | grep 8.1.4 +check "php version 8.0.17 installed" ls -l /usr/local/php | grep 8.0.17 +check "php version 8.0.3 installed" ls -l /usr/local/php | grep 8.0.3 + +# Report result +reportResults diff --git a/test-scenarios/scenarios.json b/test-scenarios/scenarios.json index c6291e2..887c219 100644 --- a/test-scenarios/scenarios.json +++ b/test-scenarios/scenarios.json @@ -1,4 +1,13 @@ { + "install_additional_php": { + "image": "ubuntu:focal", + "features": { + "php": { + "version": "8.1.4", + "additional_versions": "8.0.17,8.0.3" + } + } + }, "install_additional_java": { "image": "ubuntu:focal", "features": { -- cgit v1.2.3