2017-09-28 16:36:34 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2017-11-05 18:14:34 +00:00
|
|
|
export PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin
|
|
|
|
|
2017-09-28 16:36:34 +00:00
|
|
|
set -e
|
|
|
|
set -x
|
|
|
|
|
|
|
|
[ "${FLOCKER}" != "$0" ] && exec env FLOCKER="$0" flock -en "$0" "$0" "$@" || :
|
|
|
|
|
2017-09-28 16:38:54 +00:00
|
|
|
exec > ~/tint2.runner-test.log
|
2017-09-28 16:36:34 +00:00
|
|
|
exec 2>&1
|
|
|
|
|
2017-09-28 16:39:15 +00:00
|
|
|
cd ~/tint2
|
|
|
|
git reset --hard
|
|
|
|
git pull
|
2017-11-05 14:38:33 +00:00
|
|
|
last=$(cat .last-reg-test || true)
|
2017-10-16 09:09:56 +00:00
|
|
|
curr=$(git rev-parse --verify HEAD)
|
|
|
|
[ "$last" == "$curr" ] && exit 0
|
2017-09-28 16:39:15 +00:00
|
|
|
|
2017-09-28 16:36:34 +00:00
|
|
|
cd ~/tint2.wiki
|
|
|
|
git reset --hard
|
|
|
|
git pull
|
|
|
|
|
|
|
|
|
2017-09-28 16:51:07 +00:00
|
|
|
cd ~/tint2/test
|
|
|
|
~/tint2/test/regression.py > ~/tint2.wiki/tests.tmp.md
|
|
|
|
cat ~/tint2.wiki/tests.tmp.md > ~/tint2.wiki/tests.md
|
|
|
|
rm ~/tint2.wiki/tests.tmp.md
|
2017-09-28 16:36:34 +00:00
|
|
|
|
2017-09-28 16:51:07 +00:00
|
|
|
cd ~/tint2.wiki
|
2017-09-28 16:36:34 +00:00
|
|
|
git add tests.md
|
|
|
|
git commit -am 'Update test results'
|
|
|
|
git push origin master
|
2017-10-16 09:09:56 +00:00
|
|
|
|
|
|
|
cd ~/tint2
|
|
|
|
echo "$curr" > .last-reg-test
|