From 0899f4135eee1675340d5a93c471985665d6595d Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Thu, 6 May 2021 21:08:15 -0700 Subject: [PATCH] scons,tests: Delete support for the UnitTest scons class/function. There are no more UnitTest()s, and we shouldn't write any new ones. Delete the function-like class used to set them up. Change-Id: Ia353cf698c907b5c7f7c383495f611089fa8b019 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/45168 Reviewed-by: Daniel Carvalho Reviewed-by: Jason Lowe-Power Maintainer: Giacomo Travaglini Tested-by: kokoro --- src/SConscript | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/SConscript b/src/SConscript index bf2d22e1b2..41ae1ad124 100644 --- a/src/SConscript +++ b/src/SConscript @@ -589,22 +589,6 @@ class Executable(object, metaclass=ExecutableMeta): else: return env.Program(self.path(env), objs) -class UnitTest(Executable): - '''Create a UnitTest''' - def __init__(self, target, *srcs_and_filts, **kwargs): - super(UnitTest, self).__init__(target, *srcs_and_filts) - - self.main = kwargs.get('main', False) - - def declare(self, env): - sources = list(self.sources) - for f in self.filters: - sources += Source.all.apply_filter(env, f) - objs = self.srcs_to_objs(env, sources) + env['STATIC_OBJS'] - if self.main: - objs += env['MAIN_OBJS'] - return super(UnitTest, self).declare(env, objs) - class GTest(Executable): '''Create a unit test based on the google test framework.''' all = [] @@ -660,7 +644,6 @@ Export('SimObject') Export('ProtoBuf') Export('GrpcProtoBuf') Export('Executable') -Export('UnitTest') Export('GTest') ########################################################################