xz/tests
Lasse Collin 56f1d5ed68 Tests: Make the config.h grep patterns Meson compatible
Now the test scripts detect both

    #define HAVE_DECODER_ARM
    #define HAVE_DECODER_ARM 1

as support for the ARM filter without confusing it with these:

    #define HAVE_DECODER_ARM64
    #define HAVE_DECODER_ARM64 1

Previously only the ones ending with " 1" were accepted for
the macros where this kind of confusion was possible.

This should help with Meson support because Meson's built-in
features produce config.h entries that are either

    #define FOO 1
    #define FOO 0

or:

    #define FOO
    #undef FOO

The former method has a benefit that one can use "#if FOO" and -Wundef
will catch if a #define is missing (for example, it helps catching
typos). But XZ Utils has to use the latter since it has been
convenient with Autoconf's default behavior.[*] While it's easy to
emulate the Autoconf style (#define FOO 1 vs. no #define at all)
in Meson, it results in clumsy code. Thus it's better to change
the few places in the tests where this difference matters.

[*] While most checks in Autoconf default to the second style above,
    a few things use the first style (like AC_CHECK_DECLS). The mix
    of both styles is the most confusing as one has to remember which
    macro needs #ifdef and which #if. Currently HAVE_VISIBILITY is
    only such config.h entry that is 1 or 0. It comes unmodified
    from Gnulib's visibility.m4.
2024-05-20 16:55:00 +03:00
..
files Tests: Remove x86 and SPARC BCJ tests 2024-04-27 20:21:30 +03:00
ossfuzz tests/ossfuzz: Tiny fix to a comment. 2024-04-09 18:22:27 +03:00
Makefile.am CMake: Keep the build working if the "tests" directory is missing 2024-04-27 20:21:30 +03:00
code_coverage.sh Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
create_compress_files.c Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
test_bcj_exact_size.c Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
test_block_header.c Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
test_check.c Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
test_compress.sh Tests: Make the config.h grep patterns Meson compatible 2024-05-20 16:55:00 +03:00
test_compress_generated_abc Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
test_compress_generated_random Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
test_compress_generated_text Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
test_files.sh Tests: Make the config.h grep patterns Meson compatible 2024-05-20 16:55:00 +03:00
test_filter_flags.c Tests: test_filter_flags: Edit comments and style 2024-04-22 18:35:19 +03:00
test_filter_str.c Tests: test_filter_str: Add a few assertions 2024-04-23 16:35:33 +03:00
test_hardware.c Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
test_index.c Tests: test_index: Fix failures when features are disabled 2024-04-28 01:34:50 +03:00
test_index_hash.c Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
test_lzip_decoder.c Tests: test_lzip_decoder: Tweak coding style and comments 2024-04-19 20:53:24 +03:00
test_memlimit.c Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
test_microlzma.c Tests: test_microlzma: Add a "FIXME?" about LZMA_FINISH handling 2024-04-13 22:39:10 +03:00
test_scripts.sh CMake: Add test_scripts.sh to the tests. 2024-02-19 12:21:37 +02:00
test_stream_flags.c Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
test_suffix.sh Tests: test_suffix.sh: Add a comment 2024-05-20 16:55:00 +03:00
test_vli.c Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
tests.cmake CMake: Add comments 2024-05-20 16:55:00 +03:00
tests.h Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
tuktest.h Tests: tuktest.h: Treat Clang separately from GCC. 2024-02-14 21:12:58 +02:00
xzgrep_expected_output xzgrep: Improve the test script. 2014-06-13 18:58:22 +03:00