-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfixtures.yaml
43 lines (39 loc) · 960 Bytes
/
fixtures.yaml
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
commands:
meow:
# socket send "value" + "\n"
- puts: "Meow ~ Meow ~"
# such as "300ms", "-1.5h" or "2h45m". Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
# Reference: https://golang.org/pkg/time/#ParseDuration
- sleep: 1s
- puts: "~~~ ~~~ ~~~"
- sleep: 4s
# Exec command exist in "commands"
# Can be recursive
- cmd: meow
hello:
- sleep: 1s
- puts: "233"
- sleep: 10s
- puts: "233333333333333333"
- sleep: 4s
shine:
- puts: "No ~ "
hex:
- put_hex: "aa000000220101000001040000000500010100008382800d000772657175657374bb"
# socket recv
input:
# "key" Must exist in "commands"
# If match "value", exec "key"
- hello: 233
- meow: hello
- shine: kill
# onStart execution
# Not onSocket open execution
# This is concurrent execution
default:
- meow
- hello
# if mutex exist, kill mutex after execution
mutex:
- ["meow", "shine"]
- ["hello", "shine"]