diff options
author | Roland Grunberg <rgrunber@redhat.com> | 2013-08-28 14:09:33 -0400 |
---|---|---|
committer | Roland Grunberg <rgrunber@redhat.com> | 2013-08-28 14:09:33 -0400 |
commit | ba0467e5b48796e1733412f3126c15e4f2bb2c18 (patch) | |
tree | 55fdae9145c8b7327c5edc14e854437dabd6df93 /updateTestBundleXML.sh | |
download | testbundle-to-eclipse-test-ba0467e5b48796e1733412f3126c15e4f2bb2c18.tar.gz testbundle-to-eclipse-test-ba0467e5b48796e1733412f3126c15e4f2bb2c18.tar.xz testbundle-to-eclipse-test-ba0467e5b48796e1733412f3126c15e4f2bb2c18.zip |
Initial Commit.
Diffstat (limited to 'updateTestBundleXML.sh')
-rwxr-xr-x | updateTestBundleXML.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/updateTestBundleXML.sh b/updateTestBundleXML.sh new file mode 100755 index 0000000..bf6cced --- /dev/null +++ b/updateTestBundleXML.sh @@ -0,0 +1,13 @@ +#! /bin/bash + +bsname=$1 +classname=$2 +useSWTBot=$3 + +sed -i "s/<property name=\"test-classname\" value=\".*\" \/>/<property name=\"test-classname\" value=\"${classname}\" \/>/" alltest.xml +sed -i "s/<property name=\"test-plugin-name\" value=\".*\" \/>/<property name=\"test-plugin-name\" value=\"${bsname}\" \/>/" alltest.xml +sed -i 's/<ant target=".*-test" antfile=".*"/<ant target="ui-test" antfile="\${library-file}"/' alltest.xml + +if [ "${useSWTBot}" = 'true' ]; then + sed -i 's/<ant target=".*-test" antfile=".*"/<ant target="swtbot-test" antfile="\${swtbot-library-file}"/' alltest.xml +fi |