Skip to content

[test] Skip the dictionary tests without a host toolchain - #61

Open
conrade-ctc wants to merge 1 commit into
compiler-research:mainfrom
chicagotrading:pr-hermetic-dict-tests
Open

[test] Skip the dictionary tests without a host toolchain#61
conrade-ctc wants to merge 1 commit into
compiler-research:mainfrom
chicagotrading:pr-hermetic-dict-tests

Conversation

@conrade-ctc

Copy link
Copy Markdown

On a host with no make and no C++ compiler, every module that builds a test dictionary errors out in setup_make:

FileNotFoundError: [Errno 2] No such file or directory: 'make'

This is a follow-up to #51. setup_make now checks for make and for make's $(CXX) first, and skips the module with a clear reason. A build system that sets CPPJIT_TEST_SKIP_MAKE is unaffected. In test_basic_api only test03_add_library_path loads a dictionary, so it gets a skip marker and the other API tests keep running.

setup_make runs make and a C++ compiler. A host with neither now skips the
module instead of failing it.

Only test03_add_library_path loads a dictionary in test_basic_api. That test
gets a skip marker, and the module makes the dictionary optional.

Co-developed-with-the-help-of: Claude Code (Fable 5, human in the loop)

@aaronj0 aaronj0 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants