summaryrefslogtreecommitdiff
path: root/src/base/SConscript
diff options
context:
space:
mode:
authorBobby R. Bruce <bbruce@ucdavis.edu>2019-10-22 14:35:29 -0700
committerMahyar Samani <msamani@ucdavis.edu>2019-11-20 00:52:01 +0000
commita37b8279af0ac35407c88a5ccc126003422d6158 (patch)
tree19e553301051ffdb11b236f0b8d24492c1c6b0ba /src/base/SConscript
parent92d04b102a018af12b1779d4e588d9df5026f459 (diff)
downloadgem5-a37b8279af0ac35407c88a5ccc126003422d6158.tar.xz
tests, base: Added GTests for base/intmath.cc
Testing intmath.hh and intmath.cc. Here is the list of the functions that are tested. intmath.isPowerOf2, intmath.power, intmath.floorLog2, intmath.ceilLog2, intmath.divCeil, intmath.roundUp, intmath.roundDown. Other functions are not tested, because they are not currently used and are dead code. Change-Id: I150ac1b5cead93c6698a8c9e9cec80bd87ef181a Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/22081 Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Mahyar Samani <msamani@ucdavis.edu> Reviewed-by: Bobby R. Bruce <bbruce@ucdavis.edu> Maintainer: Bobby R. Bruce <bbruce@ucdavis.edu> Maintainer: Jason Lowe-Power <jason@lowepower.com>
Diffstat (limited to 'src/base/SConscript')
-rw-r--r--src/base/SConscript1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/base/SConscript b/src/base/SConscript
index 1c2f80baf..a01146384 100644
--- a/src/base/SConscript
+++ b/src/base/SConscript
@@ -58,6 +58,7 @@ Source('hostinfo.cc')
Source('inet.cc')
Source('inifile.cc')
GTest('inifile.test', 'inifile.test.cc', 'inifile.cc', 'str.cc')
+GTest('intmath.test', 'intmath.test.cc')
Source('logging.cc')
Source('match.cc')
GTest('match.test', 'match.test.cc', 'match.cc', 'str.cc')