From: Ian Jackson Date: Tue, 18 May 2021 00:57:36 +0000 (+0100) Subject: apitest: Test new big bundle X-Git-Tag: otter-0.6.0~162 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=23b9589a3bc363bba772ca7de75084ca403529fe;p=otter.git apitest: Test new big bundle Signed-off-by: Ian Jackson --- diff --git a/Makefile b/Makefile index 70e96bf5..3328a70c 100644 --- a/Makefile +++ b/Makefile @@ -376,6 +376,7 @@ RUNTEST_DEPS = apitest/run1 stamp/cargo.debug $(FILEASSETS) \ $(wildcard libraries/*.toml) $(LIBRARY_FILES) AT_DEPS = $(filter-out templates/script.js, $(RUNTEST_DEPS)) \ + examples/big-bundle.zip \ stamp/cargo-at.debug WDT_DEPS = $(RUNTEST_DEPS) \ diff --git a/apitest/at-bundles.rs b/apitest/at-bundles.rs index 10c4ceca..e56bcd09 100644 --- a/apitest/at-bundles.rs +++ b/apitest/at-bundles.rs @@ -13,11 +13,19 @@ impl Ctx { "test-bundle","lemon", "example-lemon","a lemon" )?; } + + #[throws(Explode)] + fn big(&mut self) { + self.upload_and_check_bundle( + "big-bundle","duped-example", "chess-purple-cannon", "a purple cannon" + )?; + } } #[throws(Explode)] fn tests(mut c: Ctx) { test!(c, "bundles", c.bundles() ?); + test!(c, "big", c.big() ?); } #[throws(Explode)]