Skip to content

Commit cdc57d9

Browse files
committed
Correct paths used by ecFlow Python tests
Re ECFLOW-1943
1 parent 1f3ec72 commit cdc57d9

File tree

3 files changed

+22
-22
lines changed

3 files changed

+22
-22
lines changed

libs/pyext/setup.py.in

+18-18
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import glob
1515
# To test install manually, we can:
1616
# python3 setup.py --help-commands # help
1717
#
18-
# cd $WK/Pyext
18+
# cd $WK/libs/pyext
1919
# rm -rf build/ # for a clean build
2020
# python setup.py build_ext # build C/C++ extensions (compile/link to build directory)
2121
# python setup.py install --home=~
@@ -40,30 +40,30 @@ import glob
4040
# to get this to work, you will need to include the path
4141
# to your boost installation and ecflow includes
4242
boost_root=os.getenv("BOOST_ROOT")
43-
include_dirs = [ "@CMAKE_CURRENT_SOURCE_DIR@/../cereal/include",
44-
"@CMAKE_CURRENT_SOURCE_DIR@/../ACore/src",
45-
"@CMAKE_CURRENT_SOURCE_DIR@/../ANattr/src",
46-
"@CMAKE_CURRENT_SOURCE_DIR@/../ANode/parser/src",
47-
"@CMAKE_CURRENT_SOURCE_DIR@/../ANode/src",
48-
"@CMAKE_CURRENT_SOURCE_DIR@/../Base/src",
49-
"@CMAKE_CURRENT_SOURCE_DIR@/../Base/src/cts",
50-
"@CMAKE_CURRENT_SOURCE_DIR@/../Base/src/stc",
51-
"@CMAKE_CURRENT_SOURCE_DIR@/../CSim/src",
52-
"@CMAKE_CURRENT_SOURCE_DIR@/../Client/src",
43+
include_dirs = [ "@CMAKE_CURRENT_SOURCE_DIR@/../3rdparty/cereal/include",
44+
"@CMAKE_CURRENT_SOURCE_DIR@/../libs/core/src",
45+
"@CMAKE_CURRENT_SOURCE_DIR@/../libs/attribute/src",
46+
"@CMAKE_CURRENT_SOURCE_DIR@/../libs/node/parser/src",
47+
"@CMAKE_CURRENT_SOURCE_DIR@/../libs/node/src",
48+
"@CMAKE_CURRENT_SOURCE_DIR@/../libs/base/src",
49+
"@CMAKE_CURRENT_SOURCE_DIR@/../libs/base/src/cts",
50+
"@CMAKE_CURRENT_SOURCE_DIR@/../libs/base/src/stc",
51+
"@CMAKE_CURRENT_SOURCE_DIR@/../libs/simulator/src",
52+
"@CMAKE_CURRENT_SOURCE_DIR@/../libs/client/src",
5353
"@CMAKE_CURRENT_SOURCE_DIR@/src",
5454
boost_root,
5555
]
5656

5757
# define the library directories to include any extra libraries that may be needed.
5858
# Give preference to release libs
5959
boost_lib_dir = boost_root + "/stage/lib/"
60-
library_dirs = ['@CMAKE_BINARY_DIR@/ACore',
61-
'@CMAKE_BINARY_DIR@/ANattr/',
62-
'@CMAKE_BINARY_DIR@/ANode/',
63-
'@CMAKE_BINARY_DIR@/Base/',
64-
'@CMAKE_BINARY_DIR@/CSim/',
65-
'@CMAKE_BINARY_DIR@/Client/',
66-
boost_lib_dir
60+
library_dirs = ['@CMAKE_BINARY_DIR@/libs/core',
61+
'@CMAKE_BINARY_DIR@/libs/attribute/',
62+
'@CMAKE_BINARY_DIR@/libs/node/',
63+
'@CMAKE_BINARY_DIR@/libs/base/',
64+
'@CMAKE_BINARY_DIR@/libs/simulator/',
65+
'@CMAKE_BINARY_DIR@/libs/client/',
66+
boost_lib_dir,
6767
]
6868

6969
# define the libraries to link with this includes the boost lib

libs/pyext/test/py_s_TestPythonChildApi.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import ecflow_test_util as Test
2323

2424

25-
def ecf_includes() : return File.source_dir() + "/Pyext" + "/test/data/python_includes"
25+
def ecf_includes(): return File.source_dir() + "/libs/pyext/test/data/python_includes"
2626

2727
def create_defs(name,the_port):
2828
defs = Defs()

libs/pyext/test/py_u_TestTraversal.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -215,14 +215,14 @@ def all_files(root, patterns='*', single_level=False, yield_folders=False):
215215

216216
# Traverse all the good defs in the Parser directory
217217
newpath = ""
218-
if os.path.basename(cwd) == "Pyext":
219-
newpath = os.path.join( os.path.dirname(cwd),"ANode/parser/test/data/good_defs" )
218+
if os.path.basename(cwd) == "libs/pyext":
219+
newpath = os.path.join( os.path.dirname(cwd),"libs/node/parser/test/data/good_defs" )
220220

221221
#print newpath
222222
for path_to_defs_file in all_files(newpath, '*.def;*.txt'):
223223
check_traversal(path_to_defs_file)
224224

225225
# try the mega_def. Commented out since it takes to long
226-
#mega_def = os.path.join( os.path.dirname(cwd), "ANode/parser/test/data/single_defs/mega.def")
226+
#mega_def = os.path.join( os.path.dirname(cwd), "libs/node/parser/test/data/single_defs/mega.def")
227227
#check_traversal(mega_def)
228228
print("All Tests pass")

0 commit comments

Comments
 (0)