Chris Lattner | 12d632c | 2004-11-07 05:05:37 +0000 | [diff] [blame] | 1 | #===- test/Makefile ----------------------------------------*- Makefile -*--===# |
Mikhail Glushenkov | 38ead32 | 2009-03-06 12:25:56 +0000 | [diff] [blame] | 2 | # |
Chris Lattner | 12d632c | 2004-11-07 05:05:37 +0000 | [diff] [blame] | 3 | # The LLVM Compiler Infrastructure |
| 4 | # |
Chris Lattner | 57360d1 | 2007-12-29 20:11:13 +0000 | [diff] [blame] | 5 | # This file is distributed under the University of Illinois Open Source |
| 6 | # License. See LICENSE.TXT for details. |
Mikhail Glushenkov | 38ead32 | 2009-03-06 12:25:56 +0000 | [diff] [blame] | 7 | # |
Chris Lattner | 12d632c | 2004-11-07 05:05:37 +0000 | [diff] [blame] | 8 | #===------------------------------------------------------------------------===# |
| 9 | |
Misha Brukman | 5eb009a | 2008-12-31 17:38:27 +0000 | [diff] [blame] | 10 | LEVEL = .. |
Mikhail Glushenkov | 38ead32 | 2009-03-06 12:25:56 +0000 | [diff] [blame] | 11 | DIRS = |
Chris Lattner | 52a4e85 | 2002-01-23 21:36:59 +0000 | [diff] [blame] | 12 | |
John Criswell | 299e15e | 2003-08-21 15:09:29 +0000 | [diff] [blame] | 13 | # |
Tanya Lattner | 9f97b4c | 2004-12-04 06:25:08 +0000 | [diff] [blame] | 14 | # Make Dejagnu the default for testing |
John Criswell | ee29d2a | 2003-09-06 15:12:21 +0000 | [diff] [blame] | 15 | # |
Reid Spencer | 135e1d8 | 2004-12-06 05:35:38 +0000 | [diff] [blame] | 16 | all:: check-local |
John Criswell | ee29d2a | 2003-09-06 15:12:21 +0000 | [diff] [blame] | 17 | |
John Criswell | d184c67 | 2003-10-27 17:46:42 +0000 | [diff] [blame] | 18 | # Include other test rules |
John Criswell | d184c67 | 2003-10-27 17:46:42 +0000 | [diff] [blame] | 19 | include Makefile.tests |
| 20 | |
Chris Lattner | 12d632c | 2004-11-07 05:05:37 +0000 | [diff] [blame] | 21 | #===------------------------------------------------------------------------===# |
| 22 | # DejaGNU testing support |
| 23 | #===------------------------------------------------------------------------===# |
| 24 | |
Shantonu Sen | 1b6d3da | 2009-06-26 05:44:53 +0000 | [diff] [blame] | 25 | ifneq ($(GREP_OPTIONS),) |
| 26 | $(warning GREP_OPTIONS environment variable may interfere with test results) |
| 27 | endif |
| 28 | |
Gabor Greif | 684ed3d | 2008-02-26 12:08:55 +0000 | [diff] [blame] | 29 | ifdef VERBOSE |
| 30 | RUNTESTFLAGS := $(VERBOSE) |
Daniel Dunbar | 70a3b77 | 2009-09-08 05:31:44 +0000 | [diff] [blame] | 31 | LIT_ARGS := -v |
| 32 | else |
| 33 | LIT_ARGS := -s -v |
Gabor Greif | 684ed3d | 2008-02-26 12:08:55 +0000 | [diff] [blame] | 34 | endif |
| 35 | |
Tanya Lattner | 491e9cd | 2004-11-07 21:39:41 +0000 | [diff] [blame] | 36 | ifdef TESTSUITE |
Daniel Dunbar | 70a3b77 | 2009-09-08 05:31:44 +0000 | [diff] [blame] | 37 | LIT_TESTSUITE := $(TESTSUITE) |
Chris Lattner | 60bdce6 | 2004-12-12 21:39:49 +0000 | [diff] [blame] | 38 | CLEANED_TESTSUITE := $(patsubst %/,%,$(TESTSUITE)) |
Reid Spencer | b18ec66 | 2006-11-11 01:02:45 +0000 | [diff] [blame] | 39 | CLEANED_TESTSUITE := $(patsubst test/%,%,$(CLEANED_TESTSUITE)) |
Gabor Greif | 684ed3d | 2008-02-26 12:08:55 +0000 | [diff] [blame] | 40 | RUNTESTFLAGS += --tool $(CLEANED_TESTSUITE) |
Daniel Dunbar | 70a3b77 | 2009-09-08 05:31:44 +0000 | [diff] [blame] | 41 | else |
| 42 | LIT_TESTSUITE := . |
Tanya Lattner | 491e9cd | 2004-11-07 21:39:41 +0000 | [diff] [blame] | 43 | endif |
| 44 | |
Nuno Lopes | 2bdc07b | 2008-10-07 14:48:14 +0000 | [diff] [blame] | 45 | ifdef VG |
Daniel Dunbar | 3a9719a | 2009-09-14 15:27:43 +0000 | [diff] [blame] | 46 | VALGRIND := valgrind --tool=memcheck --quiet --trace-children=yes --error-exitcode=3 --leak-check=full $(VALGRIND_EXTRA_ARGS) |
Nuno Lopes | 2bdc07b | 2008-10-07 14:48:14 +0000 | [diff] [blame] | 47 | endif |
| 48 | |
Daniel Dunbar | 2891dbb | 2009-09-20 19:04:28 +0000 | [diff] [blame] | 49 | # Check what to run for -all. |
Daniel Dunbar | 3418579 | 2009-09-20 06:17:21 +0000 | [diff] [blame] | 50 | LIT_ALL_TESTSUITES := $(LIT_TESTSUITE) |
Daniel Dunbar | 2891dbb | 2009-09-20 19:04:28 +0000 | [diff] [blame] | 51 | |
| 52 | extra-lit-site-cfgs:: |
| 53 | .PHONY: extra-lit-site-cfgs |
| 54 | |
| 55 | ifneq ($(strip $(filter check-local-all,$(MAKECMDGOALS))),) |
Daniel Dunbar | 3418579 | 2009-09-20 06:17:21 +0000 | [diff] [blame] | 56 | ifndef TESTSUITE |
| 57 | ifeq ($(shell test -d $(PROJ_SRC_DIR)/../tools/clang && echo OK), OK) |
| 58 | LIT_ALL_TESTSUITES += $(PROJ_OBJ_DIR)/../tools/clang/test |
Daniel Dunbar | 2891dbb | 2009-09-20 19:04:28 +0000 | [diff] [blame] | 59 | |
| 60 | # Force creation of Clang's lit.site.cfg. |
| 61 | clang-lit-site-cfg: FORCE |
| 62 | $(MAKE) -C $(PROJ_OBJ_DIR)/../tools/clang/test lit.site.cfg |
| 63 | extra-lit-site-cfgs:: clang-lit-site-cfg |
| 64 | endif |
Daniel Dunbar | 3418579 | 2009-09-20 06:17:21 +0000 | [diff] [blame] | 65 | endif |
| 66 | endif |
| 67 | |
Gordon Henriksen | 0908d49 | 2007-09-18 12:26:17 +0000 | [diff] [blame] | 68 | IGNORE_TESTS := |
| 69 | |
Reid Spencer | 15d4059 | 2006-05-28 04:21:40 +0000 | [diff] [blame] | 70 | ifndef RUNLLVM2CPP |
Gordon Henriksen | 0908d49 | 2007-09-18 12:26:17 +0000 | [diff] [blame] | 71 | IGNORE_TESTS += llvm2cpp.exp |
| 72 | endif |
| 73 | |
Gordon Henriksen | 0908d49 | 2007-09-18 12:26:17 +0000 | [diff] [blame] | 74 | ifdef IGNORE_TESTS |
| 75 | RUNTESTFLAGS += --ignore "$(strip $(IGNORE_TESTS))" |
Reid Spencer | 15d4059 | 2006-05-28 04:21:40 +0000 | [diff] [blame] | 76 | endif |
| 77 | |
Daniel Dunbar | 54f9759 | 2009-08-01 03:37:54 +0000 | [diff] [blame] | 78 | # Both AuroraUX & Solaris do not have the -m flag for ulimit |
Anton Korobeynikov | e55db74 | 2009-08-18 00:40:33 +0000 | [diff] [blame] | 79 | ifeq ($(HOST_OS),SunOS) |
Daniel Dunbar | 54f9759 | 2009-08-01 03:37:54 +0000 | [diff] [blame] | 80 | ULIMIT=ulimit -t 600 ; ulimit -d 512000 ; ulimit -v 512000 ; |
Edward O'Callaghan | 7e43439 | 2009-10-26 02:37:56 +0000 | [diff] [blame] | 81 | else # !SunOS |
| 82 | ifeq ($(HOST_OS),AuroraUX) |
| 83 | ULIMIT=ulimit -t 600 ; ulimit -d 512000 ; ulimit -v 512000 ; |
| 84 | else # !AuroraUX |
Daniel Dunbar | 54f9759 | 2009-08-01 03:37:54 +0000 | [diff] [blame] | 85 | ULIMIT=ulimit -t 600 ; ulimit -d 512000 ; ulimit -m 512000 ; ulimit -v 512000 ; |
Edward O'Callaghan | 7e43439 | 2009-10-26 02:37:56 +0000 | [diff] [blame] | 86 | endif # AuroraUX |
| 87 | endif # SunOS |
Daniel Dunbar | 54f9759 | 2009-08-01 03:37:54 +0000 | [diff] [blame] | 88 | |
Chris Lattner | 03ed625 | 2006-08-01 00:07:58 +0000 | [diff] [blame] | 89 | ifneq ($(RUNTEST),) |
Reid Spencer | 135e1d8 | 2004-12-06 05:35:38 +0000 | [diff] [blame] | 90 | check-local:: site.exp |
Daniel Dunbar | 54f9759 | 2009-08-01 03:37:54 +0000 | [diff] [blame] | 91 | ( $(ULIMIT) \ |
Daniel Dunbar | 8bb233b | 2009-09-13 02:45:57 +0000 | [diff] [blame] | 92 | PATH="$(LLVMToolDir):$(LLVM_SRC_ROOT)/test/Scripts:$(LLVMGCCDIR)/bin:$(PATH)" \ |
Reid Spencer | ec68fd4 | 2007-02-11 20:18:32 +0000 | [diff] [blame] | 93 | $(RUNTEST) $(RUNTESTFLAGS) ) |
Chris Lattner | 03ed625 | 2006-08-01 00:07:58 +0000 | [diff] [blame] | 94 | else |
| 95 | check-local:: site.exp |
Misha Brukman | 33d0a03 | 2009-01-01 20:26:05 +0000 | [diff] [blame] | 96 | @echo "*** dejagnu not found. Make sure 'runtest' is in your PATH, then reconfigure LLVM." |
Chris Lattner | 03ed625 | 2006-08-01 00:07:58 +0000 | [diff] [blame] | 97 | endif |
Tanya Lattner | 491e9cd | 2004-11-07 21:39:41 +0000 | [diff] [blame] | 98 | |
Daniel Dunbar | db5fe93 | 2009-09-14 02:39:01 +0000 | [diff] [blame] | 99 | check-local-lit:: lit.site.cfg Unit/lit.site.cfg |
Daniel Dunbar | 70a3b77 | 2009-09-08 05:31:44 +0000 | [diff] [blame] | 100 | ( $(ULIMIT) \ |
| 101 | $(LLVM_SRC_ROOT)/utils/lit/lit.py \ |
| 102 | --path "$(LLVMToolDir)" \ |
| 103 | --path "$(LLVM_SRC_ROOT)/test/Scripts" \ |
Daniel Dunbar | 8bb233b | 2009-09-13 02:45:57 +0000 | [diff] [blame] | 104 | --path "$(LLVMGCCDIR)/bin" \ |
Daniel Dunbar | 70a3b77 | 2009-09-08 05:31:44 +0000 | [diff] [blame] | 105 | $(LIT_ARGS) $(LIT_TESTSUITE) ) |
| 106 | |
Daniel Dunbar | 2891dbb | 2009-09-20 19:04:28 +0000 | [diff] [blame] | 107 | check-local-all:: lit.site.cfg Unit/lit.site.cfg extra-lit-site-cfgs |
Daniel Dunbar | 3418579 | 2009-09-20 06:17:21 +0000 | [diff] [blame] | 108 | ( $(ULIMIT) \ |
| 109 | $(LLVM_SRC_ROOT)/utils/lit/lit.py \ |
| 110 | --path "$(LLVMToolDir)" \ |
| 111 | --path "$(LLVM_SRC_ROOT)/test/Scripts" \ |
| 112 | --path "$(LLVMGCCDIR)/bin" \ |
| 113 | $(LIT_ARGS) $(LIT_ALL_TESTSUITES) ) |
| 114 | |
Reid Spencer | 9df5561 | 2007-04-15 06:18:50 +0000 | [diff] [blame] | 115 | ifdef TESTONE |
| 116 | CLEANED_TESTONE := $(patsubst %/,%,$(TESTONE)) |
| 117 | CLEANED_TESTONE := $(patsubst test/%,%,$(CLEANED_TESTONE)) |
| 118 | SUBDIR := $(shell dirname $(CLEANED_TESTONE)) |
| 119 | TESTPATH := $(LLVM_SRC_ROOT)/test/$(CLEANED_TESTONE) |
| 120 | check-one: site.exp $(TCLSH) |
Duncan Sands | 64609d3 | 2007-04-16 16:45:12 +0000 | [diff] [blame] | 121 | $(Verb)( echo "source $(LLVM_OBJ_ROOT)/test/site.exp" ; \ |
Reid Spencer | 9df5561 | 2007-04-15 06:18:50 +0000 | [diff] [blame] | 122 | echo "set subdir $(SUBDIR)" ; \ |
| 123 | echo "proc pass { msg } { puts \"PASS: \$$msg\" } "; \ |
| 124 | echo "proc fail { msg } { puts \"FAIL: \$$msg\" }" ; \ |
| 125 | echo "proc xfail { msg } { puts \"XFAIL: \$$msg\" }" ; \ |
| 126 | echo "proc xpass { msg } { puts \"XPASS: \$$msg\" }" ; \ |
Gabor Greif | 1514010 | 2008-02-26 13:27:49 +0000 | [diff] [blame] | 127 | echo "proc verbose args { }" ; \ |
Reid Spencer | 9df5561 | 2007-04-15 06:18:50 +0000 | [diff] [blame] | 128 | echo "source $(LLVM_SRC_ROOT)/test/lib/llvm.exp" ; \ |
| 129 | echo "RunLLVMTests $(TESTPATH)" ) | \ |
Daniel Dunbar | 54f9759 | 2009-08-01 03:37:54 +0000 | [diff] [blame] | 130 | ( $(ULIMIT) \ |
Reid Spencer | 9df5561 | 2007-04-15 06:18:50 +0000 | [diff] [blame] | 131 | PATH="$(LLVMToolDir):$(LLVM_SRC_ROOT)/test/Scripts:$(PATH)" \ |
| 132 | $(TCLSH) ) |
| 133 | endif |
| 134 | |
Tanya Lattner | 9f97b4c | 2004-12-04 06:25:08 +0000 | [diff] [blame] | 135 | clean:: |
Reid Spencer | fb15c00 | 2007-01-17 07:59:14 +0000 | [diff] [blame] | 136 | $(RM) -rf `find $(LLVM_OBJ_ROOT)/test -name Output -type d -print` |
Tanya Lattner | 7a7cb4c | 2004-11-07 04:59:52 +0000 | [diff] [blame] | 137 | |
Devang Patel | 6748f04 | 2009-02-02 21:09:36 +0000 | [diff] [blame] | 138 | # dsymutil is used on the Darwin to manipulate DWARF debugging information. |
Anton Korobeynikov | e55db74 | 2009-08-18 00:40:33 +0000 | [diff] [blame] | 139 | ifeq ($(TARGET_OS),Darwin) |
Devang Patel | 6748f04 | 2009-02-02 21:09:36 +0000 | [diff] [blame] | 140 | DSYMUTIL=dsymutil |
| 141 | else |
| 142 | DSYMUTIL=true |
| 143 | endif |
Evan Cheng | 802cd84 | 2009-03-21 18:12:24 +0000 | [diff] [blame] | 144 | ifdef TargetCommonOpts |
| 145 | BUGPOINT_TOPTS="-gcc-tool-args $(TargetCommonOpts)" |
| 146 | else |
| 147 | BUGPOINT_TOPTS="" |
| 148 | endif |
Devang Patel | 6748f04 | 2009-02-02 21:09:36 +0000 | [diff] [blame] | 149 | |
Erick Tryzelaar | b405bbe | 2009-09-03 23:27:31 +0000 | [diff] [blame] | 150 | ifneq ($(OCAMLOPT),) |
| 151 | CC_FOR_OCAMLOPT := $(shell $(OCAMLOPT) -config | grep native_c_compiler | sed -e 's/native_c_compiler: //') |
| 152 | CXX_FOR_OCAMLOPT := $(subst gcc,g++,$(CC_FOR_OCAMLOPT)) |
Bob Wilson | b2f8806 | 2009-07-21 21:56:46 +0000 | [diff] [blame] | 153 | endif |
| 154 | |
Nuno Lopes | 2bdc07b | 2008-10-07 14:48:14 +0000 | [diff] [blame] | 155 | FORCE: |
| 156 | |
| 157 | site.exp: FORCE |
Tanya Lattner | 7a7cb4c | 2004-11-07 04:59:52 +0000 | [diff] [blame] | 158 | @echo 'Making a new site.exp file...' |
| 159 | @echo '## these variables are automatically generated by make ##' >site.tmp |
| 160 | @echo '# Do not edit here. If you wish to override these values' >>site.tmp |
| 161 | @echo '# edit the last section' >>site.tmp |
Reid Spencer | db4264f | 2006-04-13 20:33:59 +0000 | [diff] [blame] | 162 | @echo 'set target_triplet "$(TARGET_TRIPLE)"' >> site.tmp |
Reid Spencer | e5190d2 | 2007-04-21 20:39:26 +0000 | [diff] [blame] | 163 | @echo 'set TARGETS_TO_BUILD "$(TARGETS_TO_BUILD)"' >> site.tmp |
Reid Spencer | 51162ba | 2007-04-21 21:43:18 +0000 | [diff] [blame] | 164 | @echo 'set llvmgcc_langs "$(LLVMGCC_LANGS)"' >> site.tmp |
Reid Spencer | db4264f | 2006-04-13 20:33:59 +0000 | [diff] [blame] | 165 | @echo 'set llvmgcc_version "$(LLVMGCC_VERSION)"' >> site.tmp |
Reid Spencer | 492196c | 2006-05-28 07:22:42 +0000 | [diff] [blame] | 166 | @echo 'set llvmtoolsdir "$(ToolDir)"' >>site.tmp |
| 167 | @echo 'set llvmlibsdir "$(LibDir)"' >>site.tmp |
Daniel Dunbar | 840a718 | 2009-09-13 01:41:18 +0000 | [diff] [blame] | 168 | @echo 'set llvm_bindings "$(BINDINGS_TO_BUILD)"' >> site.tmp |
Reid Spencer | 15d4059 | 2006-05-28 04:21:40 +0000 | [diff] [blame] | 169 | @echo 'set srcroot "$(LLVM_SRC_ROOT)"' >>site.tmp |
| 170 | @echo 'set objroot "$(LLVM_OBJ_ROOT)"' >>site.tmp |
Reid Spencer | db4264f | 2006-04-13 20:33:59 +0000 | [diff] [blame] | 171 | @echo 'set srcdir "$(LLVM_SRC_ROOT)/test"' >>site.tmp |
| 172 | @echo 'set objdir "$(LLVM_OBJ_ROOT)/test"' >>site.tmp |
Reid Spencer | 3d89bc5 | 2007-04-11 20:57:39 +0000 | [diff] [blame] | 173 | @echo 'set gccpath "$(CC)"' >>site.tmp |
| 174 | @echo 'set gxxpath "$(CXX)"' >>site.tmp |
Evan Cheng | 802cd84 | 2009-03-21 18:12:24 +0000 | [diff] [blame] | 175 | @echo 'set compile_c "' $(CC) $(CPP.Flags) $(TargetCommonOpts) $(CompileCommonOpts) -c '"' >>site.tmp |
| 176 | @echo 'set compile_cxx "' $(CXX) $(CPP.Flags) $(CXX.Flags) $(TargetCommonOpts) $(CompileCommonOpts) -c '"' >> site.tmp |
| 177 | @echo 'set link "' $(CXX) $(CPP.Flags) $(CXX.Flags) $(TargetCommonOpts) $(CompileCommonOpts) $(LD.Flags) '"' >>site.tmp |
| 178 | @echo 'set llvmgcc "$(LLVMGCC) $(TargetCommonOpts) $(EXTRA_OPTIONS)"' >> site.tmp |
| 179 | @echo 'set llvmgxx "$(LLVMGCC) $(TargetCommonOpts) $(EXTRA_OPTIONS)"' >> site.tmp |
Reid Spencer | 805ab07 | 2006-04-06 22:22:08 +0000 | [diff] [blame] | 180 | @echo 'set llvmgccmajvers "$(LLVMGCC_MAJVERS)"' >> site.tmp |
Evan Cheng | 802cd84 | 2009-03-21 18:12:24 +0000 | [diff] [blame] | 181 | @echo 'set bugpoint_topts $(BUGPOINT_TOPTS)' >> site.tmp |
Reid Spencer | 4e3e115 | 2007-04-12 02:49:30 +0000 | [diff] [blame] | 182 | @echo 'set shlibext "$(SHLIBEXT)"' >> site.tmp |
Erick Tryzelaar | b405bbe | 2009-09-03 23:27:31 +0000 | [diff] [blame] | 183 | @echo 'set ocamlopt "$(OCAMLOPT) -cc \"$(CXX_FOR_OCAMLOPT)\" -I $(LibDir)/ocaml"' >> site.tmp |
Nuno Lopes | 2bdc07b | 2008-10-07 14:48:14 +0000 | [diff] [blame] | 184 | @echo 'set valgrind "$(VALGRIND)"' >> site.tmp |
Torok Edwin | 237033e | 2008-10-21 17:21:32 +0000 | [diff] [blame] | 185 | @echo 'set grep "$(GREP)"' >>site.tmp |
| 186 | @echo 'set gas "$(GAS)"' >>site.tmp |
Devang Patel | 6748f04 | 2009-02-02 21:09:36 +0000 | [diff] [blame] | 187 | @echo 'set llvmdsymutil "$(DSYMUTIL)"' >>site.tmp |
Tanya Lattner | 7a7cb4c | 2004-11-07 04:59:52 +0000 | [diff] [blame] | 188 | @echo '## All variables above are generated by configure. Do Not Edit ## ' >>site.tmp |
| 189 | @test ! -f site.exp || \ |
| 190 | sed '1,/^## All variables above are.*##/ d' site.exp >> site.tmp |
| 191 | @-rm -f site.bak |
| 192 | @test ! -f site.exp || mv site.exp site.bak |
| 193 | @mv site.tmp site.exp |
Daniel Dunbar | 70a3b77 | 2009-09-08 05:31:44 +0000 | [diff] [blame] | 194 | |
| 195 | lit.site.cfg: site.exp |
Daniel Dunbar | 2891dbb | 2009-09-20 19:04:28 +0000 | [diff] [blame] | 196 | @echo "Making LLVM 'lit.site.cfg' file..." |
Daniel Dunbar | fb76ffb | 2009-09-22 07:38:33 +0000 | [diff] [blame] | 197 | @sed -e "s#@LLVM_SOURCE_DIR@#$(LLVM_SRC_ROOT)#g" \ |
| 198 | -e "s#@LLVM_BINARY_DIR@#$(LLVM_OBJ_ROOT)#g" \ |
| 199 | -e "s#@LLVM_TOOLS_DIR@#$(ToolDir)#g" \ |
| 200 | -e "s#@LLVMGCCDIR@#$(LLVMGCCDIR)#g" \ |
| 201 | $(PROJ_SRC_DIR)/lit.site.cfg.in > $@ |
Daniel Dunbar | db5fe93 | 2009-09-14 02:39:01 +0000 | [diff] [blame] | 202 | |
Torok Edwin | e1b691f | 2009-10-02 09:30:03 +0000 | [diff] [blame] | 203 | Unit/lit.site.cfg: $(PROJ_OBJ_DIR)/Unit/.dir FORCE |
Daniel Dunbar | 2891dbb | 2009-09-20 19:04:28 +0000 | [diff] [blame] | 204 | @echo "Making LLVM unittest 'lit.site.cfg' file..." |
Daniel Dunbar | db5fe93 | 2009-09-14 02:39:01 +0000 | [diff] [blame] | 205 | @echo "## Autogenerated by Makefile ##" > $@ |
| 206 | @echo "# Do not edit!" >> $@ |
| 207 | @echo >> $@ |
| 208 | @echo "# Preserve some key paths for use by main LLVM test suite config." >> $@ |
| 209 | @echo "config.llvm_obj_root = \"\"\"$(LLVM_OBJ_ROOT)\"\"\"" >> $@ |
| 210 | @echo >> $@ |
| 211 | @echo "# Remember the build mode." >> $@ |
| 212 | @echo "config.llvm_build_mode = \"\"\"$(BuildMode)\"\"\"" >> $@ |
| 213 | @echo >> $@ |
| 214 | @echo "# Let the main config do the real work." >> $@ |
| 215 | @echo "lit.load_config(config, \"\"\"$(LLVM_SRC_ROOT)/test/Unit/lit.cfg\"\"\")" >> $@ |
| 216 | |