-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmake_testenv_rcp_gef.sh
More file actions
executable file
·39 lines (30 loc) · 1.4 KB
/
make_testenv_rcp_gef.sh
File metadata and controls
executable file
·39 lines (30 loc) · 1.4 KB
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
30
31
32
33
34
35
36
37
38
39
#!/bin/sh
testscript="org.eclipse.swtbot.testscript"
testscript_gef="org.eclipse.swtbot.gef.testscript"
rcp_apps="org.storytext.rcp.maildemo,org.storytext.rcp.jobs,org.storytext.rcp.tabselection,org.storytext.rcp.uiforms"
gef_apps="org.storytext.rcp.gef.basic"
eclipse_home=
eclipse_version=$1
install_root=$2
artifact_root=$3
p2Repo="$install_root/p2repo-$eclipse_version"
rcp_installation="$install_root/eclipse_test/eclipse"
gef_installation="$install_root/eclipse_test/eclipse_gef"
if [ "$eclipse_version" == "3.5" ]; then
eclipse_home="/usr/local/eclipse-targetSDK-3.5.2/eclipse"
elif [ "$eclipse_version" == "3.6" ]; then
eclipse_home="/usr/local/eclipse-targetSDK-3.6.2/eclipse"
elif [ "$eclipse_version" == "3.7" ]; then
eclipse_home="/usr/local/eclipse-targetSDK-3.7.1/eclipse"
fi
export ECLIPSE_HOME=$eclipse_home
# Make p2 repository containing all artifacts
./makerepository.sh $eclipse_version $artifact_root $p2Repo "$testscript,$testscript_gef,$rcp_apps,$gef_apps" profile
# Install testscript rcp
./install_artifact.sh "file://$p2Repo" $rcp_installation $testscript profile
# Install testscript gef
./install_artifact.sh "file://$p2Repo" $gef_installation $testscript_gef profile
# Install all rcp applications
./install_artifact.sh "file://$p2Repo" $rcp_installation $rcp_apps profile
# Install all gef applications
./install_artifact.sh "file://$p2Repo" $gef_installation $gef_apps profile