Repository navigation
ci: add GitHub Actions build matrix and reader-free tests - #1
Merged
Merged
Conversation
Add test/software/test_no_hardware.c, run by ctest when configured with -DBUILD_SOFTWARE_TESTS=ON (default OFF, so packagers are unaffected). It needs no NFC reader and checks: - ISO 14443-3 CRC_A/CRC_B against the CRC catalogue check values and the worked example of the standard - the string converters and nfc_version() - nfc_init/nfc_list_devices/nfc_open without any device configured The workflow builds and tests on Linux (CMake with gcc and clang, autotools), macOS and Windows (MinGW via MSYS2), and smoke-tests nfc-list with no reader attached. The Travis configuration no longer runs. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
CMake 4 removed compatibility with cmake_minimum_required below 3.5, so the project no longer configures with it (seen on macOS CI runners). Configuring with CMake 3.28 installs the same 51 files before and after this change; with CMake 4.1 the configure error goes away and the reader-free tests pass. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The Windows job reaches the compiler and fails in contrib/win32/stdlib.c (char *str[32] passed to strcpy, nfc-tools#765). Keep it visible but non-blocking until that fix is merged. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
First step of maintaining this fork: nothing is built or tested automatically today (only a
.travis.ymlthat no longer runs).What
test/software/test_no_hardware.c, run byctestwith-DBUILD_SOFTWARE_TESTS=ON(default OFF). No NFC reader needed: CRC_A/CRC_B known answers (CRC catalogue check values + the ISO 14443-3 worked example), string converters,nfc_version(), andnfc_init/nfc_list_devices/nfc_openwith no device configured..github/workflows/ci.yml: Linux CMake (gcc, clang), Linux autotools, macOS, Windows MinGW (MSYS2), plus annfc-listsmoke test.TDD evidence (Ubuntu 24.04 container)
No tests were found!!!, ctest exit 8.100% tests passed.0x6363→0x6364(3 checks fail),"ISO/IEC 14443A"string changed (1 fails),nfc_version()returning""(1 fails).🤖 Generated with Claude Code