build/meson: name platform tests like autotools

Meson and autotools should name the tests the same way.
Also, all tests binaries built by autotools start on purpose
with "test-". Do that for meson too.

Also, otherwise "tools/run-nm-test.sh" fails to workaround
valgrind failures for platform tests as it does not expect
the tests to be named that way:

    if [ $HAS_ERRORS -eq 0 ]; then
        # valgrind doesn't support setns syscall and spams the logfile.
        # hack around it...
        if [ "$TEST_NAME" = 'test-link-linux' -o \
             "$TEST_NAME" = 'test-acd' ]; then
            if [ -z "$(sed -e '/^--[0-9]\+-- WARNING: unhandled .* syscall: /,/^--[0-9]\+-- it at http.*\.$/d' "$LOGFILE")" ]; then
                HAS_ERRORS=1
            fi
        fi
    fi
This commit is contained in:
Thomas Haller 2019-02-22 09:08:06 +01:00
parent b1f6d53bc4
commit 5466edc63e

View file

@ -13,13 +13,13 @@ test_units = [
foreach test_unit: test_units
exe = executable(
'platform-' + test_unit[0],
test_unit[0],
test_unit[1],
dependencies: test_unit[2],
)
test(
'platform/' + test_unit[0],
test_unit[0],
test_script,
timeout: test_unit[3],
args: test_args + [exe.full_path()],