diff options
author | EuAndreh <eu@euandre.org> | 2021-08-05 18:07:21 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2021-08-05 18:07:21 -0300 |
commit | 8cb0207e09c301a02e21f5e8a395c7c958781f1b (patch) | |
tree | bb4ad55274e71bb2dc2bd4ed61958abf524df4ea /tests/dev-integration.sh | |
parent | Move tests/resources{ => /repositories}/repo* (diff) | |
download | gistatic-8cb0207e09c301a02e21f5e8a395c7c958781f1b.tar.gz gistatic-8cb0207e09c301a02e21f5e8a395c7c958781f1b.tar.xz |
tests/: Add integration tests, also test with Valgrind
Diffstat (limited to 'tests/dev-integration.sh')
-rwxr-xr-x | tests/dev-integration.sh | 16 |
1 files changed, 16 insertions, 0 deletions
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/* |