Skip to content

Commit f794309

Browse files
committed
multiboot.c: add multiboot unit test
1 parent 499ed3b commit f794309

File tree

2 files changed

+763
-1
lines changed

2 files changed

+763
-1
lines changed

tools/unit-tests/Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ TESTS:=unit-parser unit-extflash unit-string unit-spi-flash unit-aes128 \
2929
unit-aes256 unit-chacha20 unit-pci unit-mock-state unit-sectorflags \
3030
unit-image unit-nvm unit-nvm-flagshome unit-enc-nvm \
3131
unit-enc-nvm-flagshome unit-delta unit-update-flash \
32-
unit-update-flash-enc unit-update-ram unit-pkcs11_store unit-disk
32+
unit-update-flash-enc unit-update-ram unit-pkcs11_store unit-disk \
33+
unit-multiboot
3334

3435
all: $(TESTS)
3536

@@ -165,6 +166,9 @@ gpt-sfdisk-test.h:
165166
unit-disk: unit-disk.c gpt-sfdisk-test.h
166167
gcc -o $@ $< $(CFLAGS) $(LDFLAGS)
167168

169+
unit-multiboot: unit-multiboot.c
170+
gcc -o $@ unit-multiboot.c $(CFLAGS) $(LDFLAGS)
171+
168172
%.o:%.c
169173
gcc -c -o $@ $^ $(CFLAGS)
170174

0 commit comments

Comments
 (0)