-
Notifications
You must be signed in to change notification settings - Fork 0
/
run-tests
executable file
·55 lines (38 loc) · 929 Bytes
/
run-tests
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
#!/bin/bash
print_ruler() {
printf "\n"
printf "=%.0s" {1..79}
printf "\n"
printf "\n"
} # print_ruler()
main() {
printf "Running automated test file(s):\n\n"
print_ruler
# http://www.xdobry.de/ttclcheck/
# sudo apt install xotcl
echo Running: ttclcheck -scan "${PWD}"
time ttclcheck -scan "${PWD}"
print_ruler
for tf in ./*.tcl; do
if [[ ${tf} =~ testHelpers.tcl ]]; then
continue
fi
echo Running: nagelfar -s _ "${tf}"
time nagelfar -s _ "${tf}"
done
print_ruler
for tf in ./*.test; do
echo Running: RUN_ALL=1 tclsh "${tf}"
time RUN_ALL=1 tclsh "${tf}"
printf "\n"
done
print_ruler
# code coverage reporting
# note: look into using ActiveState's TCL Dev Kit - doesn't have cli only tools
# print_ruler
# go install github.com/client9/misspell/cmd/misspell@latest
echo Running: misspell .
time misspell .
print_ruler
} # main()
time main "$@" |& tee ./run-tests-tcl.txt