• Emanuele Aina's avatar
    tests: Fix `make check` on v2019 · 2eeab6ed
    Emanuele Aina authored
    On v2019 `libtool` now detects it doesn't need the fast-install mode and thus
    leaves `relink_command` empty in the executable wrappers it generates.
    
    Unfortunately, to avoid conflicts with the system AppArmor profile, the
    tests using `canterbury-update-component-index` relied on the wrapper
    triggering a relink and thus re-generating the binaries in the right place
    when moved around.
    
    Since `relink_command` is now empty this no longer happens and the tests fail
    as they can't find the real executable to launch:
    
        $ ./component-index.t
        /component-index/get-bundle: /tmp/canterbury.N9IZ0Z/canterbury-update-component-index: error: '/tmp/canterbury.N9IZ0Z/.libs/canterbury-update-component-index' does not exist
        This script is just a wrapper for canterbury-update-component-index.
        See the libtool documentation for more information.
        **
        Canterbury:ERROR:tests/common.c:132:tests_temp_component_index_update: assertion failed (error == NULL): Child process exited with code 1 (g-spawn-exit-error-quark, 1)
    
    Rather than relying on this implict behaviour, let's also copy the `.libs`
    folder containing the real built binaries.
    Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
    2eeab6ed
Name
Last commit
Last update
..
Applications Loading commit data...
data Loading commit data...
scripts Loading commit data...
usr Loading commit data...
activatable-helper.c Loading commit data...
activatable-the-hard-way.c Loading commit data...
activate.c Loading commit data...
activation.c Loading commit data...
agent-helper.c Loading commit data...
agents.c Loading commit data...
apparmor-unit.c Loading commit data...
canterbury-tests.aaprofile.in Loading commit data...
cby-inspect.py Loading commit data...
common.c Loading commit data...
common.h Loading commit data...
component-index.c Loading commit data...
dconf-helper.c Loading commit data...
dconf.c Loading commit data...
entry-point-index.c Loading commit data...
example-request-manager-main.c Loading commit data...
example-request-manager.c Loading commit data...
example-request-manager.h Loading commit data...
example-request-manager.xml Loading commit data...
example-requester.c Loading commit data...
launch-preferences-helper.c Loading commit data...
launch-preferences.c Loading commit data...
make-bundle.py Loading commit data...
not-agent.c Loading commit data...
postinst-prerm.c Loading commit data...
postinst-test-helper.c Loading commit data...
prerm-apparmor-helper.c Loading commit data...
process-info-helper.c Loading commit data...
process-info.c Loading commit data...
process-info.xml Loading commit data...
reluctant-to-exit-helper.c Loading commit data...
request-manager.c Loading commit data...
service-manager.c Loading commit data...
systemd-mock-run.py Loading commit data...
terminate.c Loading commit data...
update-component-index.sh Loading commit data...