123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- #!/bin/sh
- #
- # Copyright (c) 2012 Nokia Corporation and/or its subsidiary(-ies).
- # All rights reserved.
- # This component and the accompanying materials are made available
- # under the terms of the License "Eclipse Public License v1.0"
- # which accompanies this distribution, and is available
- # at the URL "http://www.eclipse.org/legal/epl-v10.html".
- #
- # Initial Contributors:
- # Nokia Corporation - initial contribution.
- #
- # Contributors:
- #
- # Description:
- #
- # Test script for caseless fuse filesystem
- #
- . ./test_common.sh
- export TESTDIR=$MOUNTPOINT
- test_mkdir() {
- doit "mkdir" <<EOT3
- mkdir "$TESTDIR"/mkdir &&
- ls "$TESTDIR"/mkdir
- EOT3
- }
- test_touchfile() {
- doit "touchfile" <<EOT4
- touch "$TESTDIR"/touchfile &&
- ls "$TESTDIR"/touchfile
- EOT4
- }
- test_filecase() {
- doit "filecase" <<EOT5
- touch "$TESTDIR"/filecase &&
- ls "$TESTDIR"/fileCase
- EOT5
- }
- test_slashconv() {
- doit "slashconv" <<EOT5
- mkdir "$TESTDIR"/conv &&
- mkdir "$TESTDIR"/conv/sub &&
- ls "$TESTDIR/conv\\\\sub"
- EOT5
- }
- test_dircase() {
- doit "dircase" <<EOT6
- mkdir "$TESTDIR"/dircase &&
- touch "$TESTDIR"/dirCase/file1 &&
- ls "$TESTDIR"/dirCase/file1
- EOT6
- }
- test_errors() {
- doit "errors" <<EOT6
- (! mkdir "$TESTDIR"/notexist/impossible) &&
- (! touch "$TESTDIR"/notexist/impossible2) &&
- (! rm "$TESTDIR"/notexist/impossible3 )
- EOT6
- }
- cleanup &&
- init &&
- test_mkdir &&
- test_touchfile &&
- test_filecase &&
- test_slashconv &&
- test_errors &&
- test_dircase
- if [ $? -ne 0 ]; then
- echo "FAILED: filesystem test '$FSTESTNAME'"
- fi
|