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

Unified Diff: Makefile.standalone

Issue 1582243005: allow specific test for make check (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: changes suggested by stichnot Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Makefile.standalone
diff --git a/Makefile.standalone b/Makefile.standalone
index a91798587862156cd66aebf3f98f2b5ceaab3307..efd905229bdf6dfdf0d853eba1056a0dbce0442a 100644
--- a/Makefile.standalone
+++ b/Makefile.standalone
@@ -33,6 +33,10 @@ PNACL_TOOLCHAIN_ROOT ?= $(shell readlink -e $(TOOLCHAIN_ROOT)/pnacl_newlib_raw)
# The location of PNaCl tools (e.g., binutils objdump, pnacl-clang++, etc.).
PNACL_BIN_PATH ?= $(shell readlink -e $(PNACL_TOOLCHAIN_ROOT)/bin)
+# Allow tests_lit to be overidden
Jim Stichnoth 2016/01/20 17:35:52 I would make the comment a bit more verbose/helpfu
rkotlerimgtec 2016/01/21 01:48:55 These are already covered in the help for the make
Jim Stichnoth 2016/01/22 03:05:21 OK - but can address the first part of my comment?
rkotlerimgtec 2016/01/22 03:48:30 Done.
+CHECK_LIT_TESTS ?= tests_lit
+CHECK_XTEST_TESTS ?= crosstest/Output
+
# Hack to auto-detect autoconf versus cmake build of LLVM. If the LLVM tools
# were dynamically linked with something like libLLVM-3.7svn.so, it is an
# autoconf build, otherwise it is a cmake build. AUTOCONF is set to 0 for
@@ -334,7 +338,8 @@ make_symlink: $(OBJDIR)/pnacl-sz
@echo "Build Attributes:"
@$(SHOW_BUILD_ATTS)
-.PHONY: all compile_only make_symlink runtime bloat sb docs
+.PHONY: all compile_only make_symlink runtime bloat sb docs help \
+ help-check-lit help-check-xtest
Jim Stichnoth 2016/01/20 17:35:52 This continuation line doesn't need a tab characte
rkotlerimgtec 2016/01/21 01:48:55 Done.
compile_only: $(OBJS)
@@ -415,7 +420,7 @@ runtime.is.built: $(RT_SRC) pydir/build-runtime.py
check-lit: $(OBJDIR)/pnacl-sz make_symlink
PNACL_BIN_PATH=$(PNACL_BIN_PATH) \
- $(LLVM_SRC_PATH)/utils/lit/lit.py -sv tests_lit \
+ $(LLVM_SRC_PATH)/utils/lit/lit.py -sv $(CHECK_LIT_TESTS) \
$(FORCEASM_LIT_TEST_EXCLUDES) $(FORCEASM_LIT_PARAM)
ifdef MINIMAL
@@ -441,7 +446,7 @@ check-xtest: $(OBJDIR)/pnacl-sz make_symlink runtime
-e arm32,neon,test_vector_ops \
-e arm32,neon,test_select
PNACL_BIN_PATH=$(PNACL_BIN_PATH) \
- $(LLVM_SRC_PATH)/utils/lit/lit.py -sv crosstest/Output
+ $(LLVM_SRC_PATH)/utils/lit/lit.py -sv $(CHECK_XTEST_TESTS)
endif
check-unit: $(OBJDIR)/run_unittests
@@ -542,6 +547,39 @@ bloat: make_symlink
docs:
make -C docs -f Makefile.standalone
+help:
+ @echo
Jim Stichnoth 2016/01/20 17:35:52 I think this might be better accomplished by just
rkotlerimgtec 2016/01/21 01:48:55 Done.
+ @echo
+ @echo Targets:
+ @echo
+ @echo check-lit - run the lit tests
+ @echo check-xtest - run the cross tests
+ @echo
+ @echo For more detailed help:
+ @echo
+ @echo makefile -f Makefile.standalone help-target . so for example:
+ @echo makefile -f Makefile.standalone help-check-lit
+ @echo
+ @echo
+
+help-check-lit:
+ @echo
+ @echo check-lit - run the lit tests
+ @echo
+ @echo to check a specific test, override CHECK_LIT_TESTS
+ @echo i.e. make -f Makefile.standalone check-lit CHECK_LIT_TESTS=tests_lit/llvm2ice_tests/arith.ll
+ @echo
+ @echo
+
+help-check-xtest:
+ @echo
+ @echo check-xtest - run the cross tests
+ @echo
+ @echo to check a specific test, override CHECK_XTEST_TESTS
+ @echo i.e. make -f Makefile.standalone check-xtest CHECK_XTEST_TESTS=crosstest/Output/mem_intrin_x8632_nonsfi_O2_sse2.xtest
+ @echo
+ @echo
+
clean:
rm -rf pnacl-sz *.o $(OBJDIR) $(SB_OBJDIR) build/pnacl-sz.bloat.json
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698