Software /
code /
prosody
Comparison
spec/core_storagemanager_spec.lua @ 13244:2902c54f45a6
tests: Add hack to test only a single storage driver
Fixes that LuaDBI being unavailable makes these produce nothing but
endless stack overflows in luarocks.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 22 Jul 2023 16:20:36 +0200 |
parent | 13243:c5ccdfbbe9c1 |
comparison
equal
deleted
inserted
replaced
13243:c5ccdfbbe9c1 | 13244:2902c54f45a6 |
---|---|
32 storage = "sql"; | 32 storage = "sql"; |
33 sql = { driver = "PostgreSQL", database = "prosody", username = "prosody", password = "secret", host = "localhost" }; | 33 sql = { driver = "PostgreSQL", database = "prosody", username = "prosody", password = "secret", host = "localhost" }; |
34 }; | 34 }; |
35 }; | 35 }; |
36 | 36 |
37 local test_only_driver = os.getenv "PROSODY_TEST_ONLY_STORAGE"; | |
38 if test_only_driver then | |
39 configs = { [test_only_driver] = configs[test_only_driver] } | |
40 end | |
41 | |
37 local test_host = "storage-unit-tests.invalid"; | 42 local test_host = "storage-unit-tests.invalid"; |
38 | 43 |
39 describe("storagemanager", function () | 44 describe("storagemanager", function () |
40 for backend, backend_config in pairs(configs) do | 45 for backend, backend_config in pairs(configs) do |
41 local tagged_name = "#"..backend; | 46 local tagged_name = "#"..backend; |