Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 28 lines (21 sloc) 0.669 kb
e19a180 @mikehinchey rfe9758: automated tests for client distro's tar.gz
mikehinchey authored
1 #!/bin/bash -eEu
2
3 # Requires eclipse executable on PATH
4 # with the eclipse-jdt package
5 # minimum version 3.3.
6
7 ECLIPSE_WORKSPACE=$1
8 EXPECTED_FILE=$2
9
10 ECLIPSE_BUILD="eclipse -nosplash -data $ECLIPSE_WORKSPACE -application org.eclipse.jdt.apt.core.aptBuild"
11
12 # exec eclipse multiple times until it builds the expected file.
13 # Usually 2 or 3 times is sufficient.
14 # Eclipse doesn't error if the build fails, so manually check for output.
15
16 for I in 1 2 3 4
17 do
18 echo EXEC: $ECLIPSE_BUILD
19 OUTPUT=$($ECLIPSE_BUILD)
20 echo OUTPUT: $OUTPUT
21 if [ -f $EXPECTED_FILE ] ; then
22 exit 0
23 fi
24 done
25
26 echo "Expected output file not found: " $EXPECTED_FILE >&2
27 exit 1
Something went wrong with that request. Please try again.