summaryrefslogtreecommitdiff
path: root/stress
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-10-02 08:35:14 +0300
committerLars Wirzenius <liw@liw.fi>2020-10-02 12:01:22 +0300
commit3c9179418efdd8fdd0a7628ee13d4bac63e70eea (patch)
treeab052cbf3a70a59d0e12d3c99f4bea549cacfc9c /stress
parentc45009435b2f5bf033fa1ca96e5709df976a2602 (diff)
downloadsubplot-3c9179418efdd8fdd0a7628ee13d4bac63e70eea.tar.gz
fix(stress): give -t to codegen
codegen uses templates from /usr/share/subplot by default, but we want to use the ones in the source tree. Not only is that more tidy, it means ./stress can be run without having Subplot installed.
Diffstat (limited to 'stress')
-rwxr-xr-xstress12
1 files changed, 10 insertions, 2 deletions
diff --git a/stress b/stress
index e464496..e70984a 100755
--- a/stress
+++ b/stress
@@ -17,15 +17,23 @@ ts() {
echo "$now - $start" | bc
}
+docgen() {
+ cargo run -q --bin sp-docgen -- "$1" -o "$2"
+}
+
+codegen() {
+ cargo run -q --bin sp-codegen -- "$1" -o "$2" -t templates
+}
+
start="$(ts 0)"
./stressgen s "$NSCEN" "$NSTEP"
gen="$(ts "$start")"
-cargo run -q --bin sp-docgen -- s.md -o s.pdf
+docgen s.md s.pdf
doc="$(ts "$start")"
-cargo run -q --bin sp-codegen -- s.md -o test.py
+codegen s.md test.py
code="$(ts "$start")"
python3 ./test.py > /dev/null