Skip to content

TST: add test package with internal shared library, installed in site…

Cirrus CI / opensuse-15 failed Oct 27, 2024 in 1m 40s

Task Summary

Instruction test failed in 01:38

Details

⚠️ Not enough compute credits to prioritize tasks!

✅ 00:00 clone
❌ 01:38 test

Initialized empty Git repository in /tmp/cirrus-ci-build/tests/packages/sharedlib-in-package/.git/
+ meson setup /tmp/cirrus-ci-build/tests/packages/sharedlib-in-package /tmp/cirrus-ci-build/tests/packages/sharedlib-in-package/.mesonpy-8e6vmpks -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=/tmp/cirrus-ci-build/tests/packages/sharedlib-in-package/.mesonpy-8e6vmpks/meson-python-native-file.ini
The Meson build system
Version: 1.6.0
Source dir: /tmp/cirrus-ci-build/tests/packages/sharedlib-in-package
Build dir: /tmp/cirrus-ci-build/tests/packages/sharedlib-in-package/.mesonpy-8e6vmpks
Build type: native build
Project name: sharedlib-in-package
Project version: 1.0.0
C compiler for the host machine: cc (gcc 7.5.0 "cc (SUSE Linux) 7.5.0")
C linker for the host machine: cc ld.bfd 2.41.0.20230908-150100
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program python found: YES (/tmp/cirrus-ci-build/env/bin/python3)
Found pkg-config: YES (/usr/bin/pkg-config) 0.29.2
Run-time dependency python found: YES 3.11
Build targets in project: 2

sharedlib-in-package 1.0.0

  User defined options
    Native files: /tmp/cirrus-ci-build/tests/packages/sharedlib-in-package/.mesonpy-8e6vmpks/meson-python-native-file.ini
    b_ndebug    : if-release
    b_vscrt     : md
    buildtype   : release

Found ninja-1.10.0 at /usr/bin/ninja
+ /usr/bin/ninja
[1/5] Compiling C object mypkg/libexamplelib.so.p/examplelib.c.o
[2/5] Linking target mypkg/libexamplelib.so
[3/5] Compiling C object mypkg/_example.cpython-311-x86_64-linux-gnu.so.p/_examplemod.c.o
[4/5] Generating symbol file mypkg/libexamplelib.so.p/libexamplelib.so.symbols
[5/5] Linking target mypkg/_example.cpython-311-x86_64-linux-gnu.so
[1/3] /tmp/cirrus-ci-build/tests/packages/sharedlib-in-package/.mesonpy-8e6vmpks/mypkg/libexamplelib.so
[2/3] /tmp/cirrus-ci-build/tests/packages/sharedlib-in-package/.mesonpy-8e6vmpks/mypkg/_example.cpython-311-x86_64-linux-gnu.so
[3/3] /tmp/cirrus-ci-build/tests/packages/sharedlib-in-package/mypkg/__init__.py
----------------------------- Captured stderr call -----------------------------
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pytest-of-root/pytest-0/mesonpy-test-venv5/lib64/python3.11/site-packages/mypkg/__init__.py", line 19, in <module>
    _load_sharedlib()
  File "/tmp/pytest-of-root/pytest-0/mesonpy-test-venv5/lib64/python3.11/site-packages/mypkg/__init__.py", line 12, in _load_sharedlib
    if os.name == "nt":
       ^^
NameError: name 'os' is not defined
=========================== short test summary info ============================
SKIPPED [1] tests/test_project.py:204: Requires MSVC
SKIPPED [3] tests/test_project.py:216: macOS specific test
SKIPPED [2] tests/test_project.py:233: macOS specific test
SKIPPED [1] tests/test_tags.py:47: macOS specific test
SKIPPED [1] tests/test_tags.py:59: macOS specific test
SKIPPED [1] tests/test_tags.py:69: macOS specific test
SKIPPED [2] tests/test_wheel.py:257: macOS specific test
FAILED tests/test_wheel.py::test_sharedlib_in_package - subprocess.CalledProcessError: Command '['/tmp/pytest-of-root/pytest-0/mesonpy-test-venv5/bin/python3.11', '-c', 'import mypkg; print(mypkg.example_sum(2, 5))']' returned non-zero exit status 1.
============= 1 failed, 112 passed, 11 skipped in 82.77s (0:01:22) =============
��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������