-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathtest.sh
executable file
·24 lines (20 loc) · 1018 Bytes
/
test.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
testdir='/tmp/sqlite_fdw_test';
rm -rf "$testdir";
mkdir "$testdir";
cp -a sql/init_data/*.data "$testdir";
sqlite3 "$testdir/post.db" < sql/init_data/init_post.sql;
sqlite3 "$testdir/core.db" < sql/init_data/init_core.sql;
sqlite3 "$testdir/common.db" < sql/init_data/init.sql;
sqlite3 "$testdir/selectfunc.db" < sql/init_data/init_selectfunc.sql;
while (( "$#" )); do
export "$1";
shift;
done
[ "$ENABLE_GIS" == "1" ] && gispref='post' || gispref='no';
# full test sequence, you can put your own test sequence here
export REGRESS="extra/sqlite_fdw_post types/bitstring types/bool types/float4 types/float8 types/int4 types/int8 types/numeric types/${gispref}gis types/macaddr types/macaddr8 types/out_of_range types/timestamp types/uuid extra/join extra/limit extra/aggregates extra/prepare extra/select_having extra/select extra/insert extra/update extra/encodings sqlite_fdw type_${gispref}gis aggregate selectfunc";
make clean $1;
make $1;
make check $1 | tee make_check.out;
export REGRESS=;