Changeset 219


Ignore:
Timestamp:
Dec 24, 2006, 10:39:35 PM (15 years ago)
Author:
Jari Häkkinen
Message:

Addresses #85. Problem resolved for dist packages but developers cannot run all tests.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/INSTALL

    r171 r219  
    3838
    3939# make check
     40
     41to run test programs. All test programs are not enabled by default.
    4042
    4143The './configure' script accepts a few options of interest for
     
    4547may be useful for developers. --enable-staticbin will create a static
    4648svndigest binary. (Actually as static as the underlying program
    47 libraries allows it to be, i.e., some libraries might not have been
    48 created/installed in static versions.)
     49libraries allows it to be, i.e., some external libraries might not
     50have been created/installed in static versions.) --enable-wctests will
     51turn on subversion WC dependent test programs, only useful for
     52developers and users that checkout the source from the subversion
     53repository.
    4954
    5055If you grabbed the source from the subversion repository you need to
  • trunk/configure.ac

    r195 r219  
    5757    CXXFLAGS="$CXXFLAGS -O3"
    5858fi
     59
     60AC_ARG_ENABLE(wctests,
     61  [AS_HELP_STRING([--enable-wctests],[turn on all tests, tests
     62  requiring a subversion WC are disabled by default])],
     63if test "${enable_wctests}" = "yes" ; then
     64    wctests=true
     65fi)
     66AM_CONDITIONAL(WCTESTS, test x$wctests = xtrue)
    5967
    6068# optionally prepare for building static libraries.
     
    163171AC_MSG_NOTICE([])
    164172
     173if (test "$wctests") ; then
     174    AC_MSG_NOTICE([WC dependent tests are enabled])
     175else
     176    AC_MSG_NOTICE([WC dependent tests are disabled, --enable-wctests to enable])
     177fi
     178AC_MSG_NOTICE([])
     179
    165180# Failure to locate gnuplot is not considered fatal
    166181if (test "$GNUPLOT" != "ok") ; then
  • trunk/test/Makefile.am

    r217 r219  
    2222# 02111-1307, USA.
    2323
    24 TESTS = directory file gnuplot_pipe parser
     24TESTS = gnuplot_pipe parser
     25if WCTESTS
     26  TESTS += directory file
     27endif
    2528
    2629check_PROGRAMS = $(TESTS)
     
    3033AM_CPPFLAGS = -I@top_srcdir@/lib
    3134
    32 directory_SOURCES = directory.cc
    33 file_SOURCES = file.cc
    3435gnuplot_pipe_SOURCES = gnuplot_pipe.cc
    3536parser_SOURCES = parser.cc
     37if WCTESTS
     38  directory_SOURCES = directory.cc
     39  file_SOURCES = file.cc
     40endif
    3641
    3742clean-local:
Note: See TracChangeset for help on using the changeset viewer.