7 echo "Usage) $SCRIPT ClassName"
15 TESTSUITEPATH=`dirname $PWD`
16 TESTSUITENAME=${TESTSUITEPATH##*/}
18 TEMPLATE=../utc-MODULE-CLASS.cpp.in
19 TESTCASE=utc-${MODULE}-${CLASS}
22 if [ ! -e "$TESTCASE.cpp" ]; then
24 s^@CLASS@^'"$CLASS"'^g
25 s^@MODULE@^'"$MODULE"'^g
26 ' $TEMPLATE > $TESTCASE.cpp
29 if [ ! -e "$TESTCASE.cpp" ]; then
36 if ! [ -f file.list ]; then
38 echo "TARGETS += \\" >> file.list
40 echo " $TESTCASE \\" >> file.list
43 if ! [ -f tslist ]; then
46 echo "/$TESTSUITENAME/$SECTION/$TESTCASE" >> tslist
49 if ! [ -f Makefile ]; then
50 ln -s ../master-makefile.mk Makefile
53 echo "$TESTCASE" >> .gitignore
55 echo "Testcase file is $TESTCASE.cpp"
56 echo "$TESTCASE is added to tslist"
57 echo "$TESTCASE is added to file.list"