Skip to content

Unit test failure when building the release tarball: check_feature_macros #921

@clausecker

Description

@clausecker

The unit test check_feature_macros of simdutf 8.0.0 fails on aarch64 and armv7 FreeBSD 15.0 built with the system compiler, clang 19.1.7. This'll probably reproduce on other configurations as well. I am building from the release tarball, so no git repository. The unit test fails as follows (from LastTest.log):

89/89 Testing: check_feature_macros
89/89 Test: check_feature_macros
Command: "/usr/local/bin/python3.11" "/usr/home/ports/main.ports/converters/simdutf/work/simdutf-8.0.0/scripts/check_feature_macros.py"
Directory: /usr/home/ports/main.ports/converters/simdutf/work/simdutf-8.0.0
"check_feature_macros" start time: Jan 15 17:30 CET
Output:
----------------------------------------------------------
Error running git ls-files: Command '['git', 'ls-files', '*.cpp', '*.h']' returned non-zero exit status 128.
No .cpp or .h files found in the Git repository.
<end of output>
Test time =   0.20 sec
----------------------------------------------------------
Test Failed.
"check_feature_macros" end time: Jan 15 17:30 CET
"check_feature_macros" time elapsed: 00:00:00
----------------------------------------------------------

It seems like the unit test should either be skipped if no git repository is used or be modified to no longer require git.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions