2014-06-27 20:00:49 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
set -o pipefail
|
|
|
|
|
|
|
|
with_timestamps() {
|
|
|
|
while read -r line; do
|
|
|
|
echo -e "$(date +%T)\t$line";
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
run_tests() {
|
2014-06-27 20:06:04 +08:00
|
|
|
mysql -uzmuser -pzmpass zm < ../../db/test.monitor.sql
|
2014-06-27 20:00:49 +08:00
|
|
|
sudo zmpkg.pl start
|
|
|
|
sudo zmfilter.pl -f purgewhenfull
|
|
|
|
}
|
|
|
|
|
|
|
|
run_tests | with_timestamps
|