From 8cb0207e09c301a02e21f5e8a395c7c958781f1b Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Thu, 5 Aug 2021 18:07:21 -0300 Subject: tests/: Add integration tests, also test with Valgrind --- tests/dev-integration.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 tests/dev-integration.sh (limited to 'tests/dev-integration.sh') diff --git a/tests/dev-integration.sh b/tests/dev-integration.sh new file mode 100755 index 0000000..a82ce14 --- /dev/null +++ b/tests/dev-integration.sh @@ -0,0 +1,16 @@ +#!/bin/sh +set -eu + +. tests/lib.sh + +VALGRIND_FLAGS=' +--show-error-list=yes +--show-leak-kinds=all +--leak-check=full +--track-origins=yes +--error-exitcode=1 +' + +valgrind $VALGRIND_FLAGS ./src/gistatic.t +valgrind $VALGRIND_FLAGS ./src/gistatic -o `mkdtemp` -u 'https://example.com' tests/resources/repositories/repo-1 +valgrind $VALGRIND_FLAGS ./src/gistatic -o `mkdtemp` -i tests/resources/repositories/* -- cgit v1.2.3