Skip to content

Instantly share code, notes, and snippets.

@sleeptightAnsiC
Last active December 17, 2024 22:57
Show Gist options
  • Save sleeptightAnsiC/74efacdd7643af668cd80f7c123507b3 to your computer and use it in GitHub Desktop.
Save sleeptightAnsiC/74efacdd7643af668cd80f7c123507b3 to your computer and use it in GitHub Desktop.
#! /bin/bash
set -e
git clone https://repo.or.cz/tinycc.git /tmp/tinycc
cd /tmp/tinycc
wget https://raw.githubusercontent.com/c-testsuite/c-testsuite/refs/heads/master/tests/single-exec/00152.c
git bisect reset
git bisect start
git bisect bad 34b7b2cef59191fb6fa3c853bccfa53de6090362
git bisect good d348a9a51d32cece842b7885d27a411436d7887b
while : ; do
if make clean > /dev/null && ./configure --debug > /dev/null && make -j$(nproc) > /dev/null ; then
if ./tcc 00152.c ; then
echo "GOOD" && git bisect good
else
echo "BAD" && git bisect bad
fi
else
echo "SKIPPED" && git bisect skip
fi
if git bisect log | grep 'first bad commit' > /dev/null ; then
break
fi
done
rm -fr /tmp/tinycc
@sleeptightAnsiC
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment