blob: ac78d9742130d35f65f9d5c1f25dae79a3074466 [file] [log] [blame]
# Copyright 2011-2014 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, "-bb", "-Wd",
os.path.join(PORTAGE_PYM_PATH, "portage/util/whirlpool.py")])
self.assertEqual(retval, os.EX_OK)