ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/lib-src/build-jtreg-5
Revision: 1.3
Committed: Sat Jun 13 03:40:03 2020 UTC (4 years, 5 months ago) by jsr166
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +0 -3 lines
Log Message:
whitespace

File Contents

# User Rev Content
1 jsr166 1.1 #!/bin/bash
2    
3     set -eu -o pipefail
4    
5     readonly JDK8="$HOME/jdk/jdk8"
6 jsr166 1.2 export BUILD_VERSION="5.1" BUILD_NUMBER="b01"
7 jsr166 1.1 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 "$@"