OLD | NEW |
(Empty) | |
| 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 VBOOT_REFERENCE_DIR = ../../.. |
| 6 BUILD_TEST_DIR = vboot_reference |
| 7 # Test Binaries. |
| 8 TEST_BINS = \ |
| 9 common.sh \ |
| 10 firmware_image_tests \ |
| 11 firmware_rollback_tests \ |
| 12 firmware_splicing_tests \ |
| 13 firmware_verify_benchmark \ |
| 14 gen_test_cases.sh \ |
| 15 kernel_image_tests \ |
| 16 kernel_rollback_tests \ |
| 17 kernel_splicing_tests \ |
| 18 kernel_verify_benchmark \ |
| 19 rsa_padding_test \ |
| 20 rsa_verify_benchmark \ |
| 21 run_image_verification_tests.sh \ |
| 22 run_rsa_tests.sh \ |
| 23 sha_benchmark \ |
| 24 sha_tests \ |
| 25 testcases \ |
| 26 testkeys |
| 27 |
| 28 # Utility Binaries. |
| 29 UTIL_BINS = verify_data signature_digest_utility |
| 30 |
| 31 all: |
| 32 # Copy test sources into a temporary directory for building. |
| 33 rm -rf $(BUILD_TEST_DIR) |
| 34 # only copy stuff that's not us |
| 35 sh -c \ |
| 36 'for dir in $(VBOOT_REFERENCE_DIR)/*; do \ |
| 37 [ "$${dir}" != "$(VBOOT_REFERENCE_DIR)/autotest" ] && cp -r $${d
ir} .; \ |
| 38 done' |
| 39 # Always build from scratch. |
| 40 $(MAKE) -C $(BUILD_TEST_DIR) clean all |
| 41 # Move test binaries for use by the tests. |
| 42 mkdir -p tests |
| 43 set -e; for i in $(TEST_BINS); do \ |
| 44 mv $(BUILD_TEST_DIR)/tests/$$i tests/ ;\ |
| 45 done |
| 46 # Move utility binaries used by the tests. |
| 47 mkdir -p utility |
| 48 set -e; for i in $(UTIL_BINS); do \ |
| 49 mv $(BUILD_TEST_DIR)/utility/$$i utility/ ;\ |
| 50 done |
| 51 # Delete sources. |
| 52 rm -rf $(BUILD_TEST_DIR) |
| 53 |
| 54 clean: |
| 55 rm -rf utility/ tests/ |
OLD | NEW |