intel/compiler: link all tests again gtest, even test_eu_compact"

At the moment all the tests but test_eu_compact are actual C++ gtests.
To simplify things, we can move the gtest.la to the common TEST_LIBS.
As we're here, we can rename change the test extension [to .cpp] to
avoid using the confusing dummy.cpp.

Add a nice comment in the makefile for posterity.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
Emil Velikov
2017-03-07 16:13:42 +00:00
committed by Emil Velikov
parent f282ace678
commit bdc5036464
2 changed files with 13 additions and 27 deletions

View File

@@ -288,7 +288,7 @@ run_tests(const struct gen_device_info *devinfo)
int
main(int argc, char **argv)
{
struct gen_device_info *devinfo = calloc(1, sizeof(*devinfo));
struct gen_device_info *devinfo = (struct gen_device_info *)calloc(1, sizeof(*devinfo));
devinfo->gen = 6;
bool fail = false;