aboutsummaryrefslogtreecommitdiff
path: root/robot/all-card-run.sh
blob: 78de05667791382bbb4fed3ba49cd84b26867050 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash

set -e

this_dir="$(dirname "$0")"
source $this_dir/robot.sh


card_no=18

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

{
    find_bot

    ## Run once with default options
    run_drill

    wait_emacs
} || cat robot/failure.txt