Skip to content

Commit

Permalink
Merge pull request #310 from 00xc/makefile
Browse files Browse the repository at this point in the history
Makefile: respect `CARGO_ARGS` when running tests
  • Loading branch information
joergroedel authored Mar 28, 2024
2 parents cee4036 + c163d25 commit 460e5be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ bin/coconut-test-qemu.igvm: $(IGVMBUILDER) $(IGVMMEASURE) bin/test-kernel.elf b
$(IGVMMEASURE) $@

test:
cargo test --workspace --target=x86_64-unknown-linux-gnu
cargo test ${CARGO_ARGS} --workspace --target=x86_64-unknown-linux-gnu

test-in-svsm: utils/cbit bin/coconut-test-qemu.igvm
./scripts/test-in-svsm.sh
Expand Down Expand Up @@ -102,7 +102,7 @@ bin/svsm-kernel.elf: bin
objcopy -O elf64-x86-64 --strip-unneeded ${SVSM_KERNEL_ELF} $@

bin/test-kernel.elf: bin
LINK_TEST=1 cargo +nightly test -p svsm --config 'target.x86_64-unknown-none.runner=["sh", "-c", "cp $$0 ../${TEST_KERNEL_ELF}"]'
LINK_TEST=1 cargo +nightly test ${CARGO_ARGS} -p svsm --config 'target.x86_64-unknown-none.runner=["sh", "-c", "cp $$0 ../${TEST_KERNEL_ELF}"]'
objcopy -O elf64-x86-64 --strip-unneeded ${TEST_KERNEL_ELF} bin/test-kernel.elf

${FS_BIN}: bin
Expand Down

0 comments on commit 460e5be

Please sign in to comment.