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

Unified Diff: tests/Makefile

Issue 2857030: Exhaustive test for rollback code (Closed) Base URL: ssh://git@chromiumos-git/vboot_reference.git
Patch Set: Fix write count handling and improve comments. Created 10 years, 5 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 | « firmware/version.c ('k') | tests/rbtest.conf » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/Makefile
diff --git a/tests/Makefile b/tests/Makefile
index 3259dfed147064d4c1a5a1da9db21a587c635b01..ade73c91009956472bc9cecbeaa34d77e32f93d6 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -10,13 +10,14 @@ INCLUDES += -I./include \
BUILD_ROOT = ${BUILD}/tests
TEST_NAMES = cgptlib_test \
- rsa_padding_test \
- rsa_verify_benchmark \
- sha_benchmark \
- sha_tests \
- vboot_common_tests \
- vboot_common2_tests \
- vboot_common3_tests
+ rsa_padding_test \
+ rsa_verify_benchmark \
+ sha_benchmark \
+ sha_tests \
+ vboot_common_tests \
+ vboot_common2_tests \
+ vboot_common3_tests \
+
TEST_BINS = $(addprefix ${BUILD_ROOT}/,$(TEST_NAMES))
TEST_LIB = ${BUILD_ROOT}/test.a
@@ -31,12 +32,19 @@ ifneq (${RUNTESTS},)
EXTRA_TARGET = runtests
endif
-all: $(TEST_BINS) ${EXTRA_TARGET}
+all: $(TEST_BINS) ${EXTRA_TARGET} $(BUILD_ROOT)/rollback_index_test
${TEST_LIB}: ${TEST_LIB_OBJS}
rm -f $@
ar qc $@ $^
+${BUILD_ROOT}/rollback_index_test.o : rollback_index_test.c
+ $(CC) $(CFLAGS) -I/usr/include $(INCLUDES) -MMD -MF $@.d -c -o $@ $<
+
+${BUILD_ROOT}/rollback_index_test: rollback_index_test.c ${HOSTLIB} ${FWLIB}
+ $(CC) $(CFLAGS) -I/usr/include $(INCLUDES) $< -o $@ \
+ -ltlcl ${HOSTLIB} ${FWLIB} -lcrypto -lrt
+
${BUILD_ROOT}/%.o : %.c
$(CC) $(CFLAGS) $(INCLUDES) -MMD -MF $@.d -c -o $@ $<
@@ -54,10 +62,10 @@ ${BUILD_ROOT}/%: %.c ${LIBS}
# verify_firmware_fuzz_driver
#
# big_kernel_tests
-# kernel_image_tests
-# kernel_rollback_tests
-# kernel_splicing_tests
-# kernel_verify_benchmark
+# kernel_image_tests
+# kernel_rollback_tests
+# kernel_splicing_tests
+# kernel_verify_benchmark
# verify_kernel_fuzz_driver
# Generate test keys
@@ -91,4 +99,8 @@ runtests: genkeys runcgpttests runcryptotests runmisctests
# ${BUILD_ROOT}/firmware_rollback_tests
# ${BUILD_ROOT}/kernel_rollback_tests
+install: $(BUILD_ROOT)/rollback_index_test
+ mkdir -p $(DESTDIR)
+ cp -f $(BUILD_ROOT)/rollback_index_test $(DESTDIR)
+
-include ${ALL_DEPS}
« no previous file with comments | « firmware/version.c ('k') | tests/rbtest.conf » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698