8000 Add bash script to autotest cpython lib by MegasKomnenos · Pull Request #4870 · RustPython/RustPython · GitHub
[go: up one dir, main page]

Skip to content

Add bash script to autotest cpython lib #4870

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 17 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Change how comment works in clib_list.txt
To use, add # in front of any line that you want to comment out
Warning, it won't work unless # is the first character in a string, not including whitespaces
  • Loading branch information
MegasKomnenos authored and youknowone committed Mar 26, 2025
commit f20a9d00841cf08bb2a531c4888133932e32e5ea
5 changes: 3 additions & 2 deletions scripts/clib/clib_list.txt
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ selectors
shelve
shlex
shutil
#signal
site
smtpd
smtplib
Expand Down Expand Up @@ -152,5 +153,5 @@ zipapp
zipfile
zipimport

# Components listed below are excluded from being tested
signal
# EOF marks the end of file
EOF
17 changes: 12 additions & 5 deletions scripts/clib/clib_test_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@ index=1

while :
do
token=$(cat clib_list.txt)
token=$(echo $token | cut -d ' ' -f $index)
if [ -z $token ] || [ $token == "#" ]; then
token=$(sed -n ${index}p clib_list.txt | xargs)
if [ -z $token ] || [ ${token::1} == "#" ]; then
((index++))
continue
fi
if [ $token == "EOF" ]; then
break
fi

Expand All @@ -38,8 +41,12 @@ index=1

while :
do
token=$(cat clib_list.txt | tr '\n' ' ' | tr ' ' ' ' | tr ' ' ' ' | cut -d ' ' -f $index)
if [ -z $token ] || [ $token == "#" ]; then
token=$(sed -n ${index}p clib_list.txt | xargs)
if [ -z $token ] || [ ${token::1} == "#" ]; then
((index++))
continue
fi
if [ $token == "EOF" ]; then
break
fi

Expand Down
9 changes: 6 additions & 3 deletions scripts/clib/clib_test_one.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,12 @@ index=1

while :
do
token=$(cat clib_list.txt)
token=$(echo $token | cut -d ' ' -f $index)
if [ -z $token ] || [ $token == "#" ]; then
token=$(sed -n ${index}p clib_list.txt | xargs)
if [ -z $token ] || [ ${token::1} == "#" ]; then
((index++))
continue
fi
if [ $token == "EOF" ]; then
break
fi

Expand Down
0