aboutsummaryrefslogtreecommitdiffstats
path: root/test/afb-test/etc/aft-4a-hal-config.json
blob: 5a9c3423fc7d6a1dca11e44756dbd636214bad24 (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
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
88
89
90
91
92
{
    "id": "http://iot.bzh/download/public/schema/json/ctl-schema.json#",
    "$schema": "http://iot.bzh/download/public/schema/json/ctl-schema.json#",
    "metadata": {
        "uid": "Test",
        "version": "1.0",
        "api": "aft-4a-hal-manager",
        "info": "AFB-test binding configuration file to test 4a-hal-manager api.",
        "require": [
            "4a-hal-manager","smixer","alsacore"
        ]
    },
    "testVerb": {
        "uid": "launch_all_tests",
        "info": "Launch all the tests",
        "action": "lua://AFT#_launch_test",
        "args": {
            "trace": "4a-hal-manager",
            "files": ["4a-hal-manager_BasicAPITest.lua"]
        }
    },
    "mapis": [{
        "uid": "alsacore",
        "info": "Faked alsacore API",
        "libs": "alsacore.lua",
        "verbs": [
            {
                "uid": "ping",
                "info": "Ping Presence Check on API",
                "action": "lua://alsacore#_ping"
            },
            {
                "uid": "infoget",
                "info": "Return sound cards list",
                "action": "lua://alsacore#_infoget"
            },
            {
                "uid": "ctlget",
                "info": "Get one or many control values",
                "action": "lua://alsacore#_ctlget"
            },
            {
                "uid": "ctlset",
                "info": "Set one or many control values",
                "action": "lua://alsacore#_ctlset"
            },
            {
                "uid": "subscribe",
                "info": "Set one control or more",
                "action": "lua://alsacore#_subscribe"
            },
            {
                "uid": "addcustomctl",
                "info": "Set one control or more",
                "action": "lua://alsacore#_addcustomctl"
            }
        ]
    },
    {
        "uid": "smixer",
        "info": "Faked smixer API",
        "libs": "smixer.lua",
        "verbs": [
            {
                "uid": "ping",
                "info": "Ping Presence Check on API",
                "action": "lua://smixer#_ping"
            },
            {
                "uid": "attach",
                "info": "attach resources to mixer",
                "action": "lua://smixer#_attach"
            },
            {
                "uid": "remove",
                "info": "remove existing mixer streams, zones, ...",
                "action": "lua://smixer#_remove"
            },
            {
                "uid": "info",
                "info": "list existing mixer streams, zones, ...",
                "action": "lua://smixer#_info"
            },
            {
                "uid": "bluezalsa",
                "info": "set bluez alsa device",
                "action": "lua://smixer#_bluezalsa"
            }
        ]
    }
    ]
}