-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcheckErrors
executable file
·70 lines (59 loc) · 1.44 KB
/
checkErrors
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
#!/bin/bash
#quit if any command causes an error
set -e
checkFiles=(
"diom/view/linkView"
"diom/controller/linkLog"
"diom/controller/linkInfoFetcher"
"diom/controller/controller"
"diom/diom"
"diom/logger"
"diom/include"
"diom/irc"
"diom/connection/connection"
"diom/connection/user"
"diom/connection/activityItem"
"diom/connection/activityList"
"diom/connection/channel"
"diom/topics"
"diom/network"
"diom/util"
"diom/controller/updater"
"diom/controller/channelList"
"diom/view/view"
"diom/view/nickWindow"
"diom/view/formInput"
"diom/view/activityWindow"
"diom/view/dialog"
"diom/view/help"
"diom/view/preferences/preferences"
"diom/view/preferences/networks"
"diom/view/preferences/servers"
"diom/view/preferences/channels"
"diom/view/preferences/performs"
"diom/view/preferences/aliases"
"diom/view/preferences/ignores"
"diom/model/model"
"diom/model/prefModel"
"diom/model/networksModel"
"diom/model/ignoresModel"
"diom/model/aliasModel"
"tests/loggerTest"
)
numFiles=${#checkFiles[@]}
for (( i=0; i<${numFiles}; i++ ));
do
echo Running jsLint on ${checkFiles[$i]}.js
java -jar js/util/shrinksafe/js.jar js/tests/jslint.js ./js/${checkFiles[$i]}.js
done
#unit testing:
tests=(
"logger"
)
numTests=${#tests[@]}
for (( i=0; i<${numTests}; i++ ));
do
echo Running test for ${tests[$i]}.js
java -jar js/util/shrinksafe/js.jar ./js/tests/${tests[$i]}Test.js
done
echo Finished tests!