Execute tests bundled with the whirlpool module.
authorZac Medico <zmedico@gentoo.org>
Wed, 5 Oct 2011 03:20:54 +0000 (20:20 -0700)
committerZac Medico <zmedico@gentoo.org>
Wed, 5 Oct 2011 03:22:07 +0000 (20:22 -0700)
pym/portage/tests/util/test_whirlpool.py [new file with mode: 0644]

diff --git a/pym/portage/tests/util/test_whirlpool.py b/pym/portage/tests/util/test_whirlpool.py
new file mode 100644 (file)
index 0000000..dd0de89
--- /dev/null
@@ -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)