Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/atf/tests/atf fix build of atf .cpp files



details:   https://anonhg.NetBSD.org/src/rev/a6175426886c
branches:  trunk
changeset: 973122:a6175426886c
user:      lukem <lukem%NetBSD.org@localhost>
date:      Sun Jun 21 13:59:56 2020 +0000

description:
fix build of atf .cpp files

diffstat:

 external/bsd/atf/tests/atf/test-programs/Makefile |  3 ++-
 external/bsd/atf/tests/atf/tools/Makefile         |  9 +++++++--
 2 files changed, 9 insertions(+), 3 deletions(-)

diffs (47 lines):

diff -r 971967be7f70 -r a6175426886c external/bsd/atf/tests/atf/test-programs/Makefile
--- a/external/bsd/atf/tests/atf/test-programs/Makefile Sun Jun 21 13:29:05 2020 +0000
+++ b/external/bsd/atf/tests/atf/test-programs/Makefile Sun Jun 21 13:59:56 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2014/02/15 04:15:20 jmmv Exp $
+# $NetBSD: Makefile,v 1.7 2020/06/21 13:59:56 lukem Exp $
 
 .include <bsd.init.mk>
 
@@ -11,6 +11,7 @@
 TESTS_C=       c_helpers
 
 TESTS_CXX=     cpp_helpers
+SRCS.cpp_helpers=cpp_helpers.cpp
 
 TESTS_SH=      sh_helpers
 .for t in config_test expect_test meta_data_test result_test srcdir_test
diff -r 971967be7f70 -r a6175426886c external/bsd/atf/tests/atf/tools/Makefile
--- a/external/bsd/atf/tests/atf/tools/Makefile Sun Jun 21 13:29:05 2020 +0000
+++ b/external/bsd/atf/tests/atf/tools/Makefile Sun Jun 21 13:59:56 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2014/02/15 22:32:26 jmmv Exp $
+# $NetBSD: Makefile,v 1.8 2020/06/21 13:59:56 lukem Exp $
 
 USE_ATF_LIBTOOLS=      yes
 
@@ -23,7 +23,9 @@
                several_tcs_helper \
                zero_tcs_helper
 
-TESTS_CXX=     application_test \
+TESTS_CXX=
+.for test in   \
+               application_test \
                atffile_test \
                auto_array_test \
                config_file_test \
@@ -44,6 +46,9 @@
                text_test \
                ui_test \
                user_test
+TESTS_CXX+=    ${test}
+SRCS.${test}=  ${test}.cpp
+.endfor
 
 TESTS_SH=      atf-config_test \
                atf-report_test \



Home | Main Index | Thread Index | Old Index