| OLD | NEW |
| 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 TOP ?= ../ | 5 TOP ?= ../ |
| 6 CC ?= gcc | 6 CC ?= gcc |
| 7 CFLAGS ?= -Wall -DNDEBUG -O3 -Werror | 7 CFLAGS ?= -Wall -DNDEBUG -O3 -Werror |
| 8 INCLUDES += -I./include \ | 8 INCLUDES += -I./include \ |
| 9 -I$(FWDIR)/lib/cgptlib/include \ | 9 -I$(FWDIR)/lib/cgptlib/include \ |
| 10 -I$(FWDIR)/lib/cryptolib/include \ | 10 -I$(FWDIR)/lib/cryptolib/include \ |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 sha_tests: sha_tests.c | 89 sha_tests: sha_tests.c |
| 90 $(CC) $(CFLAGS) $(INCLUDES) $^ -o $@ $(FWLIB) | 90 $(CC) $(CFLAGS) $(INCLUDES) $^ -o $@ $(FWLIB) |
| 91 | 91 |
| 92 verify_firmware_fuzz_driver: verify_firmware_fuzz_driver.c \ | 92 verify_firmware_fuzz_driver: verify_firmware_fuzz_driver.c \ |
| 93 rollback_index_mock.c | 93 rollback_index_mock.c |
| 94 $(CC) $(CFLAGS) $(INCLUDES) $^ -o $@ $(LIBS) | 94 $(CC) $(CFLAGS) $(INCLUDES) $^ -o $@ $(LIBS) |
| 95 | 95 |
| 96 verify_kernel_fuzz_driver: verify_kernel_fuzz_driver.c rollback_index_mock.c | 96 verify_kernel_fuzz_driver: verify_kernel_fuzz_driver.c rollback_index_mock.c |
| 97 $(CC) $(CFLAGS) $(INCLUDES) $^ -o $@ $(LIBS) | 97 $(CC) $(CFLAGS) $(INCLUDES) $^ -o $@ $(LIBS) |
| 98 | 98 |
| 99 runtests: |
| 100 # Crypto tests |
| 101 ./run_rsa_tests.sh |
| 102 ./sha_tests |
| 103 ./run_image_verification_tests.sh |
| 104 # Splicing tests |
| 105 ./firmware_splicing_tests |
| 106 ./kernel_splicing_tests |
| 107 # Rollback Tests |
| 108 ./firmware_rollback_tests |
| 109 ./kernel_rollback_tests |
| 110 # Helper Library Tests |
| 111 ./cgptlib_test |
| 112 |
| 99 clean: | 113 clean: |
| 100 rm -f $(TEST_BINS) | 114 rm -f $(TEST_BINS) |
| OLD | NEW |