-
Notifications
You must be signed in to change notification settings - Fork 4
/
stimin
executable file
·87 lines (67 loc) · 2.07 KB
/
stimin
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#!/bin/sh
. ./Common
###############################################################################
ptest "stimuli, input, MIDI: range -> range" -c -q << EOF
midi "foo" { bar = range(1, 0); }
var = range(bar);
EOF
expect <<EOF
EOF
#------------------------------------------------------------------------------
ptest "stimuli, input, MIDI: range -> unbounded" -c -q << EOF
midi "foo" { bar = range(1, 0); }
var = unbounded(bar);
EOF
expect <<EOF
EOF
#------------------------------------------------------------------------------
ptest "stimuli, input, MIDI: range -> cyclic" -c -q << EOF
midi "foo" { bar = range(1, 0); }
var = cyclic(bar);
EOF
expect <<EOF
EOF
#------------------------------------------------------------------------------
ptest "stimuli, input, MIDI: range -> button" -c -q << EOF
midi "foo" { bar = range(1, 0); }
var = button(bar);
EOF
expect <<EOF
EOF
#------------------------------------------------------------------------------
ptest "stimuli, input, MIDI: range -> toggle" -c -q << EOF
midi "foo" { bar = range(1, 0); }
var = toggle(bar);
EOF
expect <<EOF
EOF
#------------------------------------------------------------------------------
ptest "stimuli, input, MIDI: differential -> range" -c -q << EOF
midi "foo" { bar = range(1, 0); }
var = range(bar);
EOF
expect <<EOF
EOF
#------------------------------------------------------------------------------
ptest "stimuli, input, MIDI: button -> button" -c -q << EOF
midi "foo" { bar = button(1, 0); }
var = button(bar);
EOF
expect <<EOF
EOF
#------------------------------------------------------------------------------
ptest "stimuli, input, MIDI: toggle -> range" -c -q << EOF
midi "foo" { bar = toggle(1, 0); }
var = range(bar);
EOF
expect <<EOF
EOF
#------------------------------------------------------------------------------
ptest_fail "stimuli, input, MIDI: toggle -> button" -c -q << EOF
midi "foo" { bar = toggle(1, 0); }
var = button(bar);
EOF
expect <<EOF
line 3: cannot add stimulus for MIDI input "var" near 'EOF'
EOF
###############################################################################