jenkins will build python. (#865)
Jenkins will build with -DOPM_ENABLE_PYTHON=ON
This commit is contained in:
committed by
Joakim Hove
parent
28ba27184a
commit
597bbde151
@@ -10,5 +10,5 @@ configure_file(data/schedule/TEMPLATE.SCH data/schedule/TEMPLATE.SCH COPYONLY)
|
||||
configure_file(utils.py utils.py COPYONLY)
|
||||
|
||||
foreach(prog time_vector connection deck group_tree grupnet parse_deck parse state props schedule wells)
|
||||
add_python_test(${prog} ${prog}.py)
|
||||
add_python_test(${prog} ${prog}.py ${PYTHON_DIR})
|
||||
endforeach()
|
||||
|
||||
@@ -1,10 +1,13 @@
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import sunbeam
|
||||
|
||||
python_dir = sys.argv[2]
|
||||
|
||||
class TestGroupTree(unittest.TestCase):
|
||||
def setUp(self):
|
||||
norne = '../../../python/examples/data/norne/NORNE_ATW2013.DATA'
|
||||
norne = python_dir + '/examples/data/norne/NORNE_ATW2013.DATA'
|
||||
self.sch = sunbeam.parse(norne, [('PARSE_RANDOM_SLASH', sunbeam.action.ignore)]).schedule
|
||||
|
||||
def test_group(self):
|
||||
|
||||
@@ -1,11 +1,14 @@
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import sunbeam
|
||||
|
||||
python_dir = sys.argv[2]
|
||||
|
||||
class TestGrupnet(unittest.TestCase):
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
norne = '../../../python/examples/data/norne/NORNE_ATW2013.DATA'
|
||||
norne = python_dir + '/examples/data/norne/NORNE_ATW2013.DATA'
|
||||
cls.sch = sunbeam.parse(norne, [('PARSE_RANDOM_SLASH', sunbeam.action.ignore)]).schedule
|
||||
|
||||
def test_vfp_table(self):
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
import unittest
|
||||
import sunbeam
|
||||
import os.path
|
||||
import sys
|
||||
|
||||
python_dir = sys.argv[2]
|
||||
|
||||
class TestParse(unittest.TestCase):
|
||||
|
||||
@@ -29,7 +32,7 @@ FIPNUM
|
||||
|
||||
def setUp(self):
|
||||
self.spe3fn = 'spe3/SPE3CASE1.DATA'
|
||||
self.norne_fname = os.path.abspath('../../../python/examples/data/norne/NORNE_ATW2013.DATA')
|
||||
self.norne_fname = os.path.abspath(python_dir + '/examples/data/norne/NORNE_ATW2013.DATA')
|
||||
|
||||
def test_parse(self):
|
||||
spe3 = sunbeam.parse(self.spe3fn)
|
||||
|
||||
@@ -88,7 +88,7 @@ class TestWells(unittest.TestCase):
|
||||
self.assertEqual(2, len(flowing))
|
||||
self.assertEqual(0, len(closed))
|
||||
|
||||
flowing1 = filter(lambda x: not sunbeam.Well.closed(1)(x), wells)
|
||||
flowing1 = filter(lambda x: not sunbeam.Well.closed()(x), wells)
|
||||
closed1 = filter(sunbeam.Well.closed(), wells)
|
||||
self.assertListEqual(list(closed), list(closed1))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user