From 1f7243cdbe2c95a5a4b01c62c31bd39efeeebb3c Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Thu, 26 Jan 2017 23:07:57 +0300 Subject: [PATCH] Enable limited testing in Makefile.msft without Cygwin (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 | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/Makefile.msft b/src/Makefile.msft index 4a3ff31..dd62e81 100644 --- a/src/Makefile.msft +++ b/src/Makefile.msft @@ -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 -- 2.7.4