[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    koffice/plugins/chartshape/tests/odf
From:       Johannes Simon <johannes.simon () gmail ! com>
Date:       2010-10-14 21:26:46
Message-ID: 20101014212646.E097DAC8E6 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1186002 by jsimon:

Also automatically add test case to CMakeLists.txt and abort if test name contains \
spaces or other special characters

 M  +11 -0     create-test  


--- trunk/koffice/plugins/chartshape/tests/odf/create-test #1186001:1186002
@@ -24,6 +24,12 @@
 	exit
 fi
 
+echo $name | grep -v [\ \;\,\\\/] > /dev/null
+if [ $? -eq 1 ]; then
+	echo "The test name must not contain spaces or any other special characters. \
Aborting" +	exit
+fi
+
 # 1) Create new test folder from template/
 cp -r template/ "$name"
 
@@ -40,7 +46,12 @@
 doc_path="$name/doc"
 mkdir $doc_path
 
+echo "add_subdirectory( $name )" >> CMakeLists.txt
+
 echo ""
+echo "========= Added test case to ./CMakeLists.txt ========="
+
+echo ""
 echo "========= Extracting $doc_name ========="
 # 4) Unzip document
 unzip "$doc" -d "$doc_path/orig"


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic