Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 21 lines (16 sloc) 0.427 kb
c881002 @hanwen Add test file.
authored
1 #!/bin/sh
2
3 set -eux
4
5 mount=$(mktemp -d)
6 ./go-mtpfs $mount &
7 sleep 1
8 root="$mount/SD Card"
9
10 rm -rf "$root/mtpfs-test"
11 mkdir "$root/mtpfs-test"
12 rmdir "$root/mtpfs-test"
13 mkdir "$root/mtpfs-test"
14 echo -n hello > "$root/mtpfs-test/test.txt"
15 ls -l "$root/mtpfs-test/test.txt"
16 test $(cat "$root/mtpfs-test/test.txt") == "hello"
17 touch "$root/mtpfs-test/test.txt"
18 echo something else > "$root/mtpfs-test/test.txt"
19
20 fusermount -u $mount
Something went wrong with that request. Please try again.