summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2024-01-13 19:21:04 +0200
committerLars Wirzenius <liw@liw.fi>2024-01-13 19:21:04 +0200
commit742ad488bf780df4e480c71c97d029e93722f6d1 (patch)
treea3a4a94de384425591fb4555fe9f9214a8c10968
parent1f75fe4477d2a9fefb0c9ae703399e2dcbd05e36 (diff)
downloadobnam-benchmark-742ad488bf780df4e480c71c97d029e93722f6d1.tar.gz
chore: use a .subplot file instead of embedded YAML
Subplot no longer supports the embedded YAML. Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
-rwxr-xr-xcheck5
-rw-r--r--obnam-benchmark.md16
-rw-r--r--obnam-benchmark.subplot14
3 files changed, 16 insertions, 19 deletions
diff --git a/check b/check
index cc8ef6c..c23d849 100755
--- a/check
+++ b/check
@@ -5,9 +5,8 @@ set -euo pipefail
cargo clippy -q --all-targets -- -D clippy::all
cargo build --all-targets -q
chronic cargo test -q
-subplot docgen obnam-benchmark.md -o obnam-benchmark.html
-subplot docgen obnam-benchmark.md -o obnam-benchmark.pdf
-subplot codegen obnam-benchmark.md -o test.py
+subplot docgen obnam-benchmark.subplot -o obnam-benchmark.html
+subplot codegen obnam-benchmark.subplot -o test.py
chronic python3 test.py --log test.log "$@"
cargo fmt -- --check
echo A-OK
diff --git a/obnam-benchmark.md b/obnam-benchmark.md
index 5fc3164..d68b695 100644
--- a/obnam-benchmark.md
+++ b/obnam-benchmark.md
@@ -1,19 +1,3 @@
----
-title: "`obnam-benchmark`---tool to run benchmarks"
-author: "The Obnam project"
-documentclass: report
-bindings:
-- subplot/benchmark.yaml
-- lib/files.yaml
-- lib/runcmd.yaml
-impls:
- python:
- - subplot/benchmark.py
- - lib/files.py
- - lib/runcmd.py
-...
-
-
# Introduction
Obnam is a backup program. It aims to have good performance. To
diff --git a/obnam-benchmark.subplot b/obnam-benchmark.subplot
new file mode 100644
index 0000000..b0da175
--- /dev/null
+++ b/obnam-benchmark.subplot
@@ -0,0 +1,14 @@
+title: "`obnam-benchmark`---tool to run benchmarks"
+authors:
+ - The Obnam project
+markdowns:
+ - obnam-benchmark.md
+bindings:
+- subplot/benchmark.yaml
+- lib/files.yaml
+- lib/runcmd.yaml
+impls:
+ python:
+ - subplot/benchmark.py
+ - lib/files.py
+ - lib/runcmd.py