aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-10-04 20:20:54 -0700
committerZac Medico <zmedico@gentoo.org>2011-10-04 20:22:07 -0700
commit20c2032f65c4a0bb7a523d8c5eaf46562e4cd35b (patch)
tree40685e775384aeddb3ac793e020844d02868d427 /pym/portage
parentMark some messages for translation. (diff)
downloadportage-20c2032f65c4a0bb7a523d8c5eaf46562e4cd35b.tar.gz
portage-20c2032f65c4a0bb7a523d8c5eaf46562e4cd35b.tar.bz2
portage-20c2032f65c4a0bb7a523d8c5eaf46562e4cd35b.zip
Execute tests bundled with the whirlpool module.
Diffstat (limited to 'pym/portage')
-rw-r--r--pym/portage/tests/util/test_whirlpool.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/pym/portage/tests/util/test_whirlpool.py b/pym/portage/tests/util/test_whirlpool.py
new file mode 100644
index 000000000..dd0de899a
--- /dev/null
+++ b/pym/portage/tests/util/test_whirlpool.py
@@ -0,0 +1,16 @@
+# Copyright 2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+import subprocess
+
+import portage
+from portage import os
+from portage.const import PORTAGE_PYM_PATH
+from portage.tests import TestCase
+
+class WhirlpoolTestCase(TestCase):
+ def testBundledWhirlpool(self):
+ # execute the tests bundled with the whirlpool module
+ retval = subprocess.call([portage._python_interpreter, "-Wd",
+ os.path.join(PORTAGE_PYM_PATH, "portage/util/whirlpool.py")])
+ self.assertEqual(retval, os.EX_OK)