Enable limited testing in Makefile.msft without Cygwin
authorIvan Maidanski <ivmai@mail.ru>
Thu, 26 Jan 2017 20:07:57 +0000 (23:07 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 6 Feb 2017 06:55:33 +0000 (09:55 +0300)
(Cherry-pick commit 18a05e9 from 'master' branch.)

New target "check-noautogen" is introduced in Makefile.msft to build and
run only test_malloc and test_stack (which do not need test code
auto-generation by sed).

* src/Makefile.msft: Refine comment about tests execution; add comment
about "check-noautogen" target.
* src/Makefile.msft (check): Add dependency on check-noautogen;
move test_malloc and test_stack to check-noautogen.
* src/Makefile.msft (check-noautogen): New target (executes test_malloc
and test_stack only).

src/Makefile.msft

index 4a3ff31..dd62e81 100644 (file)
@@ -5,9 +5,11 @@
 # only AO_pause (used by atomic_ops_stack).
 # And we rely on a pre-built test_atomic_include.h and generalize-small.h,
 # since we can't rely on sed.  But we don't keep test_atomic_include.h in
-# the development repository any longer, so if you want to do "make check"
+# the development repository any longer, so if you want to run all tests
 # for the sources obtained from the repository then
-# do "autoreconf -vif; ./configure; make check" in Cygwin first.
+# type "./autogen.sh; ./configure; make check; make clean" in Cygwin first.
+# Otherwise type "nmake -f Makefile.msft check-noautogen" to run only the
+# tests not requiring the source auto-generation.
 # Win32 clients only need to include the header files.
 # To install, copy atomic_ops.h and the atomic_ops/... tree to your favorite
 # include directory.
@@ -47,11 +49,13 @@ test_stack: ..\tests\test_stack.c libatomic_ops_gpl.lib
        cl $(CFLAGS) -I. ..\tests\test_stack.c /Fo.\test_stack \
            libatomic_ops_gpl.lib
 
-check: test_atomic test_atomic_w95 test_malloc test_stack
+check: test_atomic test_atomic_w95 check-noautogen
        @echo "The following will print lots of 'Missing ...' messages"
        test_atomic_w95
        @echo "The following will print some 'Missing ...' messages"
        test_atomic
+
+check-noautogen: test_malloc test_stack
        test_malloc
        test_stack