summaryrefslogtreecommitdiffstats
path: root/pym/portage/tests/util/test_whirlpool.py
blob: dd0de899a606ad88d9135d82c3701edc388fe79b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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)