Mercurial > gemma
comparison schema/run_tests.sh @ 222:cfde876fbaf9
Try to DROP ROLEs before creating them and keep test results
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Wed, 25 Jul 2018 11:59:10 +0200 |
parents | 88d21c29cf04 |
children | e9382dccb331 |
comparison
equal
deleted
inserted
replaced
221:696c19abe869 | 222:cfde876fbaf9 |
---|---|
9 -f auth.sql \ | 9 -f auth.sql \ |
10 -f manage_users.sql | 10 -f manage_users.sql |
11 | 11 |
12 # Add test data, run tests and ROLLBACK to prevent test roles to stay | 12 # Add test data, run tests and ROLLBACK to prevent test roles to stay |
13 # in cluster, which would prevent tests from being repeatable | 13 # in cluster, which would prevent tests from being repeatable |
14 psql -qXv ON_ERROR_STOP= -v AUTOCOMMIT=off -d gemma_test \ | 14 psql -qXv ON_ERROR_STOP= -v -d gemma_test \ |
15 -c 'DROP ROLE IF EXISTS user_at, user_ro, admin_at, sys_admin1' \ | |
15 -f tap_tests_data.sql \ | 16 -f tap_tests_data.sql \ |
16 -c 'SELECT plan(23)' \ | 17 -c 'SELECT plan(23)' \ |
17 -f auth_tests.sql \ | 18 -f auth_tests.sql \ |
18 -f manage_users_tests.sql \ | 19 -f manage_users_tests.sql \ |
19 -c 'SELECT * FROM finish()' \ | 20 -c 'SELECT * FROM finish()' |
20 -c 'ROLLBACK' |