Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/pullrequest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,10 @@ jobs:
make ARCH=${{ matrix.makearch }} PREFIX=/usr DESTDIR=/destdir EFIDIR=test ENABLE_SHIM_HASH=true install
echo 'results:'
find /destdir -type f
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

build-pull-request-intel-compile-commands-json:
runs-on: ubuntu-24.04
Expand Down
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,7 @@ fuzz fuzz-clean fuzz-coverage fuzz-lto :
EFI_INCLUDES="$(EFI_INCLUDES)" \
fuzz-clean $@

test test-clean test-coverage test-lto : | clean-test-results
test test-clean test-coverage test-lto : generated_sbat_var_defs.h
@make -f $(TOPDIR)/include/test.mk \
COMPILER="$(COMPILER)" \
Expand All @@ -491,6 +492,7 @@ $(patsubst %.c,%,$(wildcard fuzz-*.c)) :
@make -f $(TOPDIR)/include/fuzz.mk EFI_INCLUDES="$(EFI_INCLUDES)" ARCH_DEFINES="$(ARCH_DEFINES)" $@

$(patsubst %.c,%,$(wildcard test-*.c)) :
@make clean-test-results
@make -f $(TOPDIR)/include/test.mk EFI_INCLUDES="$(EFI_INCLUDES)" ARCH_DEFINES="$(ARCH_DEFINES)" $@

clean-fuzz-objs:
Expand Down Expand Up @@ -540,6 +542,9 @@ clean-cryptlib-objs:

clean: clean-shim-objs clean-fuzz-objs clean-test-objs clean-gnu-efi clean-openssl-objs clean-cryptlib-objs clean-lib-objs

clean-test-results:
@rm -vf *.gcda *.gcno *.gcov

GITTAG = $(shell echo $(VERSION) | sed 's/~/-/g')

test-archive:
Expand Down
4 changes: 3 additions & 1 deletion include/test.mk
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ CFLAGS = $(OPTIMIZATIONS) -std=gnu11 \
-fno-builtin \
-rdynamic \
-fno-inline \
$(if $(findstring gcc,$(CC)),-fprofile-arcs) \
$(if $(findstring gcc,$(CC)),-ftest-coverage) \
$(if $(findstring gcc,$(CC)),-fno-eliminate-unused-debug-types) \
$(if $(findstring gcc,$(CC)),-fno-eliminate-unused-debug-symbols) \
-gpubnames \
Expand Down Expand Up @@ -130,7 +132,7 @@ test-coverage : $(tests)

test-clean :
@rm -vf test-random.h libefi-test.a
@rm -vf *.gcda *.gcno *.gcov vgcore.*
@rm -vf vgcore.*

clean : test-clean

Expand Down
Loading