aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-12-05 03:12:51 -0500
committerJesse Luehrs <doy@tozt.net>2019-12-06 21:26:07 -0500
commit820acef50154e1fbfd1559d4113c0a83505a9612 (patch)
treecadf92a70b2309813da6822b6b299a59ab035d32 /bin
parent9dffd607455fac176a2eece2571d3c49901175f4 (diff)
downloadvt100-rust-820acef50154e1fbfd1559d4113c0a83505a9612.tar.gz
vt100-rust-820acef50154e1fbfd1559d4113c0a83505a9612.zip
add a mechanism for autogenerating test fixtures
Diffstat (limited to 'bin')
-rwxr-xr-xbin/regen-fixtures6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/regen-fixtures b/bin/regen-fixtures
new file mode 100755
index 0000000..88384a1
--- /dev/null
+++ b/bin/regen-fixtures
@@ -0,0 +1,6 @@
+#!/bin/sh
+set -eu
+
+for file in tests/data/fixtures/*.in; do
+ cargo run --example generate_fixture "$(basename "$file" .in)"
+done