test: add "strict" JSON tests

Adapt an existing JSON parsing test suite from
https://github.com/nst/JSONTestSuite for SPA JSON.
This commit is contained in:
Pauli Virtanen 2024-03-24 20:05:52 +02:00
parent 11e20ef7a8
commit e63e8b8a37
3 changed files with 341 additions and 0 deletions

View file

@ -787,6 +787,7 @@ static void set_test_env(struct pwtest_context *ctx, struct pwtest_test *t)
replace_env(t, "ACP_PATHS_DIR", SOURCE_ROOT "/spa/plugins/alsa/mixer/paths");
replace_env(t, "ACP_PROFILES_DIR", SOURCE_ROOT "/spa/plugins/alsa/mixer/profile-sets");
replace_env(t, "PIPEWIRE_LOG_SYSTEMD", "false");
replace_env(t, "PWTEST_DATA_DIR", SOURCE_ROOT "/test/data");
}
static void close_pipes(int fds[_FD_LAST])