chiark / gitweb /
apitest: Test new big bundle
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 18 May 2021 00:57:36 +0000 (01:57 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 18 May 2021 01:25:37 +0000 (02:25 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Makefile
apitest/at-bundles.rs

index 70e96bf51b71d5741180e1888a8c375b8069cd19..3328a70cc21ed920128f6fcbefe8670c3763f052 100644 (file)
--- 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) \
index 10c4cecaa2658db20a9fcee10a38546ffa58406b..e56bcd0903df23fa390ace461f6edef338a872c3 100644 (file)
@@ -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)]