]> source.dussan.org Git - rspamd.git/commit
[Minor] test: remove hard-coded build directory
authorPeter Wu <peter@lekensteyn.nl>
Tue, 21 Jan 2020 02:21:31 +0000 (02:21 +0000)
committerPeter Wu <peter@lekensteyn.nl>
Tue, 21 Jan 2020 02:21:31 +0000 (02:21 +0000)
commitd498196712c209fdcbd92f65c0b47ff26fc6c009
treec29e3155fe89dc3451352abb0796149731d13ea9
parent425bb31e1dd095e16cdc463a636a78193e6c86b5
[Minor] test: remove hard-coded build directory

* Reproducible build: avoid defining the BUILDROOT macro and avoid
  embedding the build directory in the test image. Instead rely on the
  test files being present next to the executable.
* I considered using g_test_build_filename, available since GLib 2.38
  (available on all supported platforms, RHEL 7, Debian, Ubuntu, etc.),
  but decided against it because it would require setting the
  G_TEST_SRCDIR or G_TEST_BUILDDIR environment variables. Therefore this
  patch simply parses argv0 directly.
config.h.in
test/rspamd_lua_pcall_vs_resume_test.c
test/rspamd_lua_test.c
test/rspamd_test_suite.c