Ticket #16567: junit_jars.sh

File junit_jars.sh, 1.2 KB (added by taylor.smock, 7 months ago)

Add script to get jar files (for easy downloading and testing)

Line 
1#!/usr/bin/env sh
2
3CWD="$(pwd)"
4if [ -d "test/lib/junit" ]; then
5    cd "test/lib/junit"
6fi
7
8libraries=(
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
21for lib in ${libraries[@]}; do curl -O "${lib}"; done
22
23cd "${CWD}"