Gabe Black has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/45168 )
Change subject: scons,tests: Delete support for the UnitTest scons
class/function.
......................................................................
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
---
M src/SConscript
1 file changed, 0 insertions(+), 17 deletions(-)
diff --git a/src/SConscript b/src/SConscript
index bf2d22e..41ae1ad 100644
--- a/src/SConscript
+++ b/src/SConscript
@@ -589,22 +589,6 @@
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('ProtoBuf')
Export('GrpcProtoBuf')
Export('Executable')
-Export('UnitTest')
Export('GTest')
########################################################################
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/45168
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: Ia353cf698c907b5c7f7c383495f611089fa8b019
Gerrit-Change-Number: 45168
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s