Upload Tizen:Base source
[framework/base/util-linux-ng.git] / tests / ts / mount / special
1 #!/bin/bash
2
3 #
4 # Copyright (C) 2007 Karel Zak <kzak@redhat.com>
5 #
6 # This file is part of util-linux-ng.
7 #
8 # This file is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2 of the License, or
11 # (at your option) any later version.
12 #
13 # This file is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 # GNU General Public License for more details.
17 #
18 TS_TOPDIR="$(dirname $0)/../.."
19 TS_DESC="call mount.<type>"
20 MOUNTER="/sbin/mount.mytest"
21
22 . $TS_TOPDIR/functions.sh
23 ts_init "$*"
24 ts_skip_nonroot
25
26 cat > $MOUNTER <<\EOF
27 #!/bin/bash
28 # This util-linux-ng regression test component
29 # It's safe to remove me...
30 #
31 echo "$0 called with \"$*\""
32 EOF
33 chmod +x $MOUNTER
34
35 $TS_CMD_MOUNT -v -v -v -t mytest  /foo /bar &> $TS_OUTPUT
36
37 rm -f $MOUNTER
38
39 ts_finalize
40