-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun-tests
executable file
·47 lines (32 loc) · 906 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
#!/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
../../.github/citools/awk/awk-lint
print_ruler
../../.github/citools/awk/awk-bats
print_ruler
# git clone http://git.savannah.gnu.org/r/gawk.git
# cd gawk
# git checkout $(awk --version | awk '/^GNU Awk/ { print $3 }' | tr -d ',')
# cd ..
# git clone https://github.com/soimort/awkunit
# cd awkunit
# AWKSRCPATH=../gawk make
# cp -v awkunit.so ~/.local/gawk/lib/awkunit.so
# awkunit.so file needs to be in the lib directory
# awkunit.awk file needs to be in the current directory
../../.github/citools/awk/awk-test
print_ruler
# go install github.com/client9/misspell/cmd/misspell@latest
echo Running: misspell .
time misspell .
print_ruler
} # main()
time main "$@" |& tee ./run-tests-awk.txt