Skip to content

Commit bbc89f5

Browse files
committed
Try TPC-DS test
1 parent 957d83f commit bbc89f5

File tree

7 files changed

+4897
-17
lines changed

7 files changed

+4897
-17
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ pg_query_state--*.sql
99
cscope.out
1010
tags
1111
Dockerfile
12+
tmp_stress
13+

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ env:
2626
- PG_VERSION=10
2727
- PG_VERSION=9.6 LEVEL=hardcore
2828
- PG_VERSION=9.6
29+
- PG_VERSION=12 LEVEL=stress
2930

3031
matrix:
3132
allow_failures:

Dockerfile.tmpl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM postgres:${PG_VERSION}-alpine
22

33
# Install dependencies
44
RUN apk add --no-cache \
5-
openssl curl \
5+
openssl curl git \
66
perl perl-ipc-run \
77
make musl-dev gcc bison flex coreutils \
88
zlib-dev libedit-dev \
@@ -29,7 +29,6 @@ RUN chown postgres:postgres ${PGDATA} && \
2929
chmod a+rwx /usr/local/share/postgresql/extension
3030

3131
COPY run_tests.sh /run.sh
32-
COPY tests/requirements.txt /requirements.txt
3332
RUN chmod 755 /run.sh
3433

3534
ADD . /pg/testdir

run_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ if [ -f regression.diffs ]; then cat regression.diffs; fi
144144
# run python tests
145145
set +x -e
146146
python3 -m venv /tmp/env && source /tmp/env/bin/activate &&
147-
pip install -r /requirements.txt
147+
pip install -r tests/requirements.txt
148148
set -e #exit virtualenv with error code
149149
python tests/pg_qs_test_runner.py --port $PGPORT
150150
deactivate

tests/prepare_stress.sh

100644100755
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env sh
2+
23
mkdir -p tmp_stress
34
cd tmp_stress
45
rm -rf ./*
@@ -8,10 +9,10 @@ cd tpcds-kit/tools
89
make -s
910

1011
#Generate data
11-
./dsdgen -FORCE -VERBOSE
12+
./dsdgen -FORCE -VERBOSE -SCALE 1
1213

1314
#Prepare data
14-
mkdir tables -p
15+
mkdir -p tables
1516
for i in `ls *.dat`; do
1617
echo "Preparing file " $i
1718
sed 's/|$//' $i > tables/$i
@@ -22,4 +23,5 @@ done
2223
-INPUT ../query_templates/templates.lst \
2324
-VERBOSE Y \
2425
-QUALIFY Y \
26+
-SCALE 1 \
2527
-DIALECT netezza

0 commit comments

Comments
 (0)