blob: bf6cceda6d4e883809588c5ef911ddc2c23ea739 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
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
|