OILS / test / souffle-smoke.sh View on Github | oilshell.org

19 lines, 11 significant
1#!/usr/bin/env bash
2#
3# Run Souffle smoke test.
4
5set -o nounset
6set -o pipefail
7set -o errexit
8
9REPO_ROOT=$(cd "$(dirname $0)/.."; pwd)
10
11soil-run() {
12 ninja _bin/datalog/smoke-test
13 pushd $REPO_ROOT/_tmp
14 $REPO_ROOT/_bin/datalog/smoke-test
15 sort path.tsv | diff -u - $REPO_ROOT/deps/source.medo/souffle/path.expected.tsv
16 popd
17}
18
19"$@"