diff options
| author | Phillip Lord <phillip.lord@russet.org.uk> | 2019-06-17 17:42:16 +0100 |
|---|---|---|
| committer | Phillip Lord <phillip.lord@russet.org.uk> | 2019-06-17 17:42:16 +0100 |
| commit | 9fa9b6eabf0372538a88819c1f9ff26c30102aaa (patch) | |
| tree | 07fdc23949e97cd168db4a7366307d690cce1789 /robot | |
| parent | d37519f54c903bc51377a261c070cb0e0987fbc5 (diff) | |
| download | org-drill-9fa9b6eabf0372538a88819c1f9ff26c30102aaa.tar.gz org-drill-9fa9b6eabf0372538a88819c1f9ff26c30102aaa.zip | |
Robot test all card types
Fix multiple missing session parameters.
Diffstat (limited to 'robot')
| -rw-r--r-- | robot/all-card-run.el | 11 | ||||
| -rwxr-xr-x | robot/all-card-run.sh | 44 | ||||
| -rw-r--r-- | robot/all-card.org | 133 |
3 files changed, 188 insertions, 0 deletions
diff --git a/robot/all-card-run.el b/robot/all-card-run.el new file mode 100644 index 0000000..cfc27a8 --- /dev/null +++ b/robot/all-card-run.el @@ -0,0 +1,11 @@ +(load-file "robot/robot.el") +(load-file "org-drill.el") + +(copy "all-card.org" "all-card-copy.org") +(find "all-card-copy.org") + +(org-drill) + +(robot-check-cards-seen-and-die + (string-to-number + (car command-line-args-left))) diff --git a/robot/all-card-run.sh b/robot/all-card-run.sh new file mode 100755 index 0000000..8ca247c --- /dev/null +++ b/robot/all-card-run.sh @@ -0,0 +1,44 @@ +#!/bin/bash + +set -e + +this_dir="$(dirname "$0")" +source $this_dir/robot.sh + + +card_no=12 +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/all-card-run.el $card_no + +{ + sleep 2 + find_bot + + ## Run once with default options + run_drill + + + wait_emacs +} || cat robot/failure.txt diff --git a/robot/all-card.org b/robot/all-card.org new file mode 100644 index 0000000..c056287 --- /dev/null +++ b/robot/all-card.org @@ -0,0 +1,133 @@ + +* Simple Topic :drill: + +This is the simple topic body + +** Answer + +This is the simple topic body answer + + +* Simple Clozed :drill: + +This is the [clozed] text + +* Clozed Text Hints :drill: + +This is [clozed||with a text hint] + +* Two Sided :drill: + :PROPERTIES: + :DRILL_CARD_TYPE: twosided + :END: + +This is the two sided body + +** First Side + +This is the first side of the two side + +** Second Second + +This is the other side of the two side + +** Answer + +This shows the answer + + +* Multi-sided Card :drill: + :PROPERTIES: + :DRILL_CARD_TYPE: multisided + :END: + +This is the body of the multisided + +** Side One + +This is the first body of the multisided + +** Side Two + +This is the second body of the multisided + +** Side Three + +This is the third body of the multisided + + +* Multi-cloze + +There are lots of multicloze types + +** hide1cloze :drill: + :PROPERTIES: + :DRILL_CARD_TYPE: hide1cloze + :END: + +This is the body of a multiclozed card: +[one][two][three][four][five][six] + +hide1cloze + + +** show1cloze :drill: + :PROPERTIES: + :DRILL_CARD_TYPE: show1cloze + :END: + +This is the body of a multiclozed card: +[one][two][three][four][five][six] + +show1cloze + +** hide2cloze :drill: + :PROPERTIES: + :DRILL_CARD_TYPE: hide2cloze + :END: + +This is the body of a multiclozed card: +[one][two][three][four][five][six] + +hide2cloze + +** show2cloze :drill: + :PROPERTIES: + :DRILL_CARD_TYPE: show2cloze + :END: + +This is the body of a multiclozed card: +[one][two][three][four][five][six] + +show2cloze + +** hide1_firstmore :drill: + :PROPERTIES: + :DRILL_CARD_TYPE: hide1_firstmore + :END: + +This is the body of a multiclozed card: +[one][two][three][four][five][six] + +hide1_firstmore + +** show1_firstless :drill: + :PROPERTIES: + :DRILL_CARD_TYPE: show1_firstless + :END: + +This is the body of a multiclozed card: +[one][two][three][four][five][six] + +show1_firstless + +** show1_lastmore :drill: + :PROPERTIES: + :DRILL_CARD_TYPE: show1_lastmore + :END: + +This is the body of a multiclozed card: +[one][two][three][four][five][six] + +show1_lastmore + |
