From 204580f4807d13fa240b94ceabac8237786b49d4 Mon Sep 17 00:00:00 2001 From: Alexis Engelke Date: Wed, 22 Sep 2021 13:16:58 +0200 Subject: [PATCH] tests: Move to root directory --- tests/test_decode.c => decode-test.c | 0 tests/test_encode.c => encode-test.c | 1 - meson.build | 3 ++- tests/meson.build | 9 --------- 4 files changed, 2 insertions(+), 11 deletions(-) rename tests/test_decode.c => decode-test.c (100%) rename tests/test_encode.c => encode-test.c (99%) delete mode 100644 tests/meson.build diff --git a/tests/test_decode.c b/decode-test.c similarity index 100% rename from tests/test_decode.c rename to decode-test.c diff --git a/tests/test_encode.c b/encode-test.c similarity index 99% rename from tests/test_encode.c rename to encode-test.c index 5fff616..5c97fdb 100644 --- a/tests/test_encode.c +++ b/encode-test.c @@ -3,7 +3,6 @@ #include #include #include -#include #include diff --git a/meson.build b/meson.build index 78afccc..2609d6a 100644 --- a/meson.build +++ b/meson.build @@ -61,7 +61,8 @@ fadec = declare_dependency(link_with: libfadec, include_directories: include_directories('.'), sources: instr_data) -subdir('tests') +test('decode', executable('decode-test', 'decode-test.c', dependencies: fadec)) +test('encode', executable('encode-test', 'encode-test.c', dependencies: fadec)) install_headers('fadec.h', 'fadec-enc.h') diff --git a/tests/meson.build b/tests/meson.build deleted file mode 100644 index 37da20b..0000000 --- a/tests/meson.build +++ /dev/null @@ -1,9 +0,0 @@ - -decode_test = executable('test_decode', 'test_decode.c', - dependencies: fadec) -test('decode', decode_test) - -encode_test = executable('test_encode', 'test_encode.c', - dependencies: fadec, - c_args: ['-D_GNU_SOURCE']) -test('encode', encode_test)