ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/lib-src/build-jtreg-5
Revision: 1.1
Committed: Mon Mar 2 20:51:42 2020 UTC (4 years, 8 months ago) by jsr166
Branch: MAIN
Log Message:
update to jtreg 5.0-b01

File Contents

# Content
1 #!/bin/bash
2
3 set -eu -o pipefail
4
5 readonly JDK8="$HOME/jdk/jdk8"
6 export BUILD_VERSION="5.0" BUILD_NUMBER="b01"
7 readonly JTREG_REV="jtreg${BUILD_VERSION}-${BUILD_NUMBER}"
8
9 main() {
10 [[ "$PWD" =~ /lib-src$ ]] \
11 || { echo Always run from lib-src directory >&2; exit 1; }
12
13 rm -rf jtreg
14 hg clone -r "$JTREG_REV" http://hg.openjdk.java.net/code-tools/jtreg jtreg
15 jar cf jtreg-source.zip jtreg
16 ( cd jtreg && set -x && bash make/build-all.sh "$JDK8" )
17
18 local -r jtreg_image="jtreg/build/images/jtreg"
19 chmod -R u+w "$jtreg_image"
20 save_package_source() { cp -p "jtreg/build/$1/source.zip" "$1-source.zip"; }
21
22 set -x
23
24 save_package_source asmtools
25 save_package_source jtharness
26 save_package_source jcov
27
28 # TODO: testng,jcov
29 cp -p "$jtreg_image"/lib/{jtreg,javatest,asmtools,junit,jcommander}.jar ../jsr166/lib/.
30
31 ( cd ../jsr166 && ant test )
32
33 exit 0
34 }
35
36 main "$@"
37
38
39