Skip to content

Commit

Permalink
Improved test script.
Browse files Browse the repository at this point in the history
  • Loading branch information
renpytom committed Dec 20, 2024
1 parent 0d95f25 commit 5884cc3
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions tools/opfunc/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,26 +33,25 @@ done

cd $(dirname $0)

rm -Rf Python-3.12.8
# tar xaf ../../source/Python-3.12.8.tar.xz
cp -a Python-3.12.8-src Python-3.12.8
rm -Rf Python-3.12.8-build

./opfunc_transform.py Python-3.12.8/Python/ceval.c
if [ ! -e Python-3.12.8 ]; then
tar xaf ../../source/Python-3.12.8.tar.xz
fi

cp -a Python-3.12.8 Python-3.12.8-build

./opfunc_transform.py Python-3.12.8-build/Python/ceval.c

export CC="ccache clang"
export LD="ccache clang"

if [ $BUILD = yes ]; then
pushd Python-3.12.8
pushd Python-3.12.8-build
./configure --with-pydebug --cache-file=../config.cache > python.log
nice make -j$(nproc) >> python.log || true
nice make -j$(nproc) >> python.log
echo "Python build complete."

echo "Running test.py..."

./_bootstrap_python ../test.py | python3.12 ../decodeop.py
exit 1

if [ $TEST = yes ]; then
make test
fi
Expand Down

0 comments on commit 5884cc3

Please sign in to comment.