File nonparallel-tests.patch of Package liboqs-0.7.2-debian-ubuntu
Description: By default, pytest uses all processes for testing purpose,
not respecting ${DEB_BUILD_OPTIONS}. In principle the latter could be
parsed, but it is easier to just disable the parallelisation.
Author: Andrius Merkys <merkys@debian.org>
Forwarded: not-needed
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -118,7 +118,7 @@
# for DLL builds.
add_custom_target(
test
- COMMAND ${CMAKE_COMMAND} -E env OQS_BUILD_DIR=${CMAKE_BINARY_DIR} ${PYTHON3_EXEC} -m pytest --verbose --numprocesses=auto --ignore=scripts/copy_from_upstream/repos
+ COMMAND ${CMAKE_COMMAND} -E env OQS_BUILD_DIR=${CMAKE_BINARY_DIR} ${PYTHON3_EXEC} -m pytest --verbose --ignore=scripts/copy_from_upstream/repos
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
DEPENDS oqs example_kem kat_kem test_kem example_sig kat_sig test_sig test_sig_mem test_kem_mem ${UNIX_TESTS}
USES_TERMINAL)