mirror of
https://github.com/brl/mutter.git
synced 2024-11-27 10:30:47 -05:00
24 lines
444 B
Bash
Executable File
24 lines
444 B
Bash
Executable File
#!/usr/bin/bash
|
|
|
|
set -e
|
|
|
|
WRAPPER="$1"
|
|
WRAPPER_ARGS="$2"
|
|
TEST_RESULT="$3"
|
|
|
|
export XDG_RUNTIME_DIR="/tmp/sub-runtime-dir-$UID"
|
|
export GSETTINGS_SCHEMA_DIR="$PWD/build/data"
|
|
export G_SLICE="always-malloc"
|
|
export MALLOC_CHECK_="3"
|
|
export NO_AT_BRIDGE="1"
|
|
export MALLOC_PERTURB_="123"
|
|
|
|
mkdir -p -m 700 $XDG_RUNTIME_DIR
|
|
|
|
glib-compile-schemas $GSETTINGS_SCHEMA_DIR
|
|
|
|
status=0
|
|
"$WRAPPER" $WRAPPER_ARGS "${@:4}" || status=$?
|
|
|
|
echo $status > $TEST_RESULT
|