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

Side by Side Diff: tests/Makefile

Issue 2962002: New targets to compile and install rollback tests only with USE=rbtest emerge ... (Closed) Base URL: ssh://git@chromiumos-git/vboot_reference.git
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « Makefile ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 INCLUDES += -I./include \ 5 INCLUDES += -I./include \
6 -I$(FWDIR)/lib/include \ 6 -I$(FWDIR)/lib/include \
7 -I$(FWDIR)/lib/cgptlib/include \ 7 -I$(FWDIR)/lib/cgptlib/include \
8 -I$(FWDIR)/lib/cryptolib/include \ 8 -I$(FWDIR)/lib/cryptolib/include \
9 -I$(HOSTDIR)/include 9 -I$(HOSTDIR)/include
10 BUILD_ROOT = ${BUILD}/tests 10 BUILD_ROOT = ${BUILD}/tests
(...skipping 14 matching lines...) Expand all
25 TEST_LIB_OBJS = $(TEST_LIB_SRCS:%.c=${BUILD_ROOT}/%.o) 25 TEST_LIB_OBJS = $(TEST_LIB_SRCS:%.c=${BUILD_ROOT}/%.o)
26 ALL_DEPS = $(addsuffix .d,${TEST_BINS} ${TEST_LIB_OBJS}) 26 ALL_DEPS = $(addsuffix .d,${TEST_BINS} ${TEST_LIB_OBJS})
27 CFLAGS += -MMD -MF $@.d 27 CFLAGS += -MMD -MF $@.d
28 28
29 LIBS := ${TEST_LIB} $(HOSTLIB) $(FWLIB) 29 LIBS := ${TEST_LIB} $(HOSTLIB) $(FWLIB)
30 30
31 ifneq (${RUNTESTS},) 31 ifneq (${RUNTESTS},)
32 EXTRA_TARGET = runtests 32 EXTRA_TARGET = runtests
33 endif 33 endif
34 34
35 # Disable rollback_index_test by default because it requires the real 35 all: $(TEST_BINS) ${EXTRA_TARGET}
36 # tlcl lib 36
37 all: $(TEST_BINS) ${EXTRA_TARGET} # $(BUILD_ROOT)/rollback_index_test 37 rbtest: $(BUILD_ROOT)/rollback_index_test
38 38
39 ${TEST_LIB}: ${TEST_LIB_OBJS} 39 ${TEST_LIB}: ${TEST_LIB_OBJS}
40 rm -f $@ 40 rm -f $@
41 ar qc $@ $^ 41 ar qc $@ $^
42 42
43 ${BUILD_ROOT}/rollback_index_test.o : rollback_index_test.c 43 ${BUILD_ROOT}/rollback_index_test.o : rollback_index_test.c
44 $(CC) $(CFLAGS) -I/usr/include $(INCLUDES) -MMD -MF $@.d -c -o $@ $< 44 $(CC) $(CFLAGS) -I/usr/include $(INCLUDES) -MMD -MF $@.d -c -o $@ $<
45 45
46 ${BUILD_ROOT}/rollback_index_test: rollback_index_test.c ${HOSTLIB} ${FWLIB} 46 ${BUILD_ROOT}/rollback_index_test: rollback_index_test.c ${HOSTLIB} ${FWLIB}
47 $(CC) $(CFLAGS) -I/usr/include $(INCLUDES) $< -o $@ \ 47 $(CC) $(CFLAGS) -I/usr/include $(INCLUDES) $< -o $@ \
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 94
95 # TODO: tests to run when ported to new API 95 # TODO: tests to run when ported to new API
96 # ./run_image_verification_tests.sh 96 # ./run_image_verification_tests.sh
97 # # Splicing tests 97 # # Splicing tests
98 # ${BUILD_ROOT}/firmware_splicing_tests 98 # ${BUILD_ROOT}/firmware_splicing_tests
99 # ${BUILD_ROOT}/kernel_splicing_tests 99 # ${BUILD_ROOT}/kernel_splicing_tests
100 # # Rollback Tests 100 # # Rollback Tests
101 # ${BUILD_ROOT}/firmware_rollback_tests 101 # ${BUILD_ROOT}/firmware_rollback_tests
102 # ${BUILD_ROOT}/kernel_rollback_tests 102 # ${BUILD_ROOT}/kernel_rollback_tests
103 103
104 # Must have a dummy install target for ebuild 104 install-rbtest: $(BUILD_ROOT)/rollback_index_test
105 install: 105 » mkdir -p $(DESTDIR)
106 106 » cp -f $(BUILD_ROOT)/rollback_index_test $(DESTDIR)
107 #install: $(BUILD_ROOT)/rollback_index_test
108 #» mkdir -p $(DESTDIR)
109 #» cp -f $(BUILD_ROOT)/rollback_index_test $(DESTDIR)
110 107
111 -include ${ALL_DEPS} 108 -include ${ALL_DEPS}
OLDNEW
« no previous file with comments | « Makefile ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698