diff options
author | Emil Velikov <[email protected]> | 2017-03-07 16:13:42 +0000 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2017-03-13 11:16:35 +0000 |
commit | bdc5036464b40a76115f7c3654043bb1155bd705 (patch) | |
tree | 42f776f3b0946b7603667aa8c80c06b99fe824a4 /src/intel/Makefile.compiler.am | |
parent | f282ace67862c0633d0a8135e4808867740d0d39 (diff) |
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 <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/intel/Makefile.compiler.am')
-rw-r--r-- | src/intel/Makefile.compiler.am | 38 |
1 files changed, 12 insertions, 26 deletions
diff --git a/src/intel/Makefile.compiler.am b/src/intel/Makefile.compiler.am index b30c01a5bde..3ab550c96b1 100644 --- a/src/intel/Makefile.compiler.am +++ b/src/intel/Makefile.compiler.am @@ -45,6 +45,7 @@ EXTRA_DIST += \ # ---------------------------------------------------------------------------- TEST_LIBS = \ + $(top_builddir)/src/gtest/libgtest.la \ compiler/libintel_compiler.la \ common/libintel_common.la \ $(top_builddir)/src/compiler/nir/libnir.la \ @@ -69,53 +70,38 @@ check_PROGRAMS += $(COMPILER_TESTS) compiler_test_fs_cmod_propagation_SOURCES = \ compiler/test_fs_cmod_propagation.cpp -compiler_test_fs_cmod_propagation_LDADD = \ - $(top_builddir)/src/gtest/libgtest.la \ - $(TEST_LIBS) +compiler_test_fs_cmod_propagation_LDADD = $(TEST_LIBS) compiler_test_fs_copy_propagation_SOURCES = \ compiler/test_fs_copy_propagation.cpp -compiler_test_fs_copy_propagation_LDADD = \ - $(top_builddir)/src/gtest/libgtest.la \ - $(TEST_LIBS) +compiler_test_fs_copy_propagation_LDADD = $(TEST_LIBS) compiler_test_fs_saturate_propagation_SOURCES = \ compiler/test_fs_saturate_propagation.cpp -compiler_test_fs_saturate_propagation_LDADD = \ - $(top_builddir)/src/gtest/libgtest.la \ - $(TEST_LIBS) +compiler_test_fs_saturate_propagation_LDADD = $(TEST_LIBS) compiler_test_vf_float_conversions_SOURCES = \ compiler/test_vf_float_conversions.cpp -compiler_test_vf_float_conversions_LDADD = \ - $(top_builddir)/src/gtest/libgtest.la \ - $(TEST_LIBS) +compiler_test_vf_float_conversions_LDADD = $(TEST_LIBS) compiler_test_vec4_register_coalesce_SOURCES = \ compiler/test_vec4_register_coalesce.cpp -compiler_test_vec4_register_coalesce_LDADD = \ - $(top_builddir)/src/gtest/libgtest.la \ - $(TEST_LIBS) +compiler_test_vec4_register_coalesce_LDADD = $(TEST_LIBS) compiler_test_vec4_copy_propagation_SOURCES = \ compiler/test_vec4_copy_propagation.cpp -compiler_test_vec4_copy_propagation_LDADD = \ - $(top_builddir)/src/gtest/libgtest.la \ - $(TEST_LIBS) +compiler_test_vec4_copy_propagation_LDADD = $(TEST_LIBS) compiler_test_vec4_cmod_propagation_SOURCES = \ compiler/test_vec4_cmod_propagation.cpp -compiler_test_vec4_cmod_propagation_LDADD = \ - $(top_builddir)/src/gtest/libgtest.la \ - $(TEST_LIBS) +compiler_test_vec4_cmod_propagation_LDADD = $(TEST_LIBS) +# Strictly speaking this is neither a C++ test nor using gtest - we can address +# address that at a later point. Until then, this allows us a to simplify things. compiler_test_eu_compact_SOURCES = \ - compiler/test_eu_compact.c -nodist_EXTRA_compiler_test_eu_compact_SOURCES = dummy.cpp + compiler/test_eu_compact.cpp compiler_test_eu_compact_LDADD = $(TEST_LIBS) compiler_test_eu_validate_SOURCES = \ compiler/test_eu_validate.cpp -compiler_test_eu_validate_LDADD = \ - $(top_builddir)/src/gtest/libgtest.la \ - $(TEST_LIBS) +compiler_test_eu_validate_LDADD = $(TEST_LIBS) |