diff options
author | Gabe Black <gabeblack@google.com> | 2017-12-03 02:10:42 -0800 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2017-12-07 06:02:08 +0000 |
commit | 08fc1d5ee3e03578b59fa6a6331281e8d123c746 (patch) | |
tree | 06588c44cf5f19e594384b3955efbcdf0f87190a /src/cpu/base.cc | |
parent | 12e646ee724ae2bb8c75ed6b385f161de361acd3 (diff) | |
download | gem5-08fc1d5ee3e03578b59fa6a6331281e8d123c746.tar.xz |
tests: Add a pseudo target to run all the unit tests for build/variant.
Telling scons to build build/${BUILD_OPTS}/unittests.${VARIANT} will
get it to build and run all googletest based unit tests under the
${BUILD_OPTS} build options (ARM, ALPHA, X86, etc.), and compiled with
the flags, etc., for the ${VARIANT} variant (ie. opt, debug, etc.).
This will make it easy to run the unit tests without having to actually
know where they are, what tests are available, etc.
This target is called unittests* and not something based on gtest or
googletest since it's my intention for all unit tests to be based on
googletest, making the distinction unnecessary. Since the target is
essentially part of the external interface for scons, I wanted to name
it something general so it'll be less likely that we have to change it.
Change-Id: I8fdec768d821974309c92a2ce4c96dce7df24fa5
Reviewed-on: https://gem5-review.googlesource.com/6282
Reviewed-by: Gabe Black <gabeblack@google.com>
Reviewed-by: Brandon Potter <Brandon.Potter@amd.com>
Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/cpu/base.cc')
0 files changed, 0 insertions, 0 deletions