| 1 |
#!/bin/bash |
| 2 |
|
| 3 |
# This file is part of util-linux. |
| 4 |
# |
| 5 |
# This file is free software; you can redistribute it and/or modify |
| 6 |
# it under the terms of the GNU General Public License as published by |
| 7 |
# the Free Software Foundation; either version 2 of the License, or |
| 8 |
# (at your option) any later version. |
| 9 |
# |
| 10 |
# This file is distributed in the hope that it will be useful, |
| 11 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 |
# GNU General Public License for more details. |
| 14 |
|
| 15 |
TS_TOPDIR="${0%/*}/../.." |
| 16 |
TS_DESC="test_mount_fuzz" |
| 17 |
|
| 18 |
. "$TS_TOPDIR"/functions.sh |
| 19 |
ts_init "$*" |
| 20 |
|
| 21 |
ts_check_test_command "$TS_HELPER_LIBMOUNT_FUZZ" |
| 22 |
|
| 23 |
ASAN_RT_PATH="$(ts_get_asan_rt_path "$TS_HELPER_LIBMOUNT_FUZZ")" |
| 24 |
[ -n "$ASAN_RT_PATH" ] && export LD_PRELOAD="$ASAN_RT_PATH:$LD_PRELOAD" |
| 25 |
|
| 26 |
mkdir -p ${TS_OUTPUT}_workdir |
| 27 |
ts_run $TS_HELPER_LIBMOUNT_FUZZ ${TS_OUTPUT}_workdir ${TS_SCRIPT}_files -max_total_time=10 >$TS_OUTPUT 2>$TS_ERRLOG |
| 28 |
|
| 29 |
ts_finalize |