Skip to content

Commit 0073845

Browse files
committed
Add test for configuration-cache on 8.1 #271
1 parent 5b2c425 commit 0073845

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

src/test/groovy/com/github/gradle/node/task/NodeSetupTask_integTest.groovy

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,36 @@ tasks.register('getVersionFromSource') {
5757
gv << GRADLE_VERSIONS_UNDER_TEST
5858
}
5959
60+
@IgnoreIf({ System.getProperty("os.name").toLowerCase().contains("windows") })
61+
def 'ensure configuration-cache works with nodeSetup (#gv.version)'() {
62+
given:
63+
gradleVersion = gv
64+
65+
copyResources("fixtures/node")
66+
createFile("gradle.properties") << """
67+
systemProp.os.arch=aarch64
68+
systemProp.os.name="Mac OS X"
69+
"""
70+
createFile("build.gradle") << '''
71+
node {
72+
download = false
73+
}
74+
'''
75+
76+
when:
77+
def result1 = build("nodeSetup")
78+
79+
then:
80+
result1.task(":nodeSetup").outcome == TaskOutcome.SKIPPED
81+
82+
when:
83+
def result2 = build("nodeSetup")
84+
85+
then:
86+
result2.task(":nodeSetup").outcome == TaskOutcome.SKIPPED
87+
88+
where:
89+
gv << GRADLE_VERSIONS_UNDER_TEST
90+
}
91+
6092
}

0 commit comments

Comments
 (0)