diff --git a/nix/tests/expected/pgtap.out b/nix/tests/expected/pgtap.out new file mode 100644 index 000000000..272d8387d --- /dev/null +++ b/nix/tests/expected/pgtap.out @@ -0,0 +1,21 @@ +begin; +select plan(1); + plan +------ + 1..1 +(1 row) + +-- Run the tests. +select pass( 'My test passed, w00t!' ); + pass +------------------------------ + ok 1 - My test passed, w00t! +(1 row) + +-- Finish the tests and clean up. +select * from finish(); + finish +-------- +(0 rows) + +rollback; diff --git a/nix/tests/sql/pgtap.sql b/nix/tests/sql/pgtap.sql new file mode 100644 index 000000000..b99976a25 --- /dev/null +++ b/nix/tests/sql/pgtap.sql @@ -0,0 +1,11 @@ +begin; + +select plan(1); + +-- Run the tests. +select pass( 'My test passed, w00t!' ); + +-- Finish the tests and clean up. +select * from finish(); + +rollback;