summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-11-12 16:24:22 +0200
committerLars Wirzenius <liw@liw.fi>2020-11-13 09:35:19 +0200
commit4737919229d6785a08bbf4b54c12c20b20359e7b (patch)
treea07bfe68cf62b64740a64f5c24f9ae541f14f8db
parent39e23fb3b16cb6777d8e63e9e2dc59ab6f908d67 (diff)
downloadobnam2-4737919229d6785a08bbf4b54c12c20b20359e7b.tar.gz
test: update check to format subplot and generate&run test program
Also drop now-obsolete format.sh.
-rwxr-xr-xcheck7
-rwxr-xr-xformat.sh8
2 files changed, 6 insertions, 9 deletions
diff --git a/check b/check
index 4196811..0dc71cc 100755
--- a/check
+++ b/check
@@ -21,6 +21,11 @@ cargo clippy $quiet
cargo fmt -- --check
$hideok cargo test $quiet
-./format.sh
+sp-docgen obnam.md -o obnam.html
+sp-docgen obnam.md -o obnam.pdf
+
+sp-codegen obnam.md -o test.py
+rm -f test.log
+$hideok python3 test.py --log test.log "$@"
echo "Everything seems to be in order."
diff --git a/format.sh b/format.sh
deleted file mode 100755
index e7f3c70..0000000
--- a/format.sh
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/bin/sh
-#
-# Build docs.
-
-set -eu
-
-sp-docgen obnam.md -o obnam.html
-sp-docgen obnam.md -o obnam.pdf