#!/bin/sh # Basic script to make sure that cifsdd can do both local and remote I/O. if [ $# -lt 4 ]; then cat < local copy" if=$sourcepath of=$destpath bs=$bs || failtest compare $sourcepath $destpath || failtest # Check whether we can do a round trip runcopy "Testing local -> remote copy" \ if=$sourcepath of=//$SERVER/$SHARE/$sourcepath bs=$bs || failtest runcopy "Testing remote ->local copy" \ if=//$SERVER/$SHARE/$sourcepath of=$destpath bs=$bs || failtest compare $sourcepath $destpath || failtest # Check that copying within the remote server works runcopy "Testing local -> remote copy" \ if=//$SERVER/$SHARE/$sourcepath of=//$SERVER/$SHARE/$sourcepath bs=$bs || failtest runcopy "Testing remote -> remote copy" \ if=//$SERVER/$SHARE/$sourcepath of=//$SERVER/$SHARE/$destpath bs=$bs || failtest runcopy "Testing remote ->local copy" \ if=//$SERVER/$SHARE/$destpath of=$destpath bs=$bs || failtest compare $sourcepath $destpath || failtest done rm -f $sourcepath $destpath testok $0 $failed