diff options
author | Lars Wirzenius <liw@liw.fi> | 2020-10-02 08:35:14 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2020-10-02 12:01:22 +0300 |
commit | 3c9179418efdd8fdd0a7628ee13d4bac63e70eea (patch) | |
tree | ab052cbf3a70a59d0e12d3c99f4bea549cacfc9c /stress | |
parent | c45009435b2f5bf033fa1ca96e5709df976a2602 (diff) | |
download | subplot-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-x | stress | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -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 |