From 9a32a7fdfee5235ccc85054fa9f0c990d41611aa Mon Sep 17 00:00:00 2001 From: Caio Marcelo de Oliveira Filho Date: Wed, 20 Oct 2021 20:53:24 -0700 Subject: [PATCH] util: Move test sources to tests/ directory Acked-by: Matt Turner Part-of: --- src/util/meson.build | 20 +++++++++---------- src/util/{ => tests}/bitset_test.cpp | 0 src/util/{ => tests}/blob_test.cpp | 0 src/util/{ => tests}/mesa-sha1_test.cpp | 0 src/util/{ => tests}/process_test.c | 0 src/util/{ => tests}/rb_tree_test.cpp | 0 .../{ => tests}/register_allocate_test.cpp | 0 src/util/{ => tests}/roundeven_test.cpp | 0 src/util/{ => tests}/u_atomic_test.cpp | 0 src/util/{ => tests}/u_debug_stack_test.cpp | 0 src/util/{ => tests}/u_qsort_test.cpp | 0 11 files changed, 10 insertions(+), 10 deletions(-) rename src/util/{ => tests}/bitset_test.cpp (100%) rename src/util/{ => tests}/blob_test.cpp (100%) rename src/util/{ => tests}/mesa-sha1_test.cpp (100%) rename src/util/{ => tests}/process_test.c (100%) rename src/util/{ => tests}/rb_tree_test.cpp (100%) rename src/util/{ => tests}/register_allocate_test.cpp (100%) rename src/util/{ => tests}/roundeven_test.cpp (100%) rename src/util/{ => tests}/u_atomic_test.cpp (100%) rename src/util/{ => tests}/u_debug_stack_test.cpp (100%) rename src/util/{ => tests}/u_qsort_test.cpp (100%) diff --git a/src/util/meson.build b/src/util/meson.build index a39c6bfdcf2..dcadf34933c 100644 --- a/src/util/meson.build +++ b/src/util/meson.build @@ -295,21 +295,21 @@ if with_tests endif files_util_tests = files( - 'bitset_test.cpp', - 'blob_test.cpp', - 'rb_tree_test.cpp', - 'roundeven_test.cpp', - 'register_allocate_test.cpp', + 'tests/bitset_test.cpp', + 'tests/blob_test.cpp', 'tests/dag_test.cpp', 'tests/fast_idiv_by_const_test.cpp', 'tests/fast_urem_by_const_test.cpp', 'tests/int_min_max.cpp', + 'tests/rb_tree_test.cpp', + 'tests/register_allocate_test.cpp', + 'tests/roundeven_test.cpp', 'tests/set_test.cpp', 'tests/sparse_array_test.cpp', + 'tests/u_atomic_test.cpp', + 'tests/u_debug_stack_test.cpp', + 'tests/u_qsort_test.cpp', 'tests/vector_test.cpp', - 'u_atomic_test.cpp', - 'u_debug_stack_test.cpp', - 'u_qsort_test.cpp', ) if not (host_machine.system() == 'windows' and cc.get_id() == 'gcc') @@ -328,7 +328,7 @@ if with_tests # FIXME: this test crashes on windows if host_machine.system() != 'windows' files_util_tests += files( - 'mesa-sha1_test.cpp', + 'tests/mesa-sha1_test.cpp', ) endif @@ -347,7 +347,7 @@ if with_tests process_test_exe = executable( 'process_test', - files('process_test.c'), + files('tests/process_test.c'), include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux], dependencies : idep_mesautil, c_args : [c_msvc_compat_args], diff --git a/src/util/bitset_test.cpp b/src/util/tests/bitset_test.cpp similarity index 100% rename from src/util/bitset_test.cpp rename to src/util/tests/bitset_test.cpp diff --git a/src/util/blob_test.cpp b/src/util/tests/blob_test.cpp similarity index 100% rename from src/util/blob_test.cpp rename to src/util/tests/blob_test.cpp diff --git a/src/util/mesa-sha1_test.cpp b/src/util/tests/mesa-sha1_test.cpp similarity index 100% rename from src/util/mesa-sha1_test.cpp rename to src/util/tests/mesa-sha1_test.cpp diff --git a/src/util/process_test.c b/src/util/tests/process_test.c similarity index 100% rename from src/util/process_test.c rename to src/util/tests/process_test.c diff --git a/src/util/rb_tree_test.cpp b/src/util/tests/rb_tree_test.cpp similarity index 100% rename from src/util/rb_tree_test.cpp rename to src/util/tests/rb_tree_test.cpp diff --git a/src/util/register_allocate_test.cpp b/src/util/tests/register_allocate_test.cpp similarity index 100% rename from src/util/register_allocate_test.cpp rename to src/util/tests/register_allocate_test.cpp diff --git a/src/util/roundeven_test.cpp b/src/util/tests/roundeven_test.cpp similarity index 100% rename from src/util/roundeven_test.cpp rename to src/util/tests/roundeven_test.cpp diff --git a/src/util/u_atomic_test.cpp b/src/util/tests/u_atomic_test.cpp similarity index 100% rename from src/util/u_atomic_test.cpp rename to src/util/tests/u_atomic_test.cpp diff --git a/src/util/u_debug_stack_test.cpp b/src/util/tests/u_debug_stack_test.cpp similarity index 100% rename from src/util/u_debug_stack_test.cpp rename to src/util/tests/u_debug_stack_test.cpp diff --git a/src/util/u_qsort_test.cpp b/src/util/tests/u_qsort_test.cpp similarity index 100% rename from src/util/u_qsort_test.cpp rename to src/util/tests/u_qsort_test.cpp