Skip to content
Snippets Groups Projects
Commit f72a8892 authored by Simon McVittie's avatar Simon McVittie
Browse files

apparmor-tumbler: allow running from the source tree


We need the compiled LD_PRELOAD hack from the installed tree, but
the rest can come from the source, allowing for quicker test/fix
cycles.

Reviewed-by: default avatarPhilip Withnall <philip.withnall@collabora.co.uk>
Signed-off-by: default avatarSimon McVittie <simon.mcvittie@collabora.co.uk>
Differential Revision: https://phabricator.apertis.org/D3477
parent 6d57a062
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
# vim: tw=0
TEST_DIR="${TEST_DIR:-/usr/lib/apertis-tests/apparmor/tumbler}"
TEST_DIR=$(cd $(dirname $0); pwd; cd - &>/dev/null)
# We want to use the pre-existing session bus.
export LAUNCH_DBUS="no"
......
......@@ -10,10 +10,12 @@ fi
export APERTIS_TESTS_NAME_PREFIX="${1}_"
TEST_DIR=$(cd $(dirname $0); pwd; cd - &>/dev/null)
if [[ $1 == "malicious" ]]; then
LD_PRELOAD="/usr/lib/apertis-tests/apparmor/tumbler/libtumbler-malicious-override.so" \
/usr/share/chaiwala-tests/tumbler/automated/run-test.sh
$TEST_DIR/../../tumbler/automated/run-test.sh
else
/usr/share/chaiwala-tests/tumbler/automated/run-test.sh
$TEST_DIR/../../tumbler/automated/run-test.sh
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment