From 66f028550496c67756d02f9127432e057beeafc8 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Wed, 28 Nov 2018 17:36:28 -0800 Subject: [PATCH] base: Rename unit test cc files to be *.test.cc. This makes the name easier to read, looks ok if the file is named with underscores between words or not, is easy to grep for, and shouldn't introduce any ambiguities in the file names. Change-Id: I34b7bcccea2d87c10c0de417dd5e3ef27c4b5666 Reviewed-on: https://gem5-review.googlesource.com/c/14676 Reviewed-by: Giacomo Travaglini Reviewed-by: Daniel Carvalho Maintainer: Gabe Black --- src/base/SConscript | 20 +++++++++---------- ...{addr_range_test.cc => addr_range.test.cc} | 0 ...nge_map_test.cc => addr_range_map.test.cc} | 0 .../{bituniontest.cc => bitunion.test.cc} | 0 .../{circlebuftest.cc => circlebuf.test.cc} | 0 .../{coroutinetest.cc => coroutine.test.cc} | 0 src/base/{cprintftest.cc => cprintf.test.cc} | 0 src/base/{fibertest.cc => fiber.test.cc} | 0 src/base/{inifiletest.cc => inifile.test.cc} | 0 src/base/{pixeltest.cc => pixel.test.cc} | 0 src/base/{trietest.cc => trie.test.cc} | 0 11 files changed, 10 insertions(+), 10 deletions(-) rename src/base/{addr_range_test.cc => addr_range.test.cc} (100%) rename src/base/{addr_range_map_test.cc => addr_range_map.test.cc} (100%) rename src/base/{bituniontest.cc => bitunion.test.cc} (100%) rename src/base/{circlebuftest.cc => circlebuf.test.cc} (100%) rename src/base/{coroutinetest.cc => coroutine.test.cc} (100%) rename src/base/{cprintftest.cc => cprintf.test.cc} (100%) rename src/base/{fibertest.cc => fiber.test.cc} (100%) rename src/base/{inifiletest.cc => inifile.test.cc} (100%) rename src/base/{pixeltest.cc => pixel.test.cc} (100%) rename src/base/{trietest.cc => trie.test.cc} (100%) diff --git a/src/base/SConscript b/src/base/SConscript index b0893a145..673590371 100644 --- a/src/base/SConscript +++ b/src/base/SConscript @@ -40,26 +40,26 @@ Source('imgwriter.cc') Source('bmpwriter.cc') Source('callback.cc') Source('cprintf.cc', add_tags='gtest lib') -GTest('cprintftest', 'cprintftest.cc') +GTest('cprintftest', 'cprintf.test.cc') Source('debug.cc') if env['USE_FENV']: Source('fenv.c') if env['USE_PNG']: Source('pngwriter.cc') Source('fiber.cc') -GTest('fibertest', 'fibertest.cc', 'fiber.cc') -GTest('coroutinetest', 'coroutinetest.cc', 'fiber.cc') +GTest('fibertest', 'fiber.test.cc', 'fiber.cc') +GTest('coroutinetest', 'coroutine.test.cc', 'fiber.cc') Source('framebuffer.cc') Source('hostinfo.cc') Source('inet.cc') Source('inifile.cc') -GTest('inifiletest', 'inifiletest.cc', 'inifile.cc', 'str.cc') +GTest('inifiletest', 'inifile.test.cc', 'inifile.cc', 'str.cc') Source('intmath.cc') Source('logging.cc') Source('match.cc') Source('output.cc') Source('pixel.cc') -GTest('pixeltest', 'pixeltest.cc', 'pixel.cc') +GTest('pixeltest', 'pixel.test.cc', 'pixel.cc') Source('pollevent.cc') Source('random.cc') if env['TARGET_ISA'] != 'null': @@ -69,7 +69,7 @@ Source('statistics.cc') Source('str.cc') Source('time.cc') Source('trace.cc') -GTest('trietest', 'trietest.cc') +GTest('trietest', 'trie.test.cc') Source('types.cc') Source('loader/aout_object.cc') @@ -83,10 +83,10 @@ Source('loader/symtab.cc') Source('stats/text.cc') -GTest('addr_range_test', 'addr_range_test.cc') -GTest('AddrRangeMapTest', 'addr_range_map_test.cc') -GTest('bituniontest', 'bituniontest.cc') -GTest('CircleBufTest', 'circlebuftest.cc') +GTest('addr_range_test', 'addr_range.test.cc') +GTest('AddrRangeMapTest', 'addr_range_map.test.cc') +GTest('bituniontest', 'bitunion.test.cc') +GTest('CircleBufTest', 'circlebuf.test.cc') DebugFlag('Annotate', "State machine annotation debugging") DebugFlag('AnnotateQ', "State machine annotation queue debugging") diff --git a/src/base/addr_range_test.cc b/src/base/addr_range.test.cc similarity index 100% rename from src/base/addr_range_test.cc rename to src/base/addr_range.test.cc diff --git a/src/base/addr_range_map_test.cc b/src/base/addr_range_map.test.cc similarity index 100% rename from src/base/addr_range_map_test.cc rename to src/base/addr_range_map.test.cc diff --git a/src/base/bituniontest.cc b/src/base/bitunion.test.cc similarity index 100% rename from src/base/bituniontest.cc rename to src/base/bitunion.test.cc diff --git a/src/base/circlebuftest.cc b/src/base/circlebuf.test.cc similarity index 100% rename from src/base/circlebuftest.cc rename to src/base/circlebuf.test.cc diff --git a/src/base/coroutinetest.cc b/src/base/coroutine.test.cc similarity index 100% rename from src/base/coroutinetest.cc rename to src/base/coroutine.test.cc diff --git a/src/base/cprintftest.cc b/src/base/cprintf.test.cc similarity index 100% rename from src/base/cprintftest.cc rename to src/base/cprintf.test.cc diff --git a/src/base/fibertest.cc b/src/base/fiber.test.cc similarity index 100% rename from src/base/fibertest.cc rename to src/base/fiber.test.cc diff --git a/src/base/inifiletest.cc b/src/base/inifile.test.cc similarity index 100% rename from src/base/inifiletest.cc rename to src/base/inifile.test.cc diff --git a/src/base/pixeltest.cc b/src/base/pixel.test.cc similarity index 100% rename from src/base/pixeltest.cc rename to src/base/pixel.test.cc diff --git a/src/base/trietest.cc b/src/base/trie.test.cc similarity index 100% rename from src/base/trietest.cc rename to src/base/trie.test.cc -- 2.30.2