Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
aom-rav1e
Commits
b36829a0
Commit
b36829a0
authored
Jun 13, 2013
by
John Koleszar
Committed by
Gerrit Code Review
Jun 13, 2013
Browse files
Merge "libs.mk: allow tests to be sharded"
parents
a81bd12a
7059c1de
Changes
1
Hide whitespace changes
Inline
Side-by-side
libs.mk
View file @
b36829a0
...
...
@@ -435,8 +435,7 @@ test_libvpx.$(VCPROJ_SFX): $(LIBVPX_TEST_SRCS) vpx.$(VCPROJ_SFX) gtest.$(VCPROJ_
PROJECTS-$(CONFIG_MSVS)
+=
test_libvpx.
$(VCPROJ_SFX)
test
::
testdata
@
set
-e
;
for
t
in
$(
addprefix
$(TGT_OS:win64=x64)
/Release/,
$(
notdir
$(LIBVPX_TEST_BINS:.cc=.exe)
))
;
do
$$
t
;
done
LIBVPX_TEST_BINS
:=
$(
addprefix
$(TGT_OS:win64=x64)
/Release/,
$(
notdir
$(LIBVPX_TEST_BINS)
))
endif
else
...
...
@@ -471,10 +470,24 @@ $(foreach bin,$(LIBVPX_TEST_BINS),\
)))
\
$(if $(LIPO_LIBS)
,
$(eval $(call lipo_bin_template
,
$(bin))))
\
test
::
$(LIBVPX_TEST_BINS) testdata
@
set
-e
;
for
t
in
$(LIBVPX_TEST_BINS)
;
do
$$
t
;
done
endif
define
test_shard_template
test
::
test_shard.$(1)
test_shard.$(1)
:
$(LIBVPX_TEST_BINS) testdata
@
set
-e
;
\
for
t
in
$(LIBVPX_TEST_BINS)
;
do
\
export
GTEST_SHARD_INDEX
=
$(1)
;
\
export
GTEST_TOTAL_SHARDS
=
$(2)
;
\
$$$$
t
;
\
done
.PHONY
:
test_shard.$(1)
endef
NUM_SHARDS
:=
10
SHARDS
:=
0 1 2 3 4 5 6 7 8 9
$(foreach
s,$(SHARDS),$(eval
$(call
test_shard_template,$(s),$(NUM_SHARDS))))
endif
##
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment