mirror of
https://github.com/mabam/afpfs-ng-mac.git
synced 2025-01-14 23:30:04 +00:00
added small fuse test script
This commit is contained in:
parent
2f232087da
commit
fac89c1978
28
test/Makefile
Normal file
28
test/Makefile
Normal file
@ -0,0 +1,28 @@
|
||||
all: prepare fuse_anon fuse_auth
|
||||
|
||||
fuse_anon:
|
||||
mkdir -p mnt
|
||||
mount_afp afp://delorean.local/DeLorean `pwd`/mnt
|
||||
ls -al mnt/ | grep com.apple.timemachine.supported >/dev/null
|
||||
fusermount -u `pwd`/mnt
|
||||
@echo 'fuse_anon test passed.'
|
||||
|
||||
fuse_auth:
|
||||
mkdir -p mnt
|
||||
mount_afp afp://test:test_pwd@delorean.local/test `pwd`/mnt/
|
||||
echo 'You should read this back' >mnt/sample.txt
|
||||
sleep 1
|
||||
fusermount -u `pwd`/mnt
|
||||
sleep 1
|
||||
mount_afp afp://test:test_pwd@delorean.local/test `pwd`/mnt
|
||||
grep -E '^You should read this back$$' mnt/sample.txt >/dev/null
|
||||
wc -l mnt/sample.txt | grep 1 >/dev/null
|
||||
rm mnt/sample.txt
|
||||
sleep 1
|
||||
fusermount -u `pwd`/mnt
|
||||
@echo 'fuse_auth test passed.'
|
||||
|
||||
prepare:
|
||||
fusermount -u `pwd`/mnt >/dev/null || true
|
||||
sleep 1
|
||||
killall afpfsd || true
|
Loading…
x
Reference in New Issue
Block a user