echo $1
case $1 in
- ./cmd)
+ */cmd)
# Test with export specified on command line
./nbd-server -C /dev/null -p `pwd`/nbd-server.pid 11111 $tmpnam &
# -p only works if nbd-server wasn't compiled with -DNOFORK or
# -DNODAEMON, which I sometimes do for testing and debugging.
PID=$!
sleep 1
- ./nbd-tester-client localhost 11111
+ ./nbd-tester-client 127.0.0.1 11111
retval=$?
;;
- ./cfg1)
+ */cfg1)
# Test with export specified in config file
cat > nbd-server.conf <<EOF
[generic]
./nbd-server -C nbd-server.conf -p `pwd`/nbd-server.pid &
PID=$!
sleep 1
- ./nbd-tester-client localhost 11111
+ ./nbd-tester-client 127.0.0.1 11111
retval=$?
;;
- ./cfgmulti)
+ */cfgmulti)
# Test with multiple exports specified in config file, and
# testing more options too
cat >nbd-server.conf <<EOF