Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(384)

Unified Diff: autotest/firmware_VbootCrypto/src/Makefile

Issue 3326014: Fix autotest Makefile for vboot_reference. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/vboot_reference.git
Patch Set: Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tests/run_cgpt_tests.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: autotest/firmware_VbootCrypto/src/Makefile
diff --git a/autotest/firmware_VbootCrypto/src/Makefile b/autotest/firmware_VbootCrypto/src/Makefile
index ae0e3147b1bb2b9eb4b37bb58c26ba772bd78cff..7c770a50042a59590d64d0f5de0ed24e4618cf4e 100644
--- a/autotest/firmware_VbootCrypto/src/Makefile
+++ b/autotest/firmware_VbootCrypto/src/Makefile
@@ -2,51 +2,68 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-VBOOT_REFERENCE_DIR = ../../..
-BUILD_TEST_DIR = vboot_reference
+VBOOT_SRC_DIR ?= ../../..
+BUILD_TEST_DIR = vboot_tests
# Test Binaries.
TEST_BINS = \
- common.sh \
- firmware_image_tests \
- firmware_rollback_tests \
- firmware_splicing_tests \
- firmware_verify_benchmark \
- gen_test_cases.sh \
- kernel_image_tests \
- kernel_rollback_tests \
- kernel_splicing_tests \
- kernel_verify_benchmark \
+ cgptlib_test \
rsa_padding_test \
rsa_verify_benchmark \
- run_image_verification_tests.sh \
- run_rsa_tests.sh \
sha_benchmark \
sha_tests \
+ vboot_common_tests \
+ vboot_common2_tests \
+ vboot_common3_tests
+# Test Runner Scripts.
+TEST_SCRIPTS = \
+ common.sh \
+ gen_test_cases.sh \
+ gen_test_keys.sh \
+ gen_test_vbpubks.sh \
+ run_cgpt_tests.sh \
+ run_rsa_tests.sh \
+ run_vboot_common_tests.sh \
+ run_vbutil_tests.sh \
testcases \
testkeys
# Utility Binaries.
-UTIL_BINS = verify_data signature_digest_utility
+UTIL_BINS = \
+ load_kernel_test \
+ signature_digest_utility \
+ vbutil_firmware \
+ vbutil_kernel \
+ vbutil_key \
+ vbutil_keyblock \
+ verify_data
all:
# Copy test sources into a temporary directory for building.
rm -rf $(BUILD_TEST_DIR)
- # only copy stuff that's not us
+ mkdir -p $(BUILD_TEST_DIR)
+ # Ignore autotest and build directory.
sh -c \
- 'for dir in $(VBOOT_REFERENCE_DIR)/*; do \
- [ "$${dir}" != "$(VBOOT_REFERENCE_DIR)/autotest" ] && cp -r $${dir} .; \
+ 'for dir in $(VBOOT_SRC_DIR)/*; do \
+ [ "$${dir}" != "$(VBOOT_SRC_DIR)/build" ] && \
+ [ "$${dir}" != "$(VBOOT_SRC_DIR)/autotest" ] && \
+ cp -r "$${dir}" "$(BUILD_TEST_DIR)"; \
done'
# Always build from scratch.
$(MAKE) -C $(BUILD_TEST_DIR) clean all
# Move test binaries for use by the tests.
- mkdir -p tests
+ mkdir -p build/tests
set -e; for i in $(TEST_BINS); do \
+ mv $(BUILD_TEST_DIR)/build/tests/$$i build/tests/ ;\
+ done
+ # Move test scripts for use by the tests.
+ mkdir -p tests
+ set -e; for i in $(TEST_SCRIPTS); do \
mv $(BUILD_TEST_DIR)/tests/$$i tests/ ;\
done
# Move utility binaries used by the tests.
- mkdir -p utility
+ mkdir -p build/utility
set -e; for i in $(UTIL_BINS); do \
- mv $(BUILD_TEST_DIR)/utility/$$i utility/ ;\
+ mv $(BUILD_TEST_DIR)/build/utility/$$i build/utility/ ;\
done
# Delete sources.
rm -rf $(BUILD_TEST_DIR)
« no previous file with comments | « no previous file | tests/run_cgpt_tests.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698