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
Use echo to improve tokenization
  • Loading branch information
MegasKomnenos authored and youknowone committed Mar 26, 2025
commit 915d53efcb24edac0d70a947ff0cea2be4225b81
155 changes: 154 additions & 1 deletion scripts/clib/clib_list.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,156 @@
__future__ __hello__ _collections_abc _compat_pickle _compression _markupbase _osx_support _py_abc _pycodecs _pydecimal _pyio _sitebuiltins _threading_local _weakrefset abc aifc antigravity argparse ast asynchat asyncore base64 bdb binhex bisect bz2 calendar cgi cgitb chunk cmd code codecs codeop colorsys compileall configparser contextlib contextvars copy copyreg csv dataclasses datetime decimal difflib dis doctest enum filecmp fileinput fnmatch formatter fractions ftplib functools gc genericpath getopt getpass gettext glob graphlib gzip hashlib heapq hmac imghdr imp inspect io ipaddress keyword linecache locale mailbox mimetypes netrc nntplib ntpath nturl2path numbers opcode operator optparse os pathlib pdb pickle pickletools pkgutil platform plistlib posixpath pprint pty py_compile pydoc queue quopri random re reprlib rlcompleter runpy sched secrets selectors shelve shlex shutil site smtpd smtplib sndhdr socket socketserver sre_compile sre_constants sre_parse ssl stat statistics string stringprep struct subprocess sunau sysconfig tabnanny tarfile telnetlib tempfile textwrap this threading timeit token tokenize trace traceback tty types typing uu uuid warnings weakref webbrowser xdrlib zipapp zipfile zipimport
__future__
__hello__
_collections_abc
_compat_pickle
_compression
_markupbase
_osx_support
_py_abc
_pycodecs
_pydecimal
_pyio
_sitebuiltins
_threading_local
_weakrefset
abc
aifc
antigravity
argparse
ast
asynchat
asyncore
base64
bdb
binhex
bisect
bz2
calendar
cgi
cgitb
chunk
cmd
code
codecs
codeop
colorsys
compileall
configparser
contextlib
contextvars
copy
copyreg
csv
dataclasses
datetime
decimal
difflib
dis
doctest
enum
filecmp
fileinput
fnmatch
formatter
fractions
ftplib
functools
gc
genericpath
getopt
getpass
gettext
glob
graphlib
gzip
hashlib
heapq
hmac
imghdr
imp
inspect
io
ipaddress
keyword
linecache
locale
mailbox
mimetypes
netrc
nntplib
ntpath
nturl2path
numbers
opcode
operator
optparse
os
pathlib
pdb
pickle
pickletools
pkgutil
platform
plistlib
posixpath
pprint
pty
py_compile
pydoc
queue
quopri
random
re
reprlib
rlcompleter
runpy
sched
secrets
selectors
shelve
shlex
shutil
site
smtpd
smtplib
sndhdr
socket
socketserver
sre_compile
sre_constants
sre_parse
ssl
stat
statistics
string
stringprep
struct
subprocess
sunau
sysconfig
tabnanny
tarfile
telnetlib
tempfile
textwrap
this
threading
timeit
token
tokenize
trace
traceback
tty
types
typing
uu
uuid
warnings
weakref
webbrowser
xdrlib
zipapp
zipfile
zipimport

# Components listed below are excluded from being tested
signal
3 changes: 2 additions & 1 deletion scripts/clib/clib_test_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ index=1

while :
do
token=$(cat clib_list.txt | tr '\n' ' ' | tr ' ' ' ' | tr ' ' ' ' | cut -d ' ' -f $index)
token=$(cat clib_list.txt)
token=$(echo $token | cut -d ' ' -f $index)
if [ -z $token ] || [ $token == "#" ]; then
break
fi
Expand Down
3 changes: 2 additions & 1 deletion scripts/clib/clib_test_one.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ index=1

while :
do
token=$(cat clib_list.txt | tr '\n' ' ' | tr ' ' ' ' | tr ' ' ' ' | cut -d ' ' -f $index)
token=$(cat clib_list.txt)
token=$(echo $token | cut -d ' ' -f $index)
if [ -z $token ] || [ $token == "#" ]; then
break
fi
Expand Down
0