aboutsummaryrefslogtreecommitdiff
path: root/tests/build-sample.sh
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-08-19 15:16:06 -0300
committerEuAndreh <eu@euandre.org>2021-08-19 15:16:06 -0300
commite51c65ff549829fe4360872b2361110ec33857d0 (patch)
tree132a1cbc9665babd21c2d2c5846844432906e956 /tests/build-sample.sh
parenttests/assert-catgets.sh: Mark as executable (diff)
downloadgistatic-e51c65ff549829fe4360872b2361110ec33857d0.tar.gz
gistatic-e51c65ff549829fe4360872b2361110ec33857d0.tar.xz
tests/build-sample.sh: Add, to be included in the "check" target
Diffstat (limited to 'tests/build-sample.sh')
-rwxr-xr-xtests/build-sample.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/build-sample.sh b/tests/build-sample.sh
new file mode 100755
index 0000000..ca5ae0d
--- /dev/null
+++ b/tests/build-sample.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+set -eu
+
+./src/gistatic -i -o tmp/ tests/resources/repositories/*
+for r in tests/resources/repositories/*; do
+ NAME="$(basename "$r")"
+ mkdir -p "tmp/$NAME"
+ ./src/gistatic -u "https://example.com/$NAME" -o "tmp/$NAME" "$r"
+done