mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-13 14:35:54 +00:00
Build (not test) the unittests as part of a normal build.
- 'make unittests' still builds and tests. - 'make unitcheck' inside a unittest directory runs the tests in that directory. llvm-svn: 81687
This commit is contained in:
parent
9e536003ba
commit
9eba9d4828
2
Makefile
2
Makefile
@ -24,7 +24,7 @@ ifeq ($(BUILD_DIRS_ONLY),1)
|
||||
OPTIONAL_DIRS :=
|
||||
else
|
||||
DIRS := lib/System lib/Support utils lib/VMCore lib tools/llvm-config \
|
||||
tools runtime docs
|
||||
tools runtime docs unittests
|
||||
OPTIONAL_DIRS := examples projects bindings
|
||||
endif
|
||||
|
||||
|
@ -19,10 +19,11 @@
|
||||
#--------------------------------------------------------------------
|
||||
# Define the various target sets
|
||||
#--------------------------------------------------------------------
|
||||
RecursiveTargets := all clean clean-all install uninstall install-bytecode
|
||||
RecursiveTargets := all clean clean-all install uninstall install-bytecode \
|
||||
unitcheck
|
||||
LocalTargets := all-local clean-local clean-all-local check-local \
|
||||
install-local printvars uninstall-local \
|
||||
install-bytecode-local unittests
|
||||
install-bytecode-local
|
||||
TopLevelTargets := check dist dist-check dist-clean dist-gzip dist-bzip2 \
|
||||
dist-zip unittests
|
||||
UserTargets := $(RecursiveTargets) $(LocalTargets) $(TopLevelTargets)
|
||||
@ -800,6 +801,7 @@ clean-all:: $(addsuffix /.makeclean-all,$(PARALLEL_DIRS))
|
||||
install :: $(addsuffix /.makeinstall ,$(PARALLEL_DIRS))
|
||||
uninstall:: $(addsuffix /.makeuninstall,$(PARALLEL_DIRS))
|
||||
install-bytecode :: $(addsuffix /.makeinstall-bytecode,$(PARALLEL_DIRS))
|
||||
unitcheck:: $(addsuffix /.makeunitcheck,$(PARALLEL_DIRS))
|
||||
|
||||
ParallelTargets := $(foreach T,$(RecursiveTargets),%/.make$(T))
|
||||
|
||||
@ -1619,7 +1621,7 @@ unittests::
|
||||
$(Verb) if test -d "$(PROJ_OBJ_ROOT)/unittests" ; then \
|
||||
if test -f "$(PROJ_OBJ_ROOT)/unittests/Makefile" ; then \
|
||||
$(EchoCmd) Running unittests test suite ; \
|
||||
$(MAKE) -C $(PROJ_OBJ_ROOT)/unittests ; \
|
||||
$(MAKE) -C $(PROJ_OBJ_ROOT)/unittests unitcheck; \
|
||||
else \
|
||||
$(EchoCmd) No Makefile in unittests directory ; \
|
||||
fi ; \
|
||||
|
@ -30,6 +30,8 @@ $(LLVMUnitTestExe): $(ObjectsO) $(ProjLibsPaths) $(LLVMLibsPaths)
|
||||
$(StripWarnMsg)
|
||||
|
||||
all:: $(LLVMUnitTestExe)
|
||||
|
||||
unitcheck:: $(LLVMUnitTestExe)
|
||||
$(LLVMUnitTestExe)
|
||||
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user