diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/java/install_ant_and_gradle_and_maven.sh (renamed from test/java/install_gradle_and_maven.sh) | 9 | ||||
-rw-r--r-- | test/java/install_ant_and_gradle_and_maven_for_user.sh (renamed from test/java/install_gradle_and_maven_for_user.sh) | 9 | ||||
-rw-r--r-- | test/java/install_ant_and_gradle_and_maven_with_specific_version.sh (renamed from test/java/install_gradle_and_maven_with_specific_version.sh) | 9 | ||||
-rw-r--r-- | test/java/scenarios.json | 10 |
4 files changed, 31 insertions, 6 deletions
diff --git a/test/java/install_gradle_and_maven.sh b/test/java/install_ant_and_gradle_and_maven.sh index 636fd92..599f8d9 100644 --- a/test/java/install_gradle_and_maven.sh +++ b/test/java/install_ant_and_gradle_and_maven.sh @@ -8,8 +8,15 @@ source dev-container-features-test-lib check "user is root" grep root <(whoami) check "java" java --version -check "gradle" gradle --version +check "ant" ant -version +cat << EOF > /tmp/build.xml +<project><target name="init"><mkdir dir="ant-src"/></target></project> +EOF +cd /tmp && ant init +check "ant-src exists" grep "ant-src" <(ls -la /tmp) + +check "gradle" gradle --version cd /tmp && gradle init --type basic --dsl groovy --incubating --project-name test check "GRADLE_USER_HOME exists" grep ".gradle" <(ls -la /root) diff --git a/test/java/install_gradle_and_maven_for_user.sh b/test/java/install_ant_and_gradle_and_maven_for_user.sh index b6ea426..4e8b431 100644 --- a/test/java/install_gradle_and_maven_for_user.sh +++ b/test/java/install_ant_and_gradle_and_maven_for_user.sh @@ -8,8 +8,15 @@ source dev-container-features-test-lib check "user is vscode" grep vscode <(whoami) check "java" java --version -check "gradle" gradle --version +check "ant" ant -version +cat << EOF > /tmp/build.xml +<project><target name="init"><mkdir dir="ant-src"/></target></project> +EOF +cd /tmp && ant init +check "ant-src exists" grep "ant-src" <(ls -la /tmp) + +check "gradle" gradle --version cd /tmp && gradle init --type basic --dsl groovy --incubating --project-name test check "GRADLE_USER_HOME exists" grep ".gradle" <(ls -la /home/vscode) diff --git a/test/java/install_gradle_and_maven_with_specific_version.sh b/test/java/install_ant_and_gradle_and_maven_with_specific_version.sh index c6ae6160..7727f51 100644 --- a/test/java/install_gradle_and_maven_with_specific_version.sh +++ b/test/java/install_ant_and_gradle_and_maven_with_specific_version.sh @@ -8,8 +8,15 @@ source dev-container-features-test-lib check "user is root" grep root <(whoami) check "java" java --version -check "gradle version" grep "Gradle 6.8.3" <(gradle --version) +check "ant version" grep "Ant(TM) version 1.10.12" <(ant -version) +cat << EOF > /tmp/build.xml +<project><target name="init"><mkdir dir="ant-src"/></target></project> +EOF +cd /tmp && ant init +check "ant-src exists" grep "ant-src" <(ls -la /tmp) + +check "gradle version" grep "Gradle 6.8.3" <(gradle --version) cd /tmp && gradle init --type basic --dsl groovy --project-name test check "GRADLE_USER_HOME exists" grep ".gradle" <(ls -la /root) diff --git a/test/java/scenarios.json b/test/java/scenarios.json index 479ee47..11fb7ba 100644 --- a/test/java/scenarios.json +++ b/test/java/scenarios.json @@ -17,7 +17,7 @@ } } }, - "install_gradle_and_maven_for_user": { + "install_ant_and_gradle_and_maven_for_user": { "image": "ubuntu:focal", "remoteUser": "vscode", "features": { @@ -26,26 +26,30 @@ }, "java": { "version": "latest", + "installAnt": true, "installGradle": true, "installMaven": true } } }, - "install_gradle_and_maven": { + "install_ant_and_gradle_and_maven": { "image": "ubuntu:focal", "features": { "java": { "version": "latest", + "installAnt": true, "installGradle": true, "installMaven": true } } }, - "install_gradle_and_maven_with_specific_version": { + "install_ant_and_gradle_and_maven_with_specific_version": { "image": "ubuntu:focal", "features": { "java": { "version": "latest", + "installAnt": "true", + "antVersion": "1.10.12", "installGradle": "true", "gradleVersion": "6.8.3", "installMaven": "true", |