From e51c65ff549829fe4360872b2361110ec33857d0 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Thu, 19 Aug 2021 15:16:06 -0300 Subject: tests/build-sample.sh: Add, to be included in the "check" target --- tests/build-sample.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 tests/build-sample.sh (limited to 'tests/build-sample.sh') 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 -- cgit v1.2.3