public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sebastian Pipping" <sping@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/metagen:master commit in: metagen/
Date: Sun, 21 Feb 2016 22:14:55 +0000 (UTC)	[thread overview]
Message-ID: <1456091273.0050b9afd963fddfab4035007770a0c9099fbaa0.sping@gentoo> (raw)

commit:     0050b9afd963fddfab4035007770a0c9099fbaa0
Author:     Sebastian Pipping <sebastian <AT> pipping <DOT> org>
AuthorDate: Sun Feb 21 21:32:58 2016 +0000
Commit:     Sebastian Pipping <sping <AT> gentoo <DOT> org>
CommitDate: Sun Feb 21 21:47:53 2016 +0000
URL:        https://gitweb.gentoo.org/proj/metagen.git/commit/?id=0050b9af

Turn test_cli into a bit more of test suite

 metagen/test_cli | 39 +++++++++++++++++++++++++++------------
 1 file changed, 27 insertions(+), 12 deletions(-)

diff --git a/metagen/test_cli b/metagen/test_cli
index 847ae07..d0c9792 100755
--- a/metagen/test_cli
+++ b/metagen/test_cli
@@ -1,28 +1,43 @@
 #!/bin/bash
+handle_error() {
+    ret=$?
+    echo FAILED. >&2
+    exit ${ret}
+}
+trap handle_error ERR
+
+unset ECHANGELOG_USER
+PS4='# '
+set -x
+########################################
+# BEGIN tests
+########################################
+
 
 #Should fail if ECHANGELOG_USER not set:
-echo 'metagen -m -Q'
-metagen -m -Q
+ECHANGELOG_USER='First Last <mail@example.org>' metagen -m -Q
+! metagen -m -Q
 
-echo 'metagen -e "someguy@gentoo.org" -d "Maint desc" -Q'
 metagen -e "someguy@gentoo.org" -d "Maint desc" -Q
 
-echo 'metagen -e "someguy@gentoo.org" -n "Jon Doe" -d "Maint desc" -Q'
 metagen -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 -m -H python -e "foo@bar.com" -d "Foo bar.","Chow fun" -Q
+ECHANGELOG_USER='First Last <mail@example.org>' metagen -m -H python -e "foo@bar.com" -d "Foo bar.","Chow fun" -Q
+! metagen -m -H python -e "foo@bar.com" -d "Foo bar.","Chow fun" -Q
 
 #Should fail:
-echo 'metagen -Q'
-metagen -Q
+! metagen -Q
 
 #Should fail:
-echo 'metagen -l "Long desc" -Q'
-metagen -l "Long desc" -Q
+! metagen -l "Long desc" -Q
 
 #Should fail:
-echo 'metagen -d "Maintainer desc" -Q'
-metagen -d "Maintainer desc" -Q
+! metagen -d "Maintainer desc" -Q
+
 
+########################################
+# END tests
+########################################
+echo
+echo PASSED.


             reply	other threads:[~2016-02-21 22:15 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-21 22:14 Sebastian Pipping [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-03-31  0:10 [gentoo-commits] proj/metagen:master commit in: metagen/ Sebastian Pipping
2022-01-25 18:06 Sebastian Pipping
2020-01-31 17:55 Sebastian Pipping
2020-01-31 17:55 Sebastian Pipping
2017-03-13 19:38 Sebastian Pipping
2016-06-23 21:23 Sebastian Pipping
2016-06-23 21:21 Sebastian Pipping
2016-02-21 22:27 Sebastian Pipping
2016-02-21 22:24 Sebastian Pipping
2016-02-21 22:17 Sebastian Pipping
2016-02-21 22:14 Sebastian Pipping
2016-02-21 22:14 Sebastian Pipping
2016-02-21 22:14 Sebastian Pipping
2015-10-30 15:13 Sebastian Pipping
2015-10-30 15:13 Sebastian Pipping
2011-09-28 14:46 Jesus Rivero
2011-09-25 14:04 Jesus Rivero
2011-09-25 14:04 Jesus Rivero
2011-09-25 14:04 Jesus Rivero
2011-09-09 13:42 Jesus Rivero
2011-09-09 13:16 Jesus Rivero
2011-08-13 22:08 Jesus Rivero

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1456091273.0050b9afd963fddfab4035007770a0c9099fbaa0.sping@gentoo \
    --to=sping@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox