Files
pgcat/.circleci/run_tests.sh
2022-02-10 11:11:56 -08:00

24 lines
527 B
Bash

#!/bin/bash
set -e
set -o xtrace
./target/debug/pgcat &
sleep 1
psql -h 127.0.0.1 -p 5432 -f tests/sharding/query_routing_setup.sql
# Setup PgBench
pgbench -i -h 127.0.0.1 -p 6432
# Run it
pgbench -h 127.0.0.1 -p 6432 -t 500 -c 2
psql -h 127.0.0.1 -p 6432 -f tests/sharding/query_routing_test_insert.sql
psql -h 127.0.0.1 -p 6432 -f tests/sharding/query_routing_test_select.sql
# psql -f tests/sharding/query_routing_test_validate.sql
psql -h 127.0.0.1 -p 6432 -f tests/sharding/query_routing_test_primary_replica.sql