From ec29a114196da984adb38888beb267cac052633d Mon Sep 17 00:00:00 2001 From: Ivan Pozdeev Date: Sun, 23 Jul 2023 23:15:13 +0300 Subject: [PATCH] Fix tests --- plugins/python-build/test/build.bats | 35 +++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/plugins/python-build/test/build.bats b/plugins/python-build/test/build.bats index 76a6b6a5..8a0dee1c 100644 --- a/plugins/python-build/test/build.bats +++ b/plugins/python-build/test/build.bats @@ -259,6 +259,38 @@ make install OUT } +@test "openssl is linked from Ports in FreeBSD if present" { + cached_tarball "Python-3.6.2" + + for i in {1..7}; do stub uname '-s : echo FreeBSD'; done + stub uname '-r : echo 11.0-RELEASE' + for i in {1..2}; do stub uname '-s : echo FreeBSD'; done + stub sysctl '-n hw.ncpu : echo 1' + + stub pkg "info -e openssl : true" + for in in {1..2}; do stub pkg false; done + + stub_make_install + + export -n MAKE_OPTS + run_inline_definition <