-
Notifications
You must be signed in to change notification settings - Fork 1
/
run-false-positive-tests.sh
53 lines (48 loc) · 1.19 KB
/
run-false-positive-tests.sh
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
#!/bin/sh
testRunerFileName='./run-tests.js';
runParams='-sdk-url http://127.0.0.1:1841/';
nodeJs='node';
disableLeakChecks='';
# shellcheck disable=SC2039
disableLeakChecksForTest=(
'Ext.calendar.panel.Panel'
'Ext.grid.Grid'
);
# shellcheck disable=SC2039
falsePositiveTests=(
'Ext.calendar.panel.Panel'
'Ext.pivot.Grid.classic'
'Ext.draw.Surface'
'Ext.grid.filters.Filters'
'Ext.froala.Editor.classic'
'Ext.draw.Matrix'
'Ext.froala.EditorField.classic'
'Ext.froala.Editor'
'Ext.froala.EditorField'
'grid-general-buffered-preserve-scroll'
'Ext.data.Store'
'Ext.data.schema.ManyToOne'
'Ext.data.TreeStore'
'Ext.layout.container.Table'
'grid-cell-edit'
'Ext.grid.Grid'
'Ext.grid.filters.Plugin'
'Ext.grid.plugin.Editable'
);
# shellcheck disable=SC2039
if [[ -f "$testRunerFileName" ]]
then
for value in "${falsePositiveTests[@]}"
do
# shellcheck disable=SC2199
if [[ ${disableLeakChecksForTest[@]} =~ $value ]]
then
disableLeakChecks=' -disable-leak-checks true';
else
disableLeakChecks='';
fi
$nodeJs $testRunerFileName $runParams $disableLeakChecks -single-test $value
done
else
echo "File '$testRunerFileName' is not found."
fi