parallelize tests run (they run in different nix sandboxes)
Some checks are pending
ci/woodpecker/push/debug Pipeline is pending
ci/woodpecker/pr/debug Pipeline is pending

This commit is contained in:
Alex 2025-02-02 21:03:55 +01:00
parent 32305cd2db
commit 63074c3cb3
2 changed files with 8 additions and 8 deletions

View file

@ -24,8 +24,7 @@ steps:
GARAGE_TEST_INTEGRATION_EXE: result-bin/bin/garage
GARAGE_TEST_INTEGRATION_PATH: tmp-garage-integration
commands:
- nix-build -j4 --attr flakePackages.tests-lmdb
- nix-build -j4 --attr flakePackages.tests-sqlite
- nix-build -j4 --attr flakePackages.tests
- rm result
- name: integration tests

View file

@ -45,12 +45,13 @@
dev = packageFor null false;
# test = cargo test
tests = testWith {};
tests-lmdb = testWith {
GARAGE_TEST_INTEGRATION_DB_ENGINE = "lmdb";
};
tests-sqlite = testWith {
GARAGE_TEST_INTEGRATION_DB_ENGINE = "sqlite";
tests = pkgs.symlinkJoin {
name = "garage-tests-multi";
paths = map
(dbEngine: testWith {
GARAGE_TEST_INTEGRATION_DB_ENGINE = dbEngine;
})
[ "lmdb" "sqlite" ];
};
};