diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-09-14 02:39:01 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-09-14 02:39:01 +0000 |
commit | db5fe936db5e718ec6189f969749444ecdc1c484 (patch) | |
tree | 0e53be5b9b64606e694f600c32250c4ee9bdb48f /test/Makefile | |
parent | 9c29730bb3e9dd52d226d0d14a727139f61a936d (diff) | |
download | external_llvm-db5fe936db5e718ec6189f969749444ecdc1c484.zip external_llvm-db5fe936db5e718ec6189f969749444ecdc1c484.tar.gz external_llvm-db5fe936db5e718ec6189f969749444ecdc1c484.tar.bz2 |
Teach 'make check-lit' to run unittests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81753 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Makefile')
-rw-r--r-- | test/Makefile | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/test/Makefile b/test/Makefile index d344823..3f21eaf 100644 --- a/test/Makefile +++ b/test/Makefile @@ -73,7 +73,7 @@ check-local:: site.exp @echo "*** dejagnu not found. Make sure 'runtest' is in your PATH, then reconfigure LLVM." endif -check-local-lit:: lit.site.cfg +check-local-lit:: lit.site.cfg Unit/lit.site.cfg ( $(ULIMIT) \ $(LLVM_SRC_ROOT)/utils/lit/lit.py \ --path "$(LLVMToolDir)" \ @@ -171,3 +171,18 @@ lit.site.cfg: site.exp @echo >> $@ @echo "# Let the main config do the real work." >> $@ @echo "lit.load_config(config, \"\"\"$(LLVM_SRC_ROOT)/test/lit.cfg\"\"\")" >> $@ + +Unit/lit.site.cfg: Unit/.dir FORCE + @echo "Making unittest 'lit.site.cfg' file..." + @echo "## Autogenerated by Makefile ##" > $@ + @echo "# Do not edit!" >> $@ + @echo >> $@ + @echo "# Preserve some key paths for use by main LLVM test suite config." >> $@ + @echo "config.llvm_obj_root = \"\"\"$(LLVM_OBJ_ROOT)\"\"\"" >> $@ + @echo >> $@ + @echo "# Remember the build mode." >> $@ + @echo "config.llvm_build_mode = \"\"\"$(BuildMode)\"\"\"" >> $@ + @echo >> $@ + @echo "# Let the main config do the real work." >> $@ + @echo "lit.load_config(config, \"\"\"$(LLVM_SRC_ROOT)/test/Unit/lit.cfg\"\"\")" >> $@ + |