build/tests: Miscellaneous fixes
-
tests/capture-libs: Use run_ok instead of system to run rm -fr
Arch Linux's perl complains that system() is an undefined function. I'm not sure why, because it's a standard library facility (and unlike C system(), it takes a list of arguments rather than using the shell), but in any case it's easy to avoid.
-
Distinguish between enabling the library and enabling shared libraries
Some tests for capsule-capture-libs will need to compile shared libraries, even if libcapsule itself is not built.