aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesus Rivero <neurogeek@gentoo.org>2010-03-23 15:28:55 -0430
committerJesus Rivero <neurogeek@gentoo.org>2010-03-23 15:28:55 -0430
commit08ddb6cf8d49dcb7922049607f6af58805cfee01 (patch)
tree21da4c00c1a6ae91c109e0b522fb32a401779952 /metagen/test_cli
parentRemoved __init__.py as metagen dir has one already (diff)
downloadmetagen-08ddb6cf8d49dcb7922049607f6af58805cfee01.tar.gz
metagen-08ddb6cf8d49dcb7922049607f6af58805cfee01.tar.bz2
metagen-08ddb6cf8d49dcb7922049607f6af58805cfee01.zip
Moved all python files into the new metagen module
Diffstat (limited to 'metagen/test_cli')
-rwxr-xr-xmetagen/test_cli28
1 files changed, 28 insertions, 0 deletions
diff --git a/metagen/test_cli b/metagen/test_cli
new file mode 100755
index 0000000..8995050
--- /dev/null
+++ b/metagen/test_cli
@@ -0,0 +1,28 @@
+#!/bin/bash
+
+#Should fail if ECHANGELOG_USER not set:
+echo 'metagen -m -Q'
+./metagen.py -m -Q
+
+echo 'metagen -e "someguy@gentoo.org" -d "Maint desc" -Q'
+./metagen.py -e "someguy@gentoo.org" -d "Maint desc" -Q
+
+echo 'metagen -e "someguy@gentoo.org" -n "Jon Doe" -d "Maint desc" -Q'
+./metagen.py -e "someguy@gentoo.org" -n "Jon Doe" -d "Maint desc" -Q
+
+#Should fail if ECHANGELOG_USER not set:
+echo 'metagen -m -H python -e "foo@bar.com" -d "Foo bar.","Chow fun" -Q'
+./metagen.py -m -H python -e "foo@bar.com" -d "Foo bar.","Chow fun" -Q
+
+#Should fail:
+echo 'metagen -H no-herd -Q'
+./metagen.py -H no-herd -Q
+
+#Should fail:
+echo 'metagen -l "Long desc" -Q'
+./metagen.py -l "Long desc" -Q
+
+#Should fail:
+echo 'metagen -d "Maintainer desc" -Q'
+./metagen.py -d "Maintainer desc" -Q
+