summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Marec <frederic.marec@iot.bzh>2019-01-29 10:12:52 +0100
committerFrédéric Marec <frederic.marec@iot.bzh>2019-04-08 08:27:38 +0000
commit3786d73cd834672592089882de40d4fe3fb0510f (patch)
tree2b97b5cc2d6bd35c7ea8f2e5737dcf0da6276207
parent36721c55b616bdce8b8f79ff3c7042ef54d18478 (diff)
Increase tests for 4a-softmixer binding
Change-Id: I90f81a33cc66c80baa813991469deb91da7aee63 Signed-off-by: Frederic Marec <frederic.marec@iot.bzh>
-rw-r--r--conf.d/project/etc/smixer-smixer-test-config.json1
-rw-r--r--test/afb-test/etc/aft-smixer-config.json2
-rw-r--r--test/afb-test/fixtures/beforeAll.sh2
-rw-r--r--test/afb-test/tests/4a-softmixer_BasicAPITest.lua12
4 files changed, 15 insertions, 2 deletions
diff --git a/conf.d/project/etc/smixer-smixer-test-config.json b/conf.d/project/etc/smixer-smixer-test-config.json
index 8643175..d9b4a13 100644
--- a/conf.d/project/etc/smixer-smixer-test-config.json
+++ b/conf.d/project/etc/smixer-smixer-test-config.json
@@ -10,7 +10,6 @@
{
"uid": "softmixer",
"info": "Map alsa-loop subdevices to 4A HAL streams",
- "spath": "./package/lib/plugins:./package/var:./lib/plugins:./var",
"libs": ["alsa-softmixer.ctlso", "smixer-test-usb_8ch.lua"]
}
],
diff --git a/test/afb-test/etc/aft-smixer-config.json b/test/afb-test/etc/aft-smixer-config.json
index 2a9ba1c..d811c32 100644
--- a/test/afb-test/etc/aft-smixer-config.json
+++ b/test/afb-test/etc/aft-smixer-config.json
@@ -15,7 +15,7 @@
"info": "Launch all the tests",
"action": "lua://AFT#_launch_test",
"args": {
- "trace": "smixer",
+ "trace": "smixer" ,
"files": ["4a-softmixer_BasicAPITest.lua"]
}
}
diff --git a/test/afb-test/fixtures/beforeAll.sh b/test/afb-test/fixtures/beforeAll.sh
index 4fcfc6d..be61341 100644
--- a/test/afb-test/fixtures/beforeAll.sh
+++ b/test/afb-test/fixtures/beforeAll.sh
@@ -1,5 +1,7 @@
#!/bin/bash
+set -e
+
###########################################################################
# Copyright 2018 IoT.bzh
#
diff --git a/test/afb-test/tests/4a-softmixer_BasicAPITest.lua b/test/afb-test/tests/4a-softmixer_BasicAPITest.lua
index f16b239..ace17d5 100644
--- a/test/afb-test/tests/4a-softmixer_BasicAPITest.lua
+++ b/test/afb-test/tests/4a-softmixer_BasicAPITest.lua
@@ -31,3 +31,15 @@ local testPrefix ="4a-smixer_BasicAPITest_"
-- This tests the ping verb of the audio High level API
_AFT.testVerbStatusSuccess(testPrefix.."ping","smixer","ping",{}, nil, nil)
+
+-- This tests the attach verb of the audio High level API
+_AFT.testVerbStatusSuccess(testPrefix.."attach","smixer","attach",{}, nil, nil)
+
+-- This tests the remove verb of the audio High level API
+_AFT.testVerbStatusSuccess(testPrefix.."remove","smixer","remove",{}, nil, nil)
+
+-- This tests the info verb of the audio High level API
+_AFT.testVerbStatusSuccess(testPrefix.."info","smixer","info",{verbose = true}, nil, nil)
+
+-- This tests the bluezalsa_dev verb of the audio High level API
+_AFT.testVerbStatusSuccess(testPrefix.."bluezalsa_dev","smixer","bluezalsa_dev",{}, nil, nil) \ No newline at end of file