Skip to content

Commit

Permalink
.github/workflows/build.yml: run 'make tests'
Browse files Browse the repository at this point in the history
Signed-off-by: Krystian Hebel <krystian.hebel@3mdeb.com>
  • Loading branch information
krystian-hebel committed Apr 12, 2024
1 parent 4304942 commit bef3b09
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,7 @@ jobs:
run: |
make CC=${{matrix.compiler}} BITS=${{matrix.bits}} ${{matrix.lto}}
./extend_skl_only.sh
- name: make tests
run: |
make CC=${{matrix.compiler}} BITS=64 ${{matrix.lto}} tests
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ tpmlib/%.o: tpmlib/%.c Makefile

# Helpers for building and running tests on the current host
test-%: test-%.c Makefile
$(CC) $(filter-out -ffreestanding -march%,$(CFLAGS)) $(if $(COV),-fprofile-arcs -ftest-coverage) $< -o $@
$(CC) $(filter-out -ffreestanding -march% -Werror,$(CFLAGS)) $(if $(COV),-fprofile-arcs -ftest-coverage) $< -o $@

.PHONY: run-test-%
.SECONDARY:
Expand Down

0 comments on commit bef3b09

Please sign in to comment.