Skip to content

Commit cd1a0a1

Browse files
authoredFeb 16, 2017
Send daily test mail to more people.
1 parent 1d3f067 commit cd1a0a1

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed
 

‎scripts/runalltests.sh

+12-14
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ workdir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
55
cd $workdir
66
rm -r cpp-ethereum
77
rm -r tests
8-
exec &> $workdir/testlog.txt
8+
exec &> $workdir/buildlog.txt
99

1010
#Clonning Repositories
1111
echo "Cloning Repositories"
@@ -25,22 +25,20 @@ cmake ..
2525
make -j8
2626
cd test
2727
echo "Running all tests:"
28-
echo "cpp-ethereum HEAD "$cppHead
29-
echo "tests HEAD "$testHead
30-
exec 2> $workdir/testerror.txt
28+
echo "cpp-ethereum repository at commit $cppHead"
29+
echo "tests repository at commit $testHead"
30+
exec 2> $workdir/testlog.txt
3131
timestart=$(date +%s.%N)
3232
./testeth --all --exectimelog
3333
timeend=$(date +%s.%N)
3434

35-
#Prepare Header of the report
36-
exec &> $workdir/testreport.txt
37-
exectime=$(echo "$timeend - $timestart" | bc)
38-
echo "REPORT"
39-
echo "Test execution time: $exectime s"
40-
cat $workdir/testerror.txt
41-
cat $workdir/testreport.txt | cat - $workdir/testlog.txt > temp && mv temp $workdir/testlog.txt
42-
4335
#Send Mails
36+
RECIPIENTS="dimitry@ethereum.org pawel@ethereum.org chris@ethereum.org andrei@ethereum.org"
4437
date=$(date +%Y-%m-%d)
45-
mail -s "cpp-ethereum test results "$date dimitry@ethereum.org < $workdir/testlog.txt #-A $workdir/results.zip
46-
mail -s "cpp-ethereum test results "$date chris@ethereum.org < $workdir/testlog.txt #-A $workdir/results.zip
38+
(
39+
echo "REPORT"
40+
exectime=$(echo "$timeend - $timestart" | bc)
41+
echo "Test execution time: $exectime s"
42+
cat $workdir/testlog.txt
43+
cat $workdir/buildlog.txt
44+
) | mail -s "cpp-ethereum test results $date" $RECIPIENTS

0 commit comments

Comments
 (0)
Please sign in to comment.