Kees Cook | 0a8adf5 | 2014-07-14 14:38:12 -0700 | [diff] [blame^] | 1 | # Makefile for firmware loading selftests |
| 2 | |
| 3 | # No binaries, but make sure arg-less "make" doesn't trigger "run_tests" |
| 4 | all: |
| 5 | |
| 6 | fw_filesystem: |
| 7 | @if /bin/sh ./fw_filesystem.sh ; then \ |
| 8 | echo "fw_filesystem: ok"; \ |
| 9 | else \ |
| 10 | echo "fw_filesystem: [FAIL]"; \ |
| 11 | exit 1; \ |
| 12 | fi |
| 13 | |
| 14 | fw_userhelper: |
| 15 | @if /bin/sh ./fw_userhelper.sh ; then \ |
| 16 | echo "fw_userhelper: ok"; \ |
| 17 | else \ |
| 18 | echo "fw_userhelper: [FAIL]"; \ |
| 19 | exit 1; \ |
| 20 | fi |
| 21 | |
| 22 | run_tests: all fw_filesystem fw_userhelper |
| 23 | |
| 24 | # Nothing to clean up. |
| 25 | clean: |
| 26 | |
| 27 | .PHONY: all clean run_tests fw_filesystem fw_userhelper |