OLD | NEW |
1 ## | 1 ## |
2 ## Copyright (c) 2010 The WebM project authors. All Rights Reserved. | 2 ## Copyright (c) 2010 The WebM project authors. All Rights Reserved. |
3 ## | 3 ## |
4 ## Use of this source code is governed by a BSD-style license | 4 ## Use of this source code is governed by a BSD-style license |
5 ## that can be found in the LICENSE file in the root of the source | 5 ## that can be found in the LICENSE file in the root of the source |
6 ## tree. An additional intellectual property rights grant can be found | 6 ## tree. An additional intellectual property rights grant can be found |
7 ## in the file PATENTS. All contributing project authors may | 7 ## in the file PATENTS. All contributing project authors may |
8 ## be found in the AUTHORS file in the root of the source tree. | 8 ## be found in the AUTHORS file in the root of the source tree. |
9 ## | 9 ## |
10 | 10 |
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
402 @echo " [CREATE] $@" | 402 @echo " [CREATE] $@" |
403 @echo $(LIBVPX_TEST_SRCS) | xargs -n1 echo | sort -u > $@ | 403 @echo $(LIBVPX_TEST_SRCS) | xargs -n1 echo | sort -u > $@ |
404 CLEAN-OBJS += libvpx_test_srcs.txt | 404 CLEAN-OBJS += libvpx_test_srcs.txt |
405 | 405 |
406 $(LIBVPX_TEST_DATA): $(SRC_PATH_BARE)/test/test-data.sha1 | 406 $(LIBVPX_TEST_DATA): $(SRC_PATH_BARE)/test/test-data.sha1 |
407 @echo " [DOWNLOAD] $@" | 407 @echo " [DOWNLOAD] $@" |
408 $(qexec)trap 'rm -f $@' INT TERM &&\ | 408 $(qexec)trap 'rm -f $@' INT TERM &&\ |
409 curl -L -o $@ $(call libvpx_test_data_url,$(@F)) | 409 curl -L -o $@ $(call libvpx_test_data_url,$(@F)) |
410 | 410 |
411 testdata:: $(LIBVPX_TEST_DATA) | 411 testdata:: $(LIBVPX_TEST_DATA) |
412 » $(qexec)if [ -x "$$(which sha1sum)" ]; then\ | 412 » $(qexec)[ -x "$$(which sha1sum)" ] && sha1sum=sha1sum;\ |
| 413 [ -x "$$(which shasum)" ] && sha1sum=shasum;\ |
| 414 [ -x "$$(which sha1)" ] && sha1sum=sha1;\ |
| 415 if [ -n "$${sha1sum}" ]; then\ |
| 416 set -e;\ |
413 echo "Checking test data:";\ | 417 echo "Checking test data:";\ |
414 if [ -n "$(LIBVPX_TEST_DATA)" ]; then\ | 418 if [ -n "$(LIBVPX_TEST_DATA)" ]; then\ |
415 for f in $(call enabled,LIBVPX_TEST_DATA); do\ | 419 for f in $(call enabled,LIBVPX_TEST_DATA); do\ |
416 grep $$f $(SRC_PATH_BARE)/test/test-data.sha1 |\ | 420 grep $$f $(SRC_PATH_BARE)/test/test-data.sha1 |\ |
417 (cd $(LIBVPX_TEST_DATA_PATH); sha1sum -c);\ | 421 (cd $(LIBVPX_TEST_DATA_PATH); $${sha1sum} -c);\ |
418 done; \ | 422 done; \ |
419 fi; \ | 423 fi; \ |
420 else\ | 424 else\ |
421 echo "Skipping test data integrity check, sha1sum not found.";\ | 425 echo "Skipping test data integrity check, sha1sum not found.";\ |
422 fi | 426 fi |
423 | 427 |
424 ifeq ($(CONFIG_EXTERNAL_BUILD),yes) | 428 ifeq ($(CONFIG_EXTERNAL_BUILD),yes) |
425 ifeq ($(CONFIG_MSVS),yes) | 429 ifeq ($(CONFIG_MSVS),yes) |
426 | 430 |
427 gtest.$(VCPROJ_SFX): $(SRC_PATH_BARE)/third_party/googletest/src/src/gtest-all.c
c | 431 gtest.$(VCPROJ_SFX): $(SRC_PATH_BARE)/third_party/googletest/src/src/gtest-all.c
c |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
575 EXAMPLES_BIN_PATH := $(TGT_OS:win64=x64)/Release | 579 EXAMPLES_BIN_PATH := $(TGT_OS:win64=x64)/Release |
576 endif | 580 endif |
577 exampletest: examples testdata | 581 exampletest: examples testdata |
578 $(qexec)$(SRC_PATH_BARE)/test/examples.sh \ | 582 $(qexec)$(SRC_PATH_BARE)/test/examples.sh \ |
579 --test-data-path $(LIBVPX_TEST_DATA_PATH) \ | 583 --test-data-path $(LIBVPX_TEST_DATA_PATH) \ |
580 --bin-path $(EXAMPLES_BIN_PATH) | 584 --bin-path $(EXAMPLES_BIN_PATH) |
581 else | 585 else |
582 exampletest: | 586 exampletest: |
583 @echo Unit tests must be enabled to make the exampletest target. | 587 @echo Unit tests must be enabled to make the exampletest target. |
584 endif | 588 endif |
OLD | NEW |