[Blends-commit] [SCM] blends-gsoc branch, master, updated. eca67cbfdad42b9ef6738e31d69e4d26e41b35c4
Emmanouil Kiagias
e.kiagias at gmail.com
Mon Jul 8 19:51:21 UTC 2013
The following commit has been merged in the master branch:
commit eca67cbfdad42b9ef6738e31d69e4d26e41b35c4
Author: Emmanouil Kiagias <e.kiagias at gmail.com>
Date: Mon Jul 8 21:51:05 2013 +0200
add simple script tester, which generates control/task-description files for all Blends and compares the generated files, needs no arguments to be executed, usage: ./tester
diff --git a/tester b/tester
new file mode 100755
index 0000000..aa0ee0d
--- /dev/null
+++ b/tester
@@ -0,0 +1,36 @@
+#!/bin/bash
+
+# simple script that generates control/task-description files
+# with both different {sec-}blend-gen-control scripts for all existing Blends'
+# and compares the generated files
+
+dodiff() {
+ for file in $1/*
+ do
+ filename=`basename $file`
+ if [ $filename != "readme" ]
+ then
+ echo "Comparing $1/$filename with $1-sec/$filename"
+ diff $1/$filename $1-sec/$filename
+ fi
+ done
+}
+
+blends_array=("debichem" "debian-gis" "debian-accessibility" "debian-ezgo" "debian-games" "fun" "debian-junior" "openstudio" "debian-edu" "debian-imaging" "debian-pan" "debian-multimedi" "debian-lex" "debian-med" "debian-science")
+
+for blend in ${blends_array[@]}
+do
+ echo "Generating control files for $blend."
+ ./blend-gen-control -S -D -c -b $blend
+ ./sec-blend-gen-control -S -D -c -b $blend
+
+ echo "Generating task-description files for $blend"
+ ./blend-gen-control -S -D -t -b $blend
+ ./sec-blend-gen-control -S -D -t -b $blend
+
+ dodiff "control"
+ echo ""
+ dodiff "taskdesc"
+
+ echo ""
+done
--
Git repository for blends-gsoc code
More information about the Blends-commit
mailing list