Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
LEFEBVREJP email
radix
Commits
95f13440
Commit
95f13440
authored
Jan 15, 2019
by
Purves, Murray
Browse files
Moving python test to test directory
parent
80a0ca0d
Pipeline
#28446
failed with stages
in 55 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
radixpy/CMakeLists.txt
View file @
95f13440
...
...
@@ -18,6 +18,7 @@ IF(Python3_FOUND)
SET
(
SETUP_PY
"
${
CMAKE_CURRENT_BINARY_DIR
}
/radixmathpy/setup.py"
)
CONFIGURE_FILE
(
${
SETUP_PY_IN
}
${
SETUP_PY
}
)
# Set the commands to build and install the python package
SET
(
OUTPUT
"
${
CMAKE_CURRENT_BINARY_DIR
}
/radixmathpy/build_output"
)
ADD_CUSTOM_COMMAND
(
OUTPUT
${
OUTPUT
}
...
...
@@ -26,10 +27,10 @@ IF(Python3_FOUND)
DEPENDS
""
)
ADD_CUSTOM_TARGET
(
target ALL DEPENDS
${
OUTPUT
}
)
INSTALL
(
CODE
"execute_process(COMMAND
${
Python3_EXECUTABLE
}
${
SETUP_PY
}
install --prefix=
${
CMAKE_INSTALL_PREFIX
}
)"
)
ADD_TEST
(
NAME radixmathpy_test COMMAND
${
Python3_EXECUTABLE
}
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/radixmathpy/test.py"
WORKING_DIRECTORY
${
CMAKE_CURRENT_BINARY_DIR
}
)
# Add the tests
TRIBITS_ADD_TEST_DIRECTORIES
(
"radixmathpy/tests"
)
ELSE
()
MESSAGE
(
WARNING
"Not found Python 3: not including bindings"
)
...
...
radixpy/cmake/Dependencies.cmake
0 → 100644
View file @
95f13440
TRIBITS_PACKAGE_DEFINE_DEPENDENCIES
(
LIB_REQUIRED_PACKAGES radixmath
LIB_OPTIONAL_PACKAGES
TEST_REQUIRED_PACKAGES
TEST_OPTIONAL_PACKAGES
LIB_REQUIRED_TPLS
LIB_OPTIONAL_TPLS
TEST_REQUIRED_TPLS
TEST_OPTIONAL_TPLS
)
radixpy/radixmathpy/tests/CMakeLists.txt
0 → 100644
View file @
95f13440
# Add Python tests for radixmath
ADD_TEST
(
NAME test_interpolate_py COMMAND
${
Python3_EXECUTABLE
}
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/test_interpolate.py"
WORKING_DIRECTORY
${
CMAKE_CURRENT_BINARY_DIR
}
)
\ No newline at end of file
radixpy/radixmathpy/test.py
→
radixpy/radixmathpy/test
s/test_interpolate
.py
View file @
95f13440
File moved
Purves, Murray
@murray
·
Jan 15, 2019
Author
Contributor
@jap
it looks like FindPython3 requires CMake 3.12 or above...
@jap it looks like FindPython3 requires CMake 3.12 or above...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment