public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/libbash:master commit in: /, test/, utils/
@ 2011-04-20 14:04 Petteri Räty
  0 siblings, 0 replies; only message in thread
From: Petteri Räty @ 2011-04-20 14:04 UTC (permalink / raw
  To: gentoo-commits

commit:     2720c869e0395b96694a72e71ac4b5eea3b2c64c
Author:     Mu Qiao <qiaomuf <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 19 08:21:36 2011 +0000
Commit:     Petteri Räty <betelgeuse <AT> gentoo <DOT> org>
CommitDate: Wed Apr 20 12:48:43 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/libbash.git;a=commit;h=2720c869

Build: separate utility programs from tests

---
 Makefile.am                          |   11 +++++++----
 {test => utils}/ast_printer.cpp      |    0
 {test => utils}/variable_printer.cpp |    0
 3 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index b3bd9d6..f9ba75d 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -84,7 +84,7 @@ endif
 
 if HAVE_GTEST
 TESTS += cppunittests test/ast_printer_test.sh test/verify_ebuilds_test.sh
-check_PROGRAMS = cppunittests variable_printer ast_printer
+check_PROGRAMS = cppunittests
 
 cppunittests_SOURCES =  test/run_tests.cpp \
 						src/core/tests/symbols_test.cpp \
@@ -100,14 +100,17 @@ cppunittests_LDADD = libcppbash.la \
 					 $(BOOST_FILESYSTEM_LIB)
 cppunittests_LDFLAGS = -static
 
-variable_printer_SOURCES = test/variable_printer.cpp
+endif
+
+noinst_PROGRAMS = variable_printer ast_printer
+
+variable_printer_SOURCES = utils/variable_printer.cpp
 variable_printer_LDADD = libcppbash.la
 
-ast_printer_SOURCES = test/ast_printer.cpp
+ast_printer_SOURCES = utils/ast_printer.cpp
 ast_printer_LDADD = libcppbash.la $(BOOST_PROGRAM_OPTIONS_LIB)
 ast_printer_LDFLAGS = -static
 ast_printer_CPPFLAGS = $(BOOST_CPPFLAGS)
-endif
 
 GENERATED_PARSER_C = libbashLexer.c libbashParser.c
 GENERATED_PARSER_H = libbashLexer.h libbashParser.h

diff --git a/test/ast_printer.cpp b/utils/ast_printer.cpp
similarity index 100%
rename from test/ast_printer.cpp
rename to utils/ast_printer.cpp

diff --git a/test/variable_printer.cpp b/utils/variable_printer.cpp
similarity index 100%
rename from test/variable_printer.cpp
rename to utils/variable_printer.cpp



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2011-04-20 14:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-20 14:04 [gentoo-commits] proj/libbash:master commit in: /, test/, utils/ Petteri Räty

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox