From 3c9179418efdd8fdd0a7628ee13d4bac63e70eea Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Fri, 2 Oct 2020 08:35:14 +0300 Subject: 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. --- stress | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'stress') 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 -- cgit v1.2.1