From be851b9eb42faa3c096737daaab0afcbc8c5087e Mon Sep 17 00:00:00 2001 From: Phillip Lord Date: Sat, 15 Jun 2019 22:10:03 +0100 Subject: Refactor robot testing --- robot/basic-run.sh | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100755 robot/basic-run.sh (limited to 'robot/basic-run.sh') diff --git a/robot/basic-run.sh b/robot/basic-run.sh new file mode 100755 index 0000000..497f157 --- /dev/null +++ b/robot/basic-run.sh @@ -0,0 +1,49 @@ +#!/bin/bash + +set -e + +function run_drill { + ## Org-drill should be running at this point, so give three answers + ## with a score of file + sleep_big + + echo answer one + send_answer + + echo answer two + send_answer + + echo answer three + send_answer + + ## Press any key to continue + echo press any key to continue + retn + sleep_small + + echo Save file + key y +} + +this_dir="$(dirname "$0")" +source $this_dir/robot.sh + + +launch_emacs $this_dir/basic-run.el + +bsmall_sleep=5 +big_sleep=10 + +{ + sleep 2 + find_bot + + ## Run once with default options + run_drill + + ## Run once with presentation-prompt-with-typing + run_drill + + # kill_emacs +} || cat robot/failure.txt + $EMACS -Q -l $1 & -- cgit v1.2.3