summaryrefslogtreecommitdiff
path: root/tests/jittertest/filljffs2.sh
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2008-01-16 17:38:44 +0200
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2008-01-16 17:38:44 +0200
commitf3f219527f69d581a1839e93b749c29545eb0119 (patch)
treeb8604340671673911f6a0c94d843785081c7bdb9 /tests/jittertest/filljffs2.sh
parentd78b73e2ca216777e17066091ef449e9cdaffae7 (diff)
tests: move jittertest to tests directory
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'tests/jittertest/filljffs2.sh')
-rw-r--r--tests/jittertest/filljffs2.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/jittertest/filljffs2.sh b/tests/jittertest/filljffs2.sh
new file mode 100644
index 0000000..10651f4
--- /dev/null
+++ b/tests/jittertest/filljffs2.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+# Pass following cmd line:
+# 1st - file to copy
+# 2nd - file to copy to
+# 3rd - time to sleep between copies
+
+while [ $(( 1 )) -gt $(( 0 )) ]
+do
+ cp $1 $2
+ rm $2
+ df |grep mtd > /dev/console
+ echo "sleeping $3"
+ sleep $3
+done
+