From 7341d0954194149d5659dbd33ea4b2f9f005b54a Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sun, 2 Dec 2007 17:24:22 -0600 Subject: Add 4 new pactests to get better code coverage by pactest I started playing around with gcov today and it showed a few places in the code that we don't test at all. This is the start of ensuring that we execute most of the code in our codebase. Signed-off-by: Dan McGee --- pactest/tests/pacman001.py | 5 +++++ pactest/tests/pacman002.py | 5 +++++ pactest/tests/pacman003.py | 5 +++++ pactest/tests/pacman004.py | 5 +++++ 4 files changed, 20 insertions(+) create mode 100644 pactest/tests/pacman001.py create mode 100644 pactest/tests/pacman002.py create mode 100644 pactest/tests/pacman003.py create mode 100644 pactest/tests/pacman004.py (limited to 'pactest') diff --git a/pactest/tests/pacman001.py b/pactest/tests/pacman001.py new file mode 100644 index 00000000..d467e3f2 --- /dev/null +++ b/pactest/tests/pacman001.py @@ -0,0 +1,5 @@ +self.description = "Test command line option (--version)" + +self.args = "--version" + +self.addrule("PACMAN_RETCODE=2") diff --git a/pactest/tests/pacman002.py b/pactest/tests/pacman002.py new file mode 100644 index 00000000..c0217259 --- /dev/null +++ b/pactest/tests/pacman002.py @@ -0,0 +1,5 @@ +self.description = "Test command line option (--help)" + +self.args = "--help" + +self.addrule("PACMAN_RETCODE=2") diff --git a/pactest/tests/pacman003.py b/pactest/tests/pacman003.py new file mode 100644 index 00000000..b5275943 --- /dev/null +++ b/pactest/tests/pacman003.py @@ -0,0 +1,5 @@ +self.description = "Test command line option (-S --help)" + +self.args = "-S --help" + +self.addrule("PACMAN_RETCODE=2") diff --git a/pactest/tests/pacman004.py b/pactest/tests/pacman004.py new file mode 100644 index 00000000..d8d6b102 --- /dev/null +++ b/pactest/tests/pacman004.py @@ -0,0 +1,5 @@ +self.description = "Test command line option (-v)" + +self.args = "-v" + +self.addrule("PACMAN_RETCODE=1") -- cgit v1.2.3-70-g09d2