]> granicus.if.org Git - libvpx/commit
Add support for downloading test data
authorJohn Koleszar <jkoleszar@google.com>
Wed, 20 Jun 2012 21:45:22 +0000 (14:45 -0700)
committerJohn Koleszar <jkoleszar@google.com>
Thu, 21 Jun 2012 17:41:48 +0000 (10:41 -0700)
commit007486329fe79280f6b062a85fad9ba8720aaaea
treea408ee04b4fd8bde8b4a4adc386aa5db475d7790
parent6fc1d9efc48abb360fa2b639afce6ac792769a8a
Add support for downloading test data

The commit introduces a make target 'testdata' that downloads the
required test data from the WebM project website. The data will also
be downloaded if invoking `make test` but is not a strict requirement
for only building the test executable.

The download directory is taken from the LIBVPX_TEST_DATA_PATH
environment variable, or may be specified as part of the make command.
If unset, it defaults to the current directory. It's expected that
most developers will want to set this environment variable to a place
outside their source/build trees, to avoid having to download the data
more than once.

To add test data file:

  1) add a line to test/test.mk:

      LIBVPX_TEST_DATA-yes += foo-bar-file.y4m

  2) add its sha1sum to the test/test-data.sha1 file in the following
     format:

      528cc88c821e5f5b133c2b40f9c8e3f22eaacc4c  foo-bar-file.y4m

  3) upload the file to the website

      $ gsutil cp foo-bar-file.y4m gs://downloads.webmproject.org/test_data/libvpx

This implementation will check the integrity of the test data
automatically if the `sha1sum` executable is available.

Change-Id: If6910fe304bb3f5cdcc5cb9e5f9afa5be74720d2
README
build/make/Makefile
libs.mk