Skip to content

Commit 9f0b477

Browse files
committed
docs: update command for flake checks
1 parent b670097 commit 9f0b477

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

nix/docs/adding-tests.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,20 @@ and [prime.sql](../tests/prime.sql) (extensions may be enabled in either place.)
1111
## pg\_regress tests
1212

1313
pg\_regress tests are in [tests/sql](./../tests/sql/) with output in [tests/expected](./../tests/expected/).
14-
To create a new test, create a new SQL file in [tests/sql](./../tests/sql/) and then run:
14+
To create a new test, create a new SQL file in [tests/sql](./../tests/sql/)
15+
16+
Next, for each current major version of postgres, we run a "flake check" build one at a time.
17+
18+
Examples:
1519

1620
```
17-
nix flake check -L
21+
nix build .#checks.aarch64-darwin.psql_15 -L
22+
nix build .#checks.aarch64-darwin.psql_17 -L
23+
nix build .#checks.aarch64-darwin.psql_orioledb-17 -L
1824
```
1925

26+
(Note that the evaluation and nix build of the postgres packages "bundle" of each major version must succeed here, even though we run one version at a time. If you made changes to postgres or extensions, or wrappers those may rebuild here when you run this. Otherwise they will usually download the prebuilt version from the supabase nix binary cache)
27+
2028
Next, review the logs to identify where the test output was written
2129

2230
```

0 commit comments

Comments
 (0)