Last active
December 18, 2015 10:49
-
-
Save brandondahler/5771108 to your computer and use it in GitHub Desktop.
Files to test bitcoind update
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
#!/bin/bash | |
#[base-dir]/bitcoinTestSuite.sh | |
mkdir -p Tests/unfixed | |
mkdir -p Tests/fixed | |
cd bitcoin/src | |
./test_bitcoind.sh | tee Tests/unfixed/new_bitcoind.txt | |
./test_bitcoind_test.sh | tee Tests/unfixed/new_bitcoind_test.txt | |
cd .. | |
./test_bitcoinqt.sh | tee Tests/unfixed/new_bitcoinqt.txt | |
./test_bitcoinqt_test.sh | tee Tests/unfixed/new_bitcoinqt_test.txt | |
#Old | |
cd ../bitcoin-unmodified/src | |
./test_bitcoind.sh | tee Tests/unfixed/old_bitcoind.txt | |
./test_bitcoind_test.sh | tee Tests/unfixed/old_bitcoind_test.txt | |
cd .. | |
./test_bitcoinqt.sh | tee Tests/unfixed/old_bitcoinqt.txt | |
./test_bitcoinqt_test.sh | tee Tests/unfixed/old_bitcoinqt_test.txt |
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
#!/bin/bash | |
#[base-dir]/Tests/fixData.sh | |
filesToFix=$(find unfixed/ -type f) | |
mkdir -p fixed | |
for unfixedFile in $filesToFix; do | |
if [[ "$unfixedFile" =~ unfixed/(.*) ]]; then | |
rootName=${BASH_REMATCH[1]} | |
# Sort lines, Full on top, qt on bottom (if exists) | |
fullLine=$(grep Full $unfixedFile); | |
nonQtLines=$(awk '$1 !~ /^(Full,|.*\/build\/|.*\/obj\/|.*\/qt\/|.*\/leveldb\/|.*\/json\/)/' $unfixedFile) | |
qtLines=$(awk '$1 ~ /^(.*\/qt\/)/' $unfixedFile) | |
nonQtLines=$(echo "$nonQtLines" | sort); | |
qtLines=$(echo "$qtLines" | sort); | |
echo "$fullLine" > fixed/$rootName | |
echo "$nonQtLines" >> fixed/$rootName | |
if [[ ! "$rootName" =~ .*?_bitcoind.* ]]; then | |
echo "$qtLines" >> fixed/$rootName | |
fi | |
fi | |
done |
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
#!/bin/bash | |
#[base-dir]/bitcoin{,-unmodified}/src/test_bitcoind.sh | |
exec 3>&1 4>&2 | |
make clean > /dev/null | |
buildTime=$( { TIMEFORMAT="%U"; time make -j8 1>/dev/null 2>/dev/null; } 2>&1 ) | |
exec 3>&- 4>&- | |
echo "Full, $buildTime" | |
headerFiles=$(find . -type f -iname "*.h") | |
for headerFile in $headerFiles; do | |
touch "$headerFile" | |
exec 3>&1 4>&2 | |
buildTime=$( { TIMEFORMAT="%U"; time make -j8 1>/dev/null 2>/dev/null; } 2>&1 ) | |
exec 3>&- 4>&- | |
echo "$headerFile, $buildTime" | |
done |
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
#!/bin/bash | |
#[base-dir]/bitcoin{,-unmodified}/src/test_bitcoind_test.sh | |
exec 3>&1 4>&2 | |
make clean > /dev/null | |
buildTime=$( { TIMEFORMAT="%U"; time make -j8 test 1>/dev/null 2>/dev/null; } 2>&1 ) | |
exec 3>&- 4>&- | |
echo "Full, $buildTime" | |
headerFiles=$(find . -type f -iname "*.h") | |
for headerFile in $headerFiles; do | |
touch "$headerFile" | |
exec 3>&1 4>&2 | |
buildTime=$( { TIMEFORMAT="%U"; time make -j8 test 1>/dev/null 2>/dev/null; } 2>&1 ) | |
exec 3>&- 4>&- | |
echo "$headerFile, $buildTime" | |
done |
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
#!/bin/bash | |
#[base-dir]/bitcoin{,-unmodified}/src/test_bitcoinqt.sh | |
exec 3>&1 4>&2 | |
make clean > /dev/null | |
qmake USE_QRCODE=1 USE_DBUS=1 > /dev/null | |
make clean > /dev/null | |
buildTime=$( { TIMEFORMAT="%U"; time make -j8 1>/dev/null 2>/dev/null; } 2>&1 ) | |
exec 3>&- 4>&- | |
echo "Full, $buildTime" | |
headerFiles=$(find . -type f -iname "*.h") | |
for headerFile in $headerFiles; do | |
touch "$headerFile" | |
exec 3>&1 4>&2 | |
buildTime=$( { TIMEFORMAT="%U"; time make -j8 1>/dev/null 2>/dev/null; } 2>&1 ) | |
exec 3>&- 4>&- | |
echo "$headerFile, $buildTime" | |
done |
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
#!/bin/bash | |
#[base-dir]/bitcoin{,-unmodified}/src/test_bitcoinqt_test.sh | |
exec 3>&1 4>&2 | |
make clean > /dev/null | |
qmake USE_QRCODE=1 USE_DBUS=1 BITCOIN_QT_TEST=1 > /dev/null | |
make clean > /dev/null | |
buildTime=$( { TIMEFORMAT="%U"; time make -j8 1>/dev/null 2>/dev/null; } 2>&1 ) | |
exec 3>&- 4>&- | |
echo "Full, $buildTime" | |
headerFiles=$(find . -type f -iname "*.h") | |
for headerFile in $headerFiles; do | |
touch "$headerFile" | |
exec 3>&1 4>&2 | |
buildTime=$( { TIMEFORMAT="%U"; time make -j8 1>/dev/null 2>/dev/null; } 2>&1 ) | |
exec 3>&- 4>&- | |
echo "$headerFile, $buildTime" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment