forked from yodaos-project/yoda.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
testci
executable file
·48 lines (41 loc) · 991 Bytes
/
testci
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
#!/usr/bin/env bash
patternPrefix='/data/workspace/test/'
resultDir='./test/.result'
function testit() {
local scripts="
mkdir -p /data/floras;
rm -rf /tmp/command;
export BLUETOOTH_CHANNEL_PREFIX=/tmp > /dev/null;
iotjs /usr/lib/node_modules/tape/bin/tape.js '/data/workspace/test/$1/**/*.test.js'
"
echo "start testing $1"
adb shell $scripts > "$resultDir/$2.tap"
}
function test_package() {
testit "@yoda/$1" "@yoda.$1"
}
function test_runtime() {
testit "runtime" "runtime"
}
function init() {
tools/runtime-install -t
rm -rf $resultDir/*
mkdir -p $resultDir
}
init
test_package 'audio'
# test_package 'bluetooth'
test_package 'cloudgw'
test_package 'flora'
test_package 'input'
test_package 'light'
# test_package 'multimedia'
# test_package 'ota'
test_package 'property'
test_package 'system'
test_package 'tts'
test_package 'util'
test_package 'wifi'
test_runtime
node ./tools/helper/merge-tests.js > ./test/.result/summary.json
cat ./test/.result/summary.json