blob: c995a1b6c325c35a77a5754304eae8f8b904ab6e (
plain)
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
#!/bin/bash
DOMAIN="Application Framework"
FEATURE="Direct UI Framework"
TYPE="Functional"
LEVEL="Component"
UT_TESTCASES=""
FT_TESTCASES=""
for TEST in `ls -d ?t_*`; do
if [ -x $TEST/$TEST -o -x $TEST/$TEST_exec ]; then
TESTCASE_TEMPLATE="<case name=\"$TEST\" description=\"$TEST\" requirement=\"\" timeout=\"200\">
<step expected_result=\"0\">/usr/lib/libmeegotouch-tests/$TEST</step>
</case>
"
if [ -n "`echo $TEST | egrep '^u'`" ]; then
UT_TESTCASES="${UT_TESTCASES}${TESTCASE_TEMPLATE}"
else
FT_TESTCASES="${FT_TESTCASES}${TESTCASE_TEMPLATE}"
fi
fi
done
TESTSUITE_TEMPLATE="<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>
<testdefinition version=\"0.1\">
<suite name=\"libmeegotouch-tests\" domain=\"$DOMAIN\" type=\"$TYPE\" level=\"$LEVEL\">
<set name=\"unit_tests\" description=\"Unit Tests\" feature=\"$FEATURE\">
$UT_TESTCASES
<environments>
<scratchbox>false</scratchbox>
<hardware>true</hardware>
</environments>
</set>
<set name=\"functional_tests\" description=\"Functional Tests\" feature=\"$FEATURE\">
$FT_TESTCASES
<environments>
<scratchbox>false</scratchbox>
<hardware>true</hardware>
</environments>
</set>
</suite>
</testdefinition>"
echo "$TESTSUITE_TEMPLATE"
|