Upload Tizen:Base source
[framework/base/util-linux-ng.git] / tests / ts / mount / noncanonical
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="non canonical path"
20
21 . $TS_TOPDIR/functions.sh
22 ts_init "$*"
23 ts_skip_nonroot
24
25 [ ! -e "/etc" ] && ts_skip "/etc not such file of directory"
26
27 # Don't canonicalize SPEC for cifs, nfs, smbfs, ...
28 $TS_CMD_MOUNT -v -v -v -f -i -n -t cifs //etc /foo | grep "spec:" >> $TS_OUTPUT 2>&1
29
30 # Canonicalize when FS type undefined and the SPEC exists
31 $TS_CMD_MOUNT -v -v -v -f -i -n  //etc /foo | grep "spec:" >> $TS_OUTPUT 2>&1
32
33 ts_finalize
34