#!/bin/sh if [ $# -lt 2 ]; then cat </dev/null 2>&1 if [ $? = 0 ] ; then echo "ALL IS WORKING" true else false fi } # test the mkdir call with special windows chars # and then check the created unix directory name test_vfstest_dir() { cmd='$VFSTEST -f $TESTBASE/vfstest1.cmd $MYARGS1 $MYARGS2 $ADDARGS ' out=`eval $cmd` ret=$? if [ $ret != 0 ] ; then echo "$out" echo "command failed" false return fi NUM=`find $UNIX_DIR | wc -l` if [ $NUM -ne 1 ] ; then echo "Cannot find $UNIX_DIR" false else true fi } testit "vfstest_catia" test_vfstest || failed=`expr $failed + 1` if [ $failed = 0 ] ; then testit "vfstest1_catia" test_vfstest_dir || failed=`expr $failed + 1` fi # Cleanup: remove tempdir rm -R $VFSTEST_TMPDIR exit $failed