Skip to content

Commit 21338c8

Browse files
authored
refactor nixos tests to use our config, build, migrations, init etc (#2038)
* feat: custom module for nixos test of postgres * fix: include orioledb in vm test * feat: updating tests to use lib.nix supabase settings
1 parent f183a83 commit 21338c8

18 files changed

+2119
-2224
lines changed

nix/ext/tests/default.nix

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@ let
33
testsDir = ./.;
44
testFiles = builtins.attrNames (builtins.readDir testsDir);
55
nixFiles = builtins.filter (
6-
name: builtins.match ".*\\.nix$" name != null && name != "default.nix"
6+
name: builtins.match ".*\\.nix$" name != null && name != "default.nix" && name != "lib.nix"
77
) testFiles;
88
extTest =
99
extension_name:
1010
let
1111
pname = extension_name;
1212
inherit (pkgs) lib;
1313

14-
support_upgrade = if pname == "pg_repack" then false else true;
15-
run_pg_regress = if pname == "pg_repack" then false else true;
14+
support_upgrade = true;
15+
run_pg_regress = true;
1616

1717
installedExtension =
1818
postgresMajorVersion:
@@ -359,12 +359,10 @@ builtins.listToAttrs (
359359
"pg_jsonschema"
360360
"pg_net"
361361
"pg_partman"
362-
"pg_repack"
363362
"pg_stat_monitor"
364363
"pg_tle"
365364
"pgaudit"
366365
"pgtap"
367-
"postgis"
368366
"vector"
369367
"wal2json"
370368
"wrappers"

0 commit comments

Comments
 (0)