-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathwatch
executable file
·18 lines (14 loc) · 905 Bytes
/
watch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
command -v rerun >/dev/null 2>&1 || {
printf "The program 'rerun' is required. To install rerun, type:\n"
printf " gem install rerun\n"
printf "or visit https://github.com/alexch/rerun\n"
exit 1
}
cd $(dirname "${0}")
[ -d "$1/go" ] && rerun -bcx --name "Tests for $1/go" --dir "$1/go" --pattern "**/*.go" -- ./test_go \""$1"\" &
[ -d "$1/javascript" ] && rerun -bcx --name "Tests for $1/javascript" --dir "$1/javascript" --pattern "**/*.js" -- ./test_javascript \""$1"\" &
[ -d "$1/typescript" ] && rerun -bcx --name "Tests for $1/typescript" --dir "$1/typescript" --pattern "**/*.ts" -- ./test_typescript \""$1"\" &
[ -d "$1/rust" ] && rerun -bcx --name "Tests for $1/rust" --dir "$1/rust" --pattern "**/*.rs" -- ./test_rust \""$1"\" &
[ -d "$1/swift" ] && rerun -bcx --name "Tests for $1/swift" --dir "$1/swift" --pattern "**/*.swift" -- ./test_swift \""$1"\" &
wait