diff options
author | 2007-06-17 23:12:19 +0000 | |
---|---|---|
committer | 2007-06-17 23:12:19 +0000 | |
commit | 698d0d3c5dbd9facaf88a849a5370a0f29a027c5 (patch) | |
tree | f0d94a02f6d3ed6990ab7f060466e3e1a7032bf6 | |
parent | Add jabref example bibliography. (diff) | |
download | java-testcases-698d0d3c5dbd9facaf88a849a5370a0f29a027c5.tar.gz java-testcases-698d0d3c5dbd9facaf88a849a5370a0f29a027c5.tar.bz2 java-testcases-698d0d3c5dbd9facaf88a849a5370a0f29a027c5.zip |
New script to test swt integration with >=3.2.2-r1 immitating gjl launcher.
svn path=/testcases/; revision=5147
-rw-r--r-- | dev-java/swt/README | 30 | ||||
-rwxr-xr-x | dev-java/swt/runtest2.sh | 7 |
2 files changed, 36 insertions, 1 deletions
diff --git a/dev-java/swt/README b/dev-java/swt/README index 9a7c4be..4426c2c 100644 --- a/dev-java/swt/README +++ b/dev-java/swt/README @@ -1,3 +1,30 @@ +======== Instructions for >=dev-java-swt-3.2.2-r1 ========= +To run the test, execute runtest2.sh + +The test should load http://www.eclipse.org to a window. This window does not +seem to close properly so just pkill -9 java if you don't have anything else +java running. + +You should test swt built agains firefox, seamonkey and xulrunner (if applicable) +by remerging with various USE flags. It can be built and only against one of the +three, so specifying multiple flags will result in effectively one, with this +priority: +xulrunner > firefox > seamonkey + +So the test scenario for version that supports all three could look like this: +USE="seamonkey -firefox -xulrunner" emerge swt +runtest2.sh +pkill -9 java +USE="firefox -xulrunner" emerge swt +runtest2.sh +pkill -9 java +USE="xulrunner" emerge swt +runtest2.sh +pkill -9 java + + +======== Instructions for <=dev-java-swt-3.2.2 ========= + runtest.sh takes one argument that is the browser implementation swt was built against. So for examples: runtest.sh xulrunner @@ -16,4 +43,5 @@ USE="xulrunner -seamonkey" emerge swt runtest.sh xulrunner pkill -9 java -(if you put both in USE, it builds against xulrunner)
\ No newline at end of file +(if you put both in USE, it builds against xulrunner) + diff --git a/dev-java/swt/runtest2.sh b/dev-java/swt/runtest2.sh new file mode 100755 index 0000000..857d38e --- /dev/null +++ b/dev-java/swt/runtest2.sh @@ -0,0 +1,7 @@ +#!/bin/bash +[[ ! -e Snippet128.class ]] && javac -classpath $(java-config -p swt-3) Snippet128.java + +export CLASSPATH="." +gjl_package=swt-3 +gjl_main="Snippet128" +source /usr/share/java-config-2/launcher/launcher.bash |