| 1 | #!/usr/bin/env sh
|
|---|
| 2 |
|
|---|
| 3 | CWD="$(pwd)"
|
|---|
| 4 | if [ -d "test/lib/junit" ]; then
|
|---|
| 5 | cd "test/lib/junit"
|
|---|
| 6 | fi
|
|---|
| 7 |
|
|---|
| 8 | libraries=(
|
|---|
| 9 | # Common
|
|---|
| 10 | 'https://search.maven.org/remotecontent?filepath=org/junit/platform/junit-platform-commons/1.5.2/junit-platform-commons-1.5.2.jar'
|
|---|
| 11 | 'https://search.maven.org/remotecontent?filepath=org/junit/platform/junit-platform-engine/1.5.2/junit-platform-engine-1.5.2.jar'
|
|---|
| 12 | 'https://search.maven.org/remotecontent?filepath=org/junit/platform/junit-platform-launcher/1.5.2/junit-platform-launcher-1.5.2.jar'
|
|---|
| 13 | 'https://search.maven.org/remotecontent?filepath=org/opentest4j/opentest4j/1.2.0/opentest4j-1.2.0.jar'
|
|---|
| 14 | # JUnit 5
|
|---|
| 15 | 'https://search.maven.org/remotecontent?filepath=org/junit/jupiter/junit-jupiter-api/5.5.2/junit-jupiter-api-5.5.2.jar'
|
|---|
| 16 | 'https://search.maven.org/remotecontent?filepath=org/junit/jupiter/junit-jupiter-engine/5.5.2/junit-jupiter-engine-5.5.2.jar'
|
|---|
| 17 | # Junit 4 (also needs junit.jar from junit4, already there)
|
|---|
| 18 | 'https://search.maven.org/remotecontent?filepath=org/junit/vintage/junit-vintage-engine/5.5.2/junit-vintage-engine-5.5.2.jar'
|
|---|
| 19 | )
|
|---|
| 20 |
|
|---|
| 21 | for lib in ${libraries[@]}; do curl -O "${lib}"; done
|
|---|
| 22 |
|
|---|
| 23 | cd "${CWD}"
|
|---|