Last active
January 3, 2022 08:23
-
-
Save bjorng/f117989375a0c5261df8102d9e742c42 to your computer and use it in GitHub Desktop.
Automate running git bisect in the otp repository
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/sh | |
git clean -dxfq | |
./otp_build autoconf | |
./configure | |
# Build the minimum number of applications. | |
OTP_SMALL_BUILD=true | |
export OTP_SMALL_BUILD | |
for app in asn1 hipe ic inets jinterface snmp; do | |
echo "Build faster" >lib/$app/SKIP | |
done | |
make || exit 125 | |
# Set up PATH. | |
PATH=$ERL_TOP/bin:$PATH | |
# Build and run tests. | |
(cd lib/common_test/test_server && make release_tests) | |
(cd erts/emulator/test && make release_tests) | |
TARGET=$(erts/autoconf/config.guess) | |
cd release/$TARGET/test_server | |
$ERL_TOP/bin/erl -run ts install -run erlang halt | |
$ERL_TOP/bin/erl -eval "ts:run(emulator, exception_SUITE, [batch])" -run erlang halt | |
# Make sure that there are no failed test cases. | |
grep -q ",{[1-9][0-9]*,0," ct_run*/*.logs/run.*/suite.summary |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment