diff options
author | Bobby R. Bruce <bbruce@ucdavis.edu> | 2019-10-22 14:08:24 -0700 |
---|---|---|
committer | Mahyar Samani <msamani@ucdavis.edu> | 2019-11-16 07:25:58 +0000 |
commit | 54909088e78d128c17dc79168e75e896ed32d625 (patch) | |
tree | 3ce3efb9ead011a4c392e1b9af6bbe9bb24d266e /src/sim/SConscript | |
parent | 1fd1d2ed267757e4ea50faeaf9c6d784aa1f0049 (diff) | |
download | gem5-54909088e78d128c17dc79168e75e896ed32d625.tar.xz |
tests: Added GTests for byteswap.hh
In addition to the test, "#include base/logging.hh" was added to the
"byteswap.hh". It is is required to compile the header.
Added tests ByteswapTest.swap_byte64, ByteswapTest.swap_byte32,
ByteswapTest.swap_byte16, ByteswapTest.swap_byte, ByteswapTest.htog,
and ByteswapTest.gtoh. The file byteswap.hh is mostly templates.
Added test for BigEndianGuest and LittleEndianGuest namespaces.
Change-Id: I8870a55594ed439fe9e1fb333384f73261d1b1b8
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/22080
Reviewed-by: Bobby R. Bruce <bbruce@ucdavis.edu>
Maintainer: Bobby R. Bruce <bbruce@ucdavis.edu>
Tested-by: kokoro <noreply+kokoro@google.com>
Diffstat (limited to 'src/sim/SConscript')
-rw-r--r-- | src/sim/SConscript | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sim/SConscript b/src/sim/SConscript index 72b0f3df9..aacdb341d 100644 --- a/src/sim/SConscript +++ b/src/sim/SConscript @@ -77,6 +77,8 @@ Source('dvfs_handler.cc') Source('clocked_object.cc') Source('mathexpr.cc') +GTest('byteswap.test', 'byteswap.test.cc', '../base/types.cc') + if env['TARGET_ISA'] != 'null': SimObject('InstTracer.py') SimObject('Process.py') |