From 23b9589a3bc363bba772ca7de75084ca403529fe Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 18 May 2021 01:57:36 +0100 Subject: [PATCH] apitest: Test new big bundle Signed-off-by: Ian Jackson --- Makefile | 1 + apitest/at-bundles.rs | 8 ++++++++ 2 files changed, 9 insertions(+) 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)] -- 2.30.2