Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(161)

Side by Side Diff: Makefile.standalone

Issue 987503004: Subzero: Run cross tests as a much more configurable python script. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Add import to be safe Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | crosstest/crosstest.cfg » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # The following variables will likely need to be modified, depending on where 1 # The following variables will likely need to be modified, depending on where
2 # and how you built LLVM & Clang. They can be overridden in a command-line 2 # and how you built LLVM & Clang. They can be overridden in a command-line
3 # invocation of make, like: 3 # invocation of make, like:
4 # 4 #
5 # make LLVM_SRC_PATH=<path> LLVM_BIN_PATH=<path> \ 5 # make LLVM_SRC_PATH=<path> LLVM_BIN_PATH=<path> \
6 # LIBCXX_INSTALL_PATH=<path> CLANG_PATH=<path> \ 6 # LIBCXX_INSTALL_PATH=<path> CLANG_PATH=<path> \
7 # BINUTILS_BIN_PATH=<path> ... 7 # BINUTILS_BIN_PATH=<path> ...
8 # 8 #
9 9
10 # LLVM_SRC_PATH is the path to the root of the checked out source code. This 10 # LLVM_SRC_PATH is the path to the root of the checked out source code. This
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 $(LLVM_SRC_PATH)/utils/lit/lit.py -sv tests_lit 217 $(LLVM_SRC_PATH)/utils/lit/lit.py -sv tests_lit
218 218
219 check-unit: $(OBJDIR)/run_unittests 219 check-unit: $(OBJDIR)/run_unittests
220 $(OBJDIR)/run_unittests 220 $(OBJDIR)/run_unittests
221 221
222 ifdef MINIMAL 222 ifdef MINIMAL
223 check: check-lit check-unit runtime 223 check: check-lit check-unit runtime
224 @echo "Crosstests ignored, minimal build" 224 @echo "Crosstests ignored, minimal build"
225 else 225 else
226 check: check-lit check-unit runtime 226 check: check-lit check-unit runtime
227 » (cd crosstest; ./runtests.sh) 227 # Do all native/sse2 tests, but only test_vector_ops for native/sse4.1.
228 # For (slow) sandboxed tests, limit to Om1/sse4.1.
229 » ./pydir/crosstest_generator.py -v --lit \
230 » -i native,sse2 -i native,sse4.1,test_vector_ops \
231 » -i sandbox,sse4.1,Om1
232 » LLVM_BIN_PATH=$(LLVM_BIN_PATH) \
233 » $(LLVM_SRC_PATH)/utils/lit/lit.py -sv crosstest/Output
228 endif 234 endif
229 235
230 FORMAT_BLACKLIST = 236 FORMAT_BLACKLIST =
231 # Add one of the following lines for each source file to ignore. 237 # Add one of the following lines for each source file to ignore.
232 FORMAT_BLACKLIST += ! -name IceParseInstsTest.cpp 238 FORMAT_BLACKLIST += ! -name IceParseInstsTest.cpp
233 format: 239 format:
234 $(LLVM_BIN_PATH)/clang-format -style=LLVM -i \ 240 $(LLVM_BIN_PATH)/clang-format -style=LLVM -i \
235 `find . -regex '.*\.\(c\|h\|cpp\)' $(FORMAT_BLACKLIST)` 241 `find . -regex '.*\.\(c\|h\|cpp\)' $(FORMAT_BLACKLIST)`
236 242
237 format-diff: 243 format-diff:
238 git diff -U0 `git merge-base HEAD master` | \ 244 git diff -U0 `git merge-base HEAD master` | \
239 PATH=$(LLVM_BIN_PATH):$(PATH) \ 245 PATH=$(LLVM_BIN_PATH):$(PATH) \
240 $(LLVM_SRC_PATH)/../clang/tools/clang-format/clang-format-diff.py \ 246 $(LLVM_SRC_PATH)/../clang/tools/clang-format/clang-format-diff.py \
241 -p1 -style=LLVM -i 247 -p1 -style=LLVM -i
242 248
243 bloat: make_symlink 249 bloat: make_symlink
244 nm -C -S -l pnacl-sz | \ 250 nm -C -S -l pnacl-sz | \
245 bloat/bloat.py --nm-output=/dev/stdin syms > build/pnacl-sz.bloat.json 251 bloat/bloat.py --nm-output=/dev/stdin syms > build/pnacl-sz.bloat.json
246 @echo See Subzero size breakdown in bloat/pnacl-sz.bloat.html 252 @echo See Subzero size breakdown in bloat/pnacl-sz.bloat.html
247 253
248 clean: 254 clean:
249 rm -rf pnacl-sz *.o $(OBJDIR) build/pnacl-sz.bloat.json 255 rm -rf pnacl-sz *.o $(OBJDIR) build/pnacl-sz.bloat.json
250 256
251 clean-all: clean 257 clean-all: clean
252 rm -rf build/ 258 rm -rf build/
OLDNEW
« no previous file with comments | « no previous file | crosstest/crosstest.cfg » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698