gplugin/gplugin

Add runtime dependencies to tests

7 months ago, Elliott Sales de Andrade
b493e1ee4fbd
Add runtime dependencies to tests

`meson test` only builds what's required to run a test. If you start with a clean build directory (or run `ninja clean`), then about half the tests fail because the required plugins or even the loaders themselves have not yet been built.

This adds the proper dependencies so that all requirements are built before testing.

The name of the macro used to pass through the build directory has also been made consistent, so that it could be automatically generated.

Testing Done:
`ninja clean` and then `meson test`, and all tests now pass.
Also `ninja clean` and `meson test "test name"` for all test names, and each individual test passes.

Reviewed at https://reviews.imfreedom.org/r/2662/
The following individuals have contributed to this project.
Ankit Vani <a@nevitus.org>
EionRobb <eion@robbmob.com>
Elliott Sales de Andrade <quantum.analyst@gmail.com>
Gary Kramlich <grim@reaperworld.com>
Jason Scherer <schereja@gmail.com>
John Bailey <rekkanoryo@rekkanoryo.org>
Mike Ruprecht <cmaiku@gmail.com>
Olaf Hering <olaf@aepfle.de>
Paul Jimenez <pj@place.org>
Richard Laager <rlaager@pidgin.im>
Sorvival <sorvival@tutanota.com>
ivanhoe <ivanhoe@fiscari.de>