@@ -5,7 +5,7 @@ workdir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
5
5
cd $workdir
6
6
rm -r cpp-ethereum
7
7
rm -r tests
8
- exec & > $workdir /testlog .txt
8
+ exec & > $workdir /buildlog .txt
9
9
10
10
# Clonning Repositories
11
11
echo " Cloning Repositories"
@@ -25,22 +25,20 @@ cmake ..
25
25
make -j8
26
26
cd test
27
27
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
31
31
timestart=$( date +%s.%N)
32
32
./testeth --all --exectimelog
33
33
timeend=$( date +%s.%N)
34
34
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
-
43
35
# Send Mails
36
+ RECIPIENTS=" dimitry@ethereum.org pawel@ethereum.org chris@ethereum.org andrei@ethereum.org"
44
37
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