add test for spec idempotence
This commit is contained in:
committed by
Wolfgang Walther
parent
71fa87937b
commit
a52c114ff4
@@ -221,6 +221,10 @@ jobs:
|
|||||||
name: Run the spec tests against PostgreSQL 13
|
name: Run the spec tests against PostgreSQL 13
|
||||||
command: postgrest-test-spec-postgresql-13
|
command: postgrest-test-spec-postgresql-13
|
||||||
when: always
|
when: always
|
||||||
|
- run:
|
||||||
|
name: Check the spec tests for idempotence
|
||||||
|
command: postgrest-test-spec-idempotence
|
||||||
|
when: always
|
||||||
- run:
|
- run:
|
||||||
name: Run io tests
|
name: Run io tests
|
||||||
command: postgrest-test-io
|
command: postgrest-test-io
|
||||||
|
|||||||
@@ -44,6 +44,8 @@ let
|
|||||||
checkedShellScript "postgrest-check"
|
checkedShellScript "postgrest-check"
|
||||||
''
|
''
|
||||||
${tests}/bin/postgrest-test-spec-all
|
${tests}/bin/postgrest-test-spec-all
|
||||||
|
${tests}/bin/postgrest-test-spec-idempotence
|
||||||
|
${tests}/bin/postgrest-test-io
|
||||||
${style}/bin/postgrest-lint
|
${style}/bin/postgrest-lint
|
||||||
${style}/bin/postgrest-style-check
|
${style}/bin/postgrest-style-check
|
||||||
'';
|
'';
|
||||||
|
|||||||
+15
-1
@@ -24,7 +24,7 @@ let
|
|||||||
postgresql:
|
postgresql:
|
||||||
checkedShellScript "postgrest-test-${postgresql.name}"
|
checkedShellScript "postgrest-test-${postgresql.name}"
|
||||||
''
|
''
|
||||||
export PATH=${postgresql}/bin:${git}/bin:${runtimeShell}/bin:"$PATH"
|
export PATH=${postgresql}/bin:${git}/bin:"$PATH"
|
||||||
|
|
||||||
exec ${../test/with_tmp_db} "$@"
|
exec ${../test/with_tmp_db} "$@"
|
||||||
'';
|
'';
|
||||||
@@ -58,6 +58,19 @@ let
|
|||||||
EOF
|
EOF
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
testSpecIdempotence =
|
||||||
|
name: postgrestql:
|
||||||
|
checkedShellScript
|
||||||
|
name
|
||||||
|
''
|
||||||
|
env="$(cat ${postgrest.env})"
|
||||||
|
export PATH="$env/bin:$PATH"
|
||||||
|
|
||||||
|
${withTmpDb postgresql} ${runtimeShell} -c " \
|
||||||
|
${cabal-install}/bin/cabal v2-test ${devCabalOptions} && \
|
||||||
|
${cabal-install}/bin/cabal v2-test ${devCabalOptions}"
|
||||||
|
'';
|
||||||
|
|
||||||
# Create a `testSpec` for each PostgreSQL version that we want to test
|
# Create a `testSpec` for each PostgreSQL version that we want to test
|
||||||
# against.
|
# against.
|
||||||
testSpecVersions =
|
testSpecVersions =
|
||||||
@@ -123,6 +136,7 @@ buildEnv
|
|||||||
paths =
|
paths =
|
||||||
[
|
[
|
||||||
(testSpec "postgrest-test-spec" postgresql).bin
|
(testSpec "postgrest-test-spec" postgresql).bin
|
||||||
|
(testSpecIdempotence "postgrest-test-spec-idempotence" postgresql).bin
|
||||||
testSpecAllVersions.bin
|
testSpecAllVersions.bin
|
||||||
(testIO "postgrest-test-io" postgresql).bin
|
(testIO "postgrest-test-io" postgresql).bin
|
||||||
] ++ testSpecVersions;
|
] ++ testSpecVersions;
|
||||||
|
|||||||
Reference in New Issue
Block a user