File: test-platform

package info (click to toggle)
libnb-platform18-java 7.4%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 81,288 kB
  • ctags: 101,418
  • sloc: java: 682,018; xml: 117,409; ansic: 6,281; sh: 3,982; cpp: 2,458; objc: 288; perl: 276; makefile: 252
file content (29 lines) | stat: -rw-r--r-- 842 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh

# XXX consider using lastStableBuild
BUILD=`wget http://deadlock.nbextras.org/hudson/job/trunk/lastSuccessfulBuild/buildNumber -O -`

TESTDIST="http://deadlock.netbeans.org/job/test-compilation/lastSuccessfulBuild/artifact/nbbuild/build/testdist.zip"
PLATFORM="http://deadlock.netbeans.org/job/trunk/lastSuccessfulBuild/artifact/nbbuild/dist/zip/netbeans-hudson-trunk-$BUILD-platform.zip"

[ -f `basename $TESTDIST` ] || wget $TESTDIST
[ -f `basename $PLATFORM` ] || wget $PLATFORM


rm -rf testdist
mkdir testdist
unzip testdist.zip -d testdist

rm -rf netbeans
mkdir netbeans
unzip netbeans*platform*.zip -d netbeans
mkdir netbeans/etc
echo >netbeans/etc/netbeans.conf

#-ant -f testdist/build.xml unit -Dnetbeans.dest.dir=`pwd`/netbeans
ant -f testdist/unit/unit-all-unit.xml runtests -Dnetbeans.dest.dir=`pwd`/netbeans $*