"Fossies" - the Fresh Open Source Software Archive

Member "CSSC-1.4.1/unit-tests/Makefile.am" (7 May 2019, 11483 Bytes) of package /linux/privat/CSSC-1.4.1.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "Makefile.am": 1.4.0_vs_1.4.1.

    1 # We define the global AM_CPPFLAGS as everything we compile includes from these
    2 # directories.
    3 GTEST_DIR = $(srcdir)/googletest/
    4 AM_CPPFLAGS =  -I$(GTEST_DIR)/include -pthread -I$(srcdir)/../src
    5 # Modifies compiler and linker flags for pthreads compatibility.
    6 AM_LIBS =
    7 if HAVE_PTHREADS
    8   AM_CXXFLAGS = @PTHREAD_CFLAGS@ -DGTEST_HAS_PTHREAD=1
    9   AM_LIBS += @PTHREAD_LIBS@
   10 else
   11   AM_CXXFLAGS = -DGTEST_HAS_PTHREAD=0
   12 endif
   13 
   14 LDADD = googletest/lib/libgtest.la googletest/lib/libgtest_main.la ../src/libcssc.a
   15 
   16 
   17 # We do not include googletest in SUBDIRS since the Makefile.am file
   18 # in thart directory forces "make install" to fail, because it doesn't
   19 # want to install the built libraries.  We on the other hand just
   20 # avoid installing them by using noinst_.  This means that the
   21 # googletest targets are built by rules in this Makefile.am.
   22 
   23 EXTRA_DIST = TODO.txt
   24 
   25 # Build rules for libraries.
   26 TESTS_ENVIRONMENT = GTEST_SOURCE_DIR="$(srcdir)/test" \
   27                     GTEST_BUILD_DIR="$(top_builddir)/test" \
   28 		    sh testwrapper.sh
   29 TESTS = $(unit_tests)
   30 check_SCRIPTS = testwrapper.sh
   31 unit_tests = test_sid test_relvbr \
   32 	test_release test_sid_list test_rel_list test_sccsdate \
   33 	test_delta test_delta-table test_encoding \
   34 	test_encoding2 test_linebuf
   35 noinst_LTLIBRARIES = googletest/lib/libgtest.la googletest/lib/libgtest_main.la
   36 
   37 check_PROGRAMS = $(unit_tests) test_bigfile
   38 
   39 test_sid_SOURCES = test_sid.cc
   40 test_relvbr_SOURCES = test_relvbr.cc
   41 test_release_SOURCES = test_release.cc
   42 test_sid_list_SOURCES = test_sid_list.cc
   43 test_rel_list_SOURCES = test_rel_list.cc
   44 test_sccsdate_SOURCES = test_sccsdate.cc
   45 test_delta_SOURCES = test_delta.cc
   46 test_delta_table_SOURCES = test_delta-table.cc
   47 test_encoding_SOURCES = test_encoding.cc
   48 test_encoding2_SOURCES = test_encoding2.cc
   49 test_linebuf_SOURCES = test_linebuf.cc
   50 test_bigfile_SOURCES = test_bigfile.cc
   51 test_bigfile_LDADD = ../src/libcssc.a
   52 
   53 
   54 # The death tests may leave a core file behind.  Some systems also use
   55 # core.NNNN as the name of a core file (NNNN is usually the PID).
   56 # Files with names like vgcore.* are produced by valgrind.
   57 COREFILES = core core.* vgcore.*
   58 
   59 DISTCLEANFILES = $(COREFILES)
   60 
   61 
   62 ##############################################################################
   63 ##############################################################################
   64 ##                       googletest rules
   65 ##############################################################################
   66 ##############################################################################
   67 
   68 ACLOCAL_AMFLAGS = -I m4
   69 
   70 # Nonstandard package files for distribution
   71 EXTRA_DIST += \
   72   googletest/CHANGES \
   73   googletest/CONTRIBUTORS \
   74   googletest/LICENSE \
   75   googletest/include/gtest/gtest-param-test.h.pump \
   76   googletest/include/gtest/internal/gtest-param-util-generated.h.pump \
   77   googletest/include/gtest/internal/gtest-tuple.h.pump \
   78   googletest/include/gtest/internal/gtest-type-util.h.pump \
   79   googletest/make/Makefile \
   80   googletest/scripts/fuse_gtest_files.py \
   81   googletest/scripts/gen_gtest_pred_impl.py \
   82   googletest/scripts/pump.py \
   83   googletest/scripts/test/Makefile
   84 
   85 # Sample files that we don't compile.
   86 EXTRA_DIST += \
   87   googletest/samples/prime_tables.h \
   88   googletest/samples/sample1_unittest.cc \
   89   googletest/samples/sample2_unittest.cc \
   90   googletest/samples/sample3_unittest.cc \
   91   googletest/samples/sample4_unittest.cc \
   92   googletest/samples/sample5_unittest.cc \
   93   googletest/samples/sample6_unittest.cc \
   94   googletest/samples/sample7_unittest.cc \
   95   googletest/samples/sample8_unittest.cc \
   96   googletest/samples/sample9_unittest.cc \
   97   googletest/samples/sample10_unittest.cc \
   98   googletest/test/gtest_all_test.cc
   99 
  100 # C++ test files that we don't compile directly.
  101 EXTRA_DIST += \
  102   googletest/test/gtest-death-test_ex_test.cc \
  103   googletest/test/gtest-death-test_test.cc \
  104   googletest/test/gtest-filepath_test.cc \
  105   googletest/test/gtest-linked_ptr_test.cc \
  106   googletest/test/gtest-listener_test.cc \
  107   googletest/test/gtest-message_test.cc \
  108   googletest/test/gtest-options_test.cc \
  109   googletest/test/gtest-param-test2_test.cc \
  110   googletest/test/gtest-param-test2_test.cc \
  111   googletest/test/gtest-param-test_test.cc \
  112   googletest/test/gtest-param-test_test.cc \
  113   googletest/test/gtest-param-test_test.h \
  114   googletest/test/gtest-port_test.cc \
  115   googletest/test/gtest_premature_exit_test.cc \
  116   googletest/test/gtest-printers_test.cc \
  117   googletest/test/gtest-test-part_test.cc \
  118   googletest/test/gtest-tuple_test.cc \
  119   googletest/test/gtest-typed-test2_test.cc \
  120   googletest/test/gtest-typed-test_test.cc \
  121   googletest/test/gtest-typed-test_test.h \
  122   googletest/test/gtest-unittest-api_test.cc \
  123   googletest/test/gtest_break_on_failure_unittest_.cc \
  124   googletest/test/gtest_catch_exceptions_test_.cc \
  125   googletest/test/gtest_color_test_.cc \
  126   googletest/test/gtest_env_var_test_.cc \
  127   googletest/test/gtest_environment_test.cc \
  128   googletest/test/gtest_filter_unittest_.cc \
  129   googletest/test/gtest_help_test_.cc \
  130   googletest/test/gtest_list_tests_unittest_.cc \
  131   googletest/test/gtest_main_unittest.cc \
  132   googletest/test/gtest_no_test_unittest.cc \
  133   googletest/test/gtest_output_test_.cc \
  134   googletest/test/gtest_pred_impl_unittest.cc \
  135   googletest/test/gtest_prod_test.cc \
  136   googletest/test/gtest_repeat_test.cc \
  137   googletest/test/gtest_shuffle_test_.cc \
  138   googletest/test/gtest_sole_header_test.cc \
  139   googletest/test/gtest_stress_test.cc \
  140   googletest/test/gtest_throw_on_failure_ex_test.cc \
  141   googletest/test/gtest_throw_on_failure_test_.cc \
  142   googletest/test/gtest_uninitialized_test_.cc \
  143   googletest/test/gtest_unittest.cc \
  144   googletest/test/gtest_unittest.cc \
  145   googletest/test/gtest_xml_outfile1_test_.cc \
  146   googletest/test/gtest_xml_outfile2_test_.cc \
  147   googletest/test/gtest_xml_output_unittest_.cc \
  148   googletest/test/production.cc \
  149   googletest/test/production.h
  150 
  151 # Python tests that we don't run.
  152 EXTRA_DIST += \
  153   googletest/test/gtest_break_on_failure_unittest.py \
  154   googletest/test/gtest_catch_exceptions_test.py \
  155   googletest/test/gtest_color_test.py \
  156   googletest/test/gtest_env_var_test.py \
  157   googletest/test/gtest_filter_unittest.py \
  158   googletest/test/gtest_help_test.py \
  159   googletest/test/gtest_list_tests_unittest.py \
  160   googletest/test/gtest_output_test.py \
  161   googletest/test/gtest_output_test_golden_lin.txt \
  162   googletest/test/gtest_shuffle_test.py \
  163   googletest/test/gtest_test_utils.py \
  164   googletest/test/gtest_throw_on_failure_test.py \
  165   googletest/test/gtest_uninitialized_test.py \
  166   googletest/test/gtest_xml_outfiles_test.py \
  167   googletest/test/gtest_xml_output_unittest.py \
  168   googletest/test/gtest_xml_test_utils.py
  169 
  170 # CMake script
  171 EXTRA_DIST += \
  172   googletest/CMakeLists.txt \
  173   googletest/cmake/internal_utils.cmake
  174 
  175 # MSVC project files
  176 EXTRA_DIST += \
  177   googletest/msvc/gtest-md.sln \
  178   googletest/msvc/gtest-md.vcproj \
  179   googletest/msvc/gtest.sln \
  180   googletest/msvc/gtest.vcproj \
  181   googletest/msvc/gtest_main-md.vcproj \
  182   googletest/msvc/gtest_main.vcproj \
  183   googletest/msvc/gtest_prod_test-md.vcproj \
  184   googletest/msvc/gtest_prod_test.vcproj \
  185   googletest/msvc/gtest_unittest-md.vcproj \
  186   googletest/msvc/gtest_unittest.vcproj
  187 
  188 # xcode project files
  189 EXTRA_DIST += \
  190   googletest/xcode/Config/DebugProject.xcconfig \
  191   googletest/xcode/Config/FrameworkTarget.xcconfig \
  192   googletest/xcode/Config/General.xcconfig \
  193   googletest/xcode/Config/ReleaseProject.xcconfig \
  194   googletest/xcode/Config/StaticLibraryTarget.xcconfig \
  195   googletest/xcode/Config/TestTarget.xcconfig \
  196   googletest/xcode/Resources/Info.plist \
  197   googletest/xcode/Scripts/runtests.sh \
  198   googletest/xcode/Scripts/versiongenerate.py \
  199   googletest/xcode/gtest.xcodeproj/project.pbxproj
  200 
  201 # xcode sample files
  202 EXTRA_DIST += \
  203   googletest/xcode/Samples/FrameworkSample/Info.plist \
  204   googletest/xcode/Samples/FrameworkSample/WidgetFramework.xcodeproj/project.pbxproj \
  205   googletest/xcode/Samples/FrameworkSample/runtests.sh \
  206   googletest/xcode/Samples/FrameworkSample/widget.cc \
  207   googletest/xcode/Samples/FrameworkSample/widget.h \
  208   googletest/xcode/Samples/FrameworkSample/widget_test.cc
  209 
  210 # C++Builder project files
  211 EXTRA_DIST += \
  212   googletest/codegear/gtest.cbproj \
  213   googletest/codegear/gtest.groupproj \
  214   googletest/codegear/gtest_all.cc \
  215   googletest/codegear/gtest_link.cc \
  216   googletest/codegear/gtest_main.cbproj \
  217   googletest/codegear/gtest_unittest.cbproj
  218 
  219 googletest_lib_libgtest_la_SOURCES = \
  220 	googletest/src/gtest.cc \
  221 	googletest/src/gtest-death-test.cc \
  222 	googletest/src/gtest-filepath.cc \
  223 	googletest/src/gtest-port.cc \
  224 	googletest/src/gtest-printers.cc \
  225 	googletest/src/gtest-test-part.cc \
  226 	googletest/src/gtest-typed-test.cc \
  227 	googletest/src/gtest-internal-inl.h
  228 
  229 # We don't compile this, we build libgtest from the sources listed above.
  230 EXTRA_DIST += \
  231 	googletest/src/gtest-all.cc
  232 
  233 
  234 googletest_lib_libgtest_la_CPPFLAGS = -I$(GTEST_DIR)/src -I$(GTEST_DIR)/include -I$(GTEST_DIR)
  235 googletest_lib_libgtest_main_la_SOURCES = googletest/src/gtest_main.cc
  236 
  237 googletest_lib_libgtest_main_la_LIBADD = googletest/lib/libgtest.la
  238 
  239 noinst_HEADERS = \
  240   googletest/include/gtest/gtest-death-test.h \
  241   googletest/include/gtest/gtest-message.h \
  242   googletest/include/gtest/gtest-param-test.h \
  243   googletest/include/gtest/gtest-printers.h \
  244   googletest/include/gtest/gtest-spi.h \
  245   googletest/include/gtest/gtest-test-part.h \
  246   googletest/include/gtest/gtest-typed-test.h \
  247   googletest/include/gtest/gtest.h \
  248   googletest/include/gtest/gtest_pred_impl.h \
  249   googletest/include/gtest/gtest_prod.h \
  250   googletest/include/gtest/internal/gtest-death-test-internal.h \
  251   googletest/include/gtest/internal/gtest-filepath.h \
  252   googletest/include/gtest/internal/gtest-internal.h \
  253   googletest/include/gtest/internal/gtest-linked_ptr.h \
  254   googletest/include/gtest/internal/gtest-param-util-generated.h \
  255   googletest/include/gtest/internal/gtest-param-util.h \
  256   googletest/include/gtest/internal/gtest-port.h \
  257   googletest/include/gtest/internal/gtest-string.h \
  258   googletest/include/gtest/internal/gtest-tuple.h \
  259   googletest/include/gtest/internal/gtest-type-util.h
  260 
  261 # Bulid rules for samples and tests. Automake's naming for some of
  262 # these variables isn't terribly obvious, so this is a brief
  263 # reference:
  264 #
  265 # TESTS -- Programs run automatically by "make check"
  266 # check_PROGRAMS -- Programs built by "make check" but not necessarily run
  267 
  268 EXTRA_DIST += \
  269   googletest/samples/sample1.cc \
  270   googletest/samples/sample1.h \
  271   googletest/samples/sample2.cc \
  272   googletest/samples/sample2.h \
  273   googletest/samples/sample3-inl.h \
  274   googletest/samples/sample4.cc \
  275   googletest/samples/sample4.h
  276 
  277 
  278 # Some more files which need to be distributed but which are otherwise
  279 # not referenced (so that we have to tell Automake to include them in
  280 # the release).
  281 # configure.ac isn't seen by the Automake rules because we (deliberately) don't
  282 # add googletest to SUBDIRS (since otherwise it will make "make install" fail).
  283 #
  284 # FIXME: we don't include the rules here to regenerate the fused test sources (though we ship
  285 # the original fused test sources).
  286 EXTRA_DIST += \
  287 	googletest/configure.ac \
  288 	googletest/m4/gtest.m4 \
  289 	googletest/Makefile.am \
  290 	googletest/README \
  291 	googletest/scripts/common.py \
  292 	googletest/scripts/gtest-config.in \
  293 	googletest/scripts/release_docs.py \
  294 	googletest/scripts/upload_gtest.py \
  295 	googletest/scripts/upload.py \
  296 	googletest/xcode/Samples/FrameworkSample/WidgetFramework.xcodeproj/project.pbxproj \
  297 	googletest/build-aux/.keep