Re: svn commit: r258285 - in head/lib/atf: libatf-c++/tests libatf-c/tests tests/test-programs

2013-11-21 Thread Julio Merino
On Mon, Nov 18, 2013 at 7:33 PM, Simon J. Gerraty s...@juniper.net wrote:

 On Sun, 17 Nov 2013 23:12:55 +, Julio Merino writes:
  I am not sure how this ever worked before given that manual inspection
  of bsd.progs.mk clearly shows that the expected character between the
  two components is a dot and not an underscore... but I suspect the

 Actually . or _ worked, until recently.

I think only supporting one form is better in the name of simplicity.

 Will fix.

Garrett also mentioned to me that we should not be required to
explicitly set SRCS.*: when building various programs, each of them
should be able to determine a reasonable value for this variable on
its own. In other words, what I did in r258298 should probably not be
required. What do you think?

-- 
Julio Merino / @jmmv
___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org


Re: svn commit: r258285 - in head/lib/atf: libatf-c++/tests libatf-c/tests tests/test-programs

2013-11-21 Thread Simon J. Gerraty

On Thu, 21 Nov 2013 18:29:15 -0500, Julio Merino writes:
 Actually . or _ worked, until recently.

I think only supporting one form is better in the name of simplicity.

Generally I would agree.
Originally I used '_' for this and a number of other things,
but in many cases find that '.' makes for easier reading.

 Will fix.

Garrett also mentioned to me that we should not be required to
explicitly set SRCS.*: when building various programs, each of them

Being explicit doesn't hurt.

___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org


Re: svn commit: r258285 - in head/lib/atf: libatf-c++/tests libatf-c/tests tests/test-programs

2013-11-18 Thread Simon J. Gerraty

On Sun, 17 Nov 2013 23:12:55 +, Julio Merino writes:
  I am not sure how this ever worked before given that manual inspection
  of bsd.progs.mk clearly shows that the expected character between the
  two components is a dot and not an underscore... but I suspect the

Actually . or _ worked, until recently.
Will fix.

___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org


svn commit: r258285 - in head/lib/atf: libatf-c++/tests libatf-c/tests tests/test-programs

2013-11-17 Thread Julio Merino
Author: jmmv
Date: Sun Nov 17 23:12:55 2013
New Revision: 258285
URL: http://svnweb.freebsd.org/changeset/base/258285

Log:
  Fix the build of some ATF tests.
  
  When building various programs from a single Makefile, program-specific
  variables are of the form VAR.PROG, not VAR_PROG.  Fix this
  obvious typo to fix the build when WITH_TESTS=yes.
  
  I am not sure how this ever worked before given that manual inspection
  of bsd.progs.mk clearly shows that the expected character between the
  two components is a dot and not an underscore... but I suspect the
  changes in r258095 exposed this oddity.
  
  Approved by:  rpaulo (mentor)

Modified:
  head/lib/atf/libatf-c++/tests/Makefile
  head/lib/atf/libatf-c/tests/Makefile
  head/lib/atf/tests/test-programs/Makefile

Modified: head/lib/atf/libatf-c++/tests/Makefile
==
--- head/lib/atf/libatf-c++/tests/Makefile  Sun Nov 17 22:59:06 2013
(r258284)
+++ head/lib/atf/libatf-c++/tests/Makefile  Sun Nov 17 23:12:55 2013
(r258285)
@@ -23,7 +23,7 @@ FILES+=   unused_test.cpp
tests_test \
utils_test
 ATF_TESTS_CXX+=${_T}
-SRCS_${_T}=${_T}.cpp test_helpers.cpp
+SRCS.${_T}=${_T}.cpp test_helpers.cpp
 .endfor
 
 ATF_TESTS_SH=  pkg_config_test
@@ -41,7 +41,7 @@ ATF_TESTS_SH= pkg_config_test
text_test \
ui_test
 ATF_TESTS_CXX+=${_T}
-SRCS_${_T}=${_T}.cpp test_helpers.cpp
+SRCS.${_T}=${_T}.cpp test_helpers.cpp
 .endfor
 
 .include atf.test.mk

Modified: head/lib/atf/libatf-c/tests/Makefile
==
--- head/lib/atf/libatf-c/tests/MakefileSun Nov 17 22:59:06 2013
(r258284)
+++ head/lib/atf/libatf-c/tests/MakefileSun Nov 17 23:12:55 2013
(r258285)
@@ -33,7 +33,7 @@ FILES+=   unused_test.c
tp_test \
utils_test
 ATF_TESTS_C+=  ${_T}
-SRCS_${_T}=${_T}.c test_helpers.c
+SRCS.${_T}=${_T}.c test_helpers.c
 .endfor
 
 ATF_TESTS_SH=  pkg_config_test
@@ -51,12 +51,12 @@ ATF_TESTS_SH=   pkg_config_test
text_test \
user_test
 ATF_TESTS_C+=  ${_T}
-SRCS_${_T}=${_T}.c test_helpers.c
+SRCS.${_T}=${_T}.c test_helpers.c
 .endfor
 
 PROGS+=process_helpers
-SRCS_process_helpers=  process_helpers.c
-MAN_process_helpers=   # defined
-BINDIR_process_helpers=${TESTSDIR}
+SRCS.process_helpers=  process_helpers.c
+MAN.process_helpers=   # defined
+BINDIR.process_helpers=${TESTSDIR}
 
 .include atf.test.mk

Modified: head/lib/atf/tests/test-programs/Makefile
==
--- head/lib/atf/tests/test-programs/Makefile   Sun Nov 17 22:59:06 2013
(r258284)
+++ head/lib/atf/tests/test-programs/Makefile   Sun Nov 17 23:12:55 2013
(r258285)
@@ -13,7 +13,7 @@ CFLAGS+=  -I${ATF}
 ATF_TESTS_C=   c_helpers
 
 ATF_TESTS_CXX= cpp_helpers
-SRCS_cpp_helpers=  cpp_helpers.cpp
+SRCS.cpp_helpers=  cpp_helpers.cpp
 
 ATF_TESTS_SH=  sh_helpers
 .for _T in config_test expect_test fork_test meta_data_test result_test 
srcdir_test
___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org