Changeset 5570

Show
Ignore:
Timestamp:
07/17/12 16:43:26 (7 years ago)
Author:
cmatthew
Message:

Fixed up fuse tester.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • seattle/branches/nacl_repy/fuse/test_fuse.sh

    r5546 r5570  
    11#!/bin/bash 
    22set -o xtrace 
     3 
     4# Do some basic tests on a Lind-fuse file system 
     5 
     6mkdir -p mnt 
    37cd mnt 
    48path=`pwd`/$$ 
     9 
     10# if something goes wrong, unmount 
    511trap 'fusermount -u $path' INT TERM EXIT 
     12 
    613mkdir $$ 
     14 
    715python ../lind_fuse.py $$ -f & 
     16 
    817sleep 1 
    918 
    1019cd $$ 
    1120 
     21echo "Small test" 
    1222echo "Hi there" > ./test_file 
    1323 
    1424cat ./test_file 
    1525 
     26echo "Big test" 
     27cp -r /var/log . 
     28ls -R 
     29 
     30echo "Data test" 
     31mkdir data 
     32cd data 
     33# random file 
     34dd if=/dev/zero of=/tmp/random.bits bs=1M count=10 
     35cp /tmp/random.bits . 
     36 
     37ls 
     38md5sum /tmp/random.bits 
     39md5sum ./random.bits 
     40diff /tmp/random.bits ./random.bits 
     41cd $path 
     42 
     43 
    1644cd .. 
    1745fusermount -u $path