| 1 |
#!/bin/bash |
| 2 |
|
| 3 |
# Copyright (C) 2014 Ondrej Oprala <[email protected] |
| 4 |
|
| 5 |
TS_TOPDIR="${0%/*}/../.." |
| 6 |
TS_DESC="debugging" |
| 7 |
|
| 8 |
. "$TS_TOPDIR"/functions.sh |
| 9 |
ts_init "$*" |
| 10 |
|
| 11 |
TESTPROG="$TS_HELPER_LIBMOUNT_DEBUG" |
| 12 |
|
| 13 |
[ -x $TESTPROG ] || ts_skip "test not compiled" |
| 14 |
|
| 15 |
# CACHE | LOCKS |
| 16 |
ts_init_subtest "set-from-code" |
| 17 |
ts_run $TESTPROG 20 2>&1 | grep -o '0x.*' &> $TS_OUTPUT |
| 18 |
ts_finalize_subtest |
| 19 |
|
| 20 |
# CACHE | LOCKS |
| 21 |
ts_init_subtest "set-from-env-str" |
| 22 |
LIBMOUNT_DEBUG=cache,locks ts_run $TESTPROG 2>&1 | grep -o '0x.*' &> $TS_OUTPUT |
| 23 |
ts_finalize_subtest |
| 24 |
|
| 25 |
# CACHE | LOCKS |
| 26 |
ts_init_subtest "set-from-env-int" |
| 27 |
LIBMOUNT_DEBUG=20 ts_run $TESTPROG 2>&1 | grep -o '0x.*' &> $TS_OUTPUT |
| 28 |
ts_finalize_subtest |
| 29 |
|
| 30 |
ts_finalize |