build: add *test-no-data-check targets
skips testdata verification; useful with slow media or if the data was retrieved via a separate call to testdata Change-Id: Ifd97892cee6c04b0111874cc8071675e90ec852b
This commit is contained in:
parent
90c9ede8e6
commit
557ae511cb
@ -22,8 +22,10 @@ clean:: .DEFAULT
|
|||||||
exampletest: .DEFAULT
|
exampletest: .DEFAULT
|
||||||
install:: .DEFAULT
|
install:: .DEFAULT
|
||||||
test:: .DEFAULT
|
test:: .DEFAULT
|
||||||
|
test-no-data-check:: .DEFAULT
|
||||||
testdata:: .DEFAULT
|
testdata:: .DEFAULT
|
||||||
utiltest: .DEFAULT
|
utiltest: .DEFAULT
|
||||||
|
exampletest-no-data-check utiltest-no-data-check: .DEFAULT
|
||||||
|
|
||||||
|
|
||||||
# Note: md5sum is not installed on OS X, but openssl is. Openssl may not be
|
# Note: md5sum is not installed on OS X, but openssl is. Openssl may not be
|
||||||
@ -113,6 +115,9 @@ test::
|
|||||||
testdata::
|
testdata::
|
||||||
.PHONY: utiltest
|
.PHONY: utiltest
|
||||||
utiltest:
|
utiltest:
|
||||||
|
.PHONY: test-no-data-check exampletest-no-data-check utiltest-no-data-check
|
||||||
|
test-no-data-check::
|
||||||
|
exampletest-no-data-check utiltest-no-data-check:
|
||||||
|
|
||||||
# Add compiler flags for intrinsic files
|
# Add compiler flags for intrinsic files
|
||||||
ifeq ($(TOOLCHAIN), x86-os2-gcc)
|
ifeq ($(TOOLCHAIN), x86-os2-gcc)
|
||||||
|
14
libs.mk
14
libs.mk
@ -508,11 +508,13 @@ INSTALL-SRCS-$(CONFIG_CODEC_SRCS) += $(TEST_INTRA_PRED_SPEED_SRCS)
|
|||||||
|
|
||||||
define test_shard_template
|
define test_shard_template
|
||||||
test:: test_shard.$(1)
|
test:: test_shard.$(1)
|
||||||
test_shard.$(1): $(LIBVPX_TEST_BIN) testdata
|
test-no-data-check:: test_shard_ndc.$(1)
|
||||||
|
test_shard.$(1) test_shard_ndc.$(1): $(LIBVPX_TEST_BIN)
|
||||||
@set -e; \
|
@set -e; \
|
||||||
export GTEST_SHARD_INDEX=$(1); \
|
export GTEST_SHARD_INDEX=$(1); \
|
||||||
export GTEST_TOTAL_SHARDS=$(2); \
|
export GTEST_TOTAL_SHARDS=$(2); \
|
||||||
$(LIBVPX_TEST_BIN)
|
$(LIBVPX_TEST_BIN)
|
||||||
|
test_shard.$(1): testdata
|
||||||
.PHONY: test_shard.$(1)
|
.PHONY: test_shard.$(1)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
@ -557,15 +559,16 @@ ifeq ($(CONFIG_MSVS),yes)
|
|||||||
# TODO(tomfinegan): Support running the debug versions of tools?
|
# TODO(tomfinegan): Support running the debug versions of tools?
|
||||||
TEST_BIN_PATH := $(addsuffix /$(TGT_OS:win64=x64)/Release, $(TEST_BIN_PATH))
|
TEST_BIN_PATH := $(addsuffix /$(TGT_OS:win64=x64)/Release, $(TEST_BIN_PATH))
|
||||||
endif
|
endif
|
||||||
utiltest: testdata
|
utiltest utiltest-no-data-check:
|
||||||
$(qexec)$(SRC_PATH_BARE)/test/vpxdec.sh \
|
$(qexec)$(SRC_PATH_BARE)/test/vpxdec.sh \
|
||||||
--test-data-path $(LIBVPX_TEST_DATA_PATH) \
|
--test-data-path $(LIBVPX_TEST_DATA_PATH) \
|
||||||
--bin-path $(TEST_BIN_PATH)
|
--bin-path $(TEST_BIN_PATH)
|
||||||
$(qexec)$(SRC_PATH_BARE)/test/vpxenc.sh \
|
$(qexec)$(SRC_PATH_BARE)/test/vpxenc.sh \
|
||||||
--test-data-path $(LIBVPX_TEST_DATA_PATH) \
|
--test-data-path $(LIBVPX_TEST_DATA_PATH) \
|
||||||
--bin-path $(TEST_BIN_PATH)
|
--bin-path $(TEST_BIN_PATH)
|
||||||
|
utiltest: testdata
|
||||||
else
|
else
|
||||||
utiltest:
|
utiltest utiltest-no-data-check:
|
||||||
@echo Unit tests must be enabled to make the utiltest target.
|
@echo Unit tests must be enabled to make the utiltest target.
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@ -583,11 +586,12 @@ ifeq ($(CONFIG_MSVS),yes)
|
|||||||
# TODO(tomfinegan): Support running the debug versions of tools?
|
# TODO(tomfinegan): Support running the debug versions of tools?
|
||||||
EXAMPLES_BIN_PATH := $(TGT_OS:win64=x64)/Release
|
EXAMPLES_BIN_PATH := $(TGT_OS:win64=x64)/Release
|
||||||
endif
|
endif
|
||||||
exampletest: examples testdata
|
exampletest exampletest-no-data-check: examples
|
||||||
$(qexec)$(SRC_PATH_BARE)/test/examples.sh \
|
$(qexec)$(SRC_PATH_BARE)/test/examples.sh \
|
||||||
--test-data-path $(LIBVPX_TEST_DATA_PATH) \
|
--test-data-path $(LIBVPX_TEST_DATA_PATH) \
|
||||||
--bin-path $(EXAMPLES_BIN_PATH)
|
--bin-path $(EXAMPLES_BIN_PATH)
|
||||||
|
exampletest: testdata
|
||||||
else
|
else
|
||||||
exampletest:
|
exampletest exampletest-no-data-check:
|
||||||
@echo Unit tests must be enabled to make the exampletest target.
|
@echo Unit tests must be enabled to make the exampletest target.
|
||||||
endif
|
endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user