Skip to content

Commit

Permalink
fix: voucher naming, add test target to Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
mpolitzer committed Apr 17, 2024
1 parent ae5c8fd commit 4b4c729
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@ env:
@echo LINUX_VERSION=$(LINUX_VERSION)
@echo LINUX_HEADERS_URLPATH=$(LINUX_HEADERS_URLPATH)

test:
make -C sys-utils/libcmt/ test
cd rollup-http/rollup-http-server && \
MOCK_BUILD=true cargo test -- --show-output --test-threads=1

setup:
@docker run --privileged --rm linuxkit/binfmt:bebbae0c1100ebf7bf2ad4dfb9dfd719cf0ef132

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,8 @@ async fn test_write_voucher(
rollup_http_client::client::send_voucher(&context.address, test_voucher_02.clone()).await;
context.server_handle.stop(true).await;

check_voucher_or_fail(test_voucher_02, "none.output-0.bin");
std::fs::remove_file("none.output-0.bin")?;
check_voucher_or_fail(test_voucher_02, "none.output-1.bin");
std::fs::remove_file("none.output-1.bin")?;

Ok(())
}
Expand Down

0 comments on commit 4b4c729

Please sign in to comment.