(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).
# 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
# 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
# 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.
# 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.
cl $(CFLAGS) -I. ..\tests\test_stack.c /Fo.\test_stack \
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
@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