Skip to content
Browse files

Add test file.

  • Loading branch information...
1 parent dfc821e commit c8810028742f0d4bc3513786aea72b8ec059d410 @hanwen committed Apr 25, 2012
Showing with 20 additions and 0 deletions.
  1. +20 −0 test.sh
View
20 test.sh
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+set -eux
+
+mount=$(mktemp -d)
+./go-mtpfs $mount &
+sleep 1
+root="$mount/SD Card"
+
+rm -rf "$root/mtpfs-test"
+mkdir "$root/mtpfs-test"
+rmdir "$root/mtpfs-test"
+mkdir "$root/mtpfs-test"
+echo -n hello > "$root/mtpfs-test/test.txt"
+ls -l "$root/mtpfs-test/test.txt"
+test $(cat "$root/mtpfs-test/test.txt") == "hello"
+touch "$root/mtpfs-test/test.txt"
+echo something else > "$root/mtpfs-test/test.txt"
+
+fusermount -u $mount

0 comments on commit c881002

Please sign in to comment.
Something went wrong with that request. Please try again.