summaryrefslogtreecommitdiffstats
path: root/daemons/lvmetad/test.sh
blob: f937562bd1ba79d8d55c84d807e1619b53853714 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

export LD_LIBRARY_PATH="$1"

test -n "$2" && {
    rm -f /var/run/lvmetad.{socket,pid}
    chmod +rx lvmetad
    valgrind ./lvmetad -f &
    PID=$!
    sleep 1
    ./testclient
    kill $PID
    exit 0
}

sudo ./test.sh "$1" .