aboutsummaryrefslogtreecommitdiff
path: root/robot/spanish-run.sh
diff options
context:
space:
mode:
authorPhillip Lord <phillip.lord@russet.org.uk>2019-06-21 22:38:12 +0100
committerPhillip Lord <phillip.lord@russet.org.uk>2019-06-21 22:38:34 +0100
commit8c36f488e28e4e89e8b570b848b7cea411046c39 (patch)
tree7d333c9e93d30928b24acb712d0eee515d7fcd7e /robot/spanish-run.sh
parent4daff57b8105fafd61fb3d84d40616db0fc6f73f (diff)
downloadorg-drill-8c36f488e28e4e89e8b570b848b7cea411046c39.tar.gz
org-drill-8c36f488e28e4e89e8b570b848b7cea411046c39.zip
Spanish card fixes and full test set
Diffstat (limited to 'robot/spanish-run.sh')
-rwxr-xr-xrobot/spanish-run.sh44
1 files changed, 44 insertions, 0 deletions
diff --git a/robot/spanish-run.sh b/robot/spanish-run.sh
new file mode 100755
index 0000000..c90e31a
--- /dev/null
+++ b/robot/spanish-run.sh
@@ -0,0 +1,44 @@
+#!/bin/bash
+
+set -e
+
+this_dir="$(dirname "$0")"
+source $this_dir/robot.sh
+
+
+card_no=15
+small_sleep=0.1
+
+
+function run_drill {
+ ## Org-drill should be running at this point, so give three answers
+ ## with a score of file
+ sleep_big
+
+ for i in `seq 1 $card_no`;
+ do
+ echo Answer: $i
+ send_answer
+ done
+
+ ## Press any key to continue
+ echo press any key to continue
+ retn
+ sleep_small
+
+ echo Save file
+ key y
+}
+
+launch_emacs $this_dir/spanish-run.el
+
+{
+ sleep 1
+ find_bot
+
+ ## Run once with default options
+ run_drill
+
+
+ wait_emacs
+} || cat robot/failure.txt