mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-27 12:03:49 +03:00
26 lines
742 B
Bash
Executable File
26 lines
742 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Copyright (c) 2006-2013 sqlmap developers (http://sqlmap.org/)
|
|
# See the file 'doc/COPYING' for copying permission
|
|
|
|
SQLMAP_HOME="/opt/sqlmap"
|
|
REGRESSION_SCRIPT="${SQLMAP_HOME}/extra/shutils"
|
|
|
|
FROM="regressiontest@sqlmap.org"
|
|
TO="bernardo.damele@gmail.com, miroslav.stampar@gmail.com"
|
|
SUBJECT="Automated regression test failed on $(date)"
|
|
|
|
cd $SQLMAP_HOME
|
|
git pull
|
|
rm -f output 2>/dev/null
|
|
|
|
cd $REGRESSION_SCRIPT
|
|
echo "Regression test started at $(date)" 1>/tmp/regressiontest.log 2>&1
|
|
python regressiontest.py 1>>/tmp/regressiontest.log 2>&1
|
|
echo "Regression test finished at $(date)" 1>>/tmp/regressiontest.log 2>&1
|
|
|
|
if [ $? -ne 0 ]
|
|
then
|
|
cat /tmp/regressiontest.log | mailx -s "${SUBJECT}" -aFrom:${FROM} ${TO}
|
|
fi
|