-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #538 from FactomProject/FD-628_DBSig_extra_election
Fix handling of extra DBSig messages
- Loading branch information
Showing
3 changed files
with
183 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#/bin/sh | ||
#set -x | ||
|
||
# git log v5.4.2 | head -n 1092 | grep -B5 " Merge " | grep -E "^commit" | awk ' {print $2;}' > x | ||
|
||
test="$1" | ||
shift | ||
################################ | ||
# AWK scripts # | ||
################################ | ||
read -d '' scriptVariable << 'EOF' | ||
func mysystem(cmd) { | ||
print cmd; | ||
print "\n",cmd,"\n" ; | ||
rc = system(cmd " 2>&1"); | ||
if(rc!=0) { | ||
print "Exit", rc; | ||
exit(rc); | ||
} | ||
return rc; | ||
} | ||
/^#/ {print "Skipping", $1; next;} | ||
{branches[x++] = $0;} | ||
END { | ||
PROCINFO["@ind_num_asc"] | ||
for(i in branches) { | ||
branch = branches[i]; | ||
print "Testing Branch ", branch; | ||
mysystem("git reset --hard"); | ||
mysystem("git checkout " branch); | ||
mysystem("git checkout Rolling_DBSIG_Test_v5.2 factomd_test.go"); | ||
rc = system("go test --run " test); | ||
print i, branch, "Exit Code", rc | ||
} | ||
} | ||
EOF | ||
################################ | ||
# End of AWK Scripts # | ||
################################ | ||
rm -f runlog.txt | ||
awk -v test=$test "$scriptVariable" $@ 2>&1 | tee -i runlog.txt | grep -E "Testing Branch|Exit Code" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters