mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 10:44:36 +08:00
Move tests -> extra_tests
This commit is contained in:
1 parent
3bad3d300a
commit
e62a164f4d
225 files changed
+22
-17
No files matched your search
+1
-1
@@ -8,7 +8,7 @@
|
|||||||
.vscode
|
.vscode
|
||||||
wasm-pack.log
|
wasm-pack.log
|
||||||
.idea/
|
.idea/
|
||||||
tests/snippets/resources
|
extra_tests/snippets/resources
|
||||||
|
|
||||||
flame-graph.html
|
flame-graph.html
|
||||||
flame.txt
|
flame.txt
|
||||||
|
|||||||
@@ -84,10 +84,10 @@ jobs:
|
|||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
python -m pip install pipenv
|
python -m pip install pipenv
|
||||||
- run: pipenv install
|
- run: pipenv install
|
||||||
working-directory: ./tests
|
working-directory: ./extra_tests
|
||||||
- name: run snippets
|
- name: run snippets
|
||||||
run: pipenv run pytest -v
|
run: pipenv run pytest -v
|
||||||
working-directory: ./tests
|
working-directory: ./extra_tests
|
||||||
- name: run cpython tests
|
- name: run cpython tests
|
||||||
run: target/release/rustpython -m test -v
|
run: target/release/rustpython -m test -v
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -40,10 +40,10 @@ jobs:
|
|||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
python -m pip install pipenv
|
python -m pip install pipenv
|
||||||
- run: pipenv install
|
- run: pipenv install
|
||||||
working-directory: ./tests
|
working-directory: ./extra_tests
|
||||||
- name: run snippets
|
- name: run snippets
|
||||||
run: pipenv run pytest -v
|
run: pipenv run pytest -v
|
||||||
working-directory: ./tests
|
working-directory: ./extra_tests
|
||||||
env:
|
env:
|
||||||
RUSTPYTHON_DEBUG: 'true'
|
RUSTPYTHON_DEBUG: 'true'
|
||||||
- name: run cpython tests
|
- name: run cpython tests
|
||||||
@@ -68,7 +68,7 @@ jobs:
|
|||||||
command: build
|
command: build
|
||||||
args: --release --verbose --all
|
args: --release --verbose --all
|
||||||
- name: collect tests data
|
- name: collect tests data
|
||||||
run: cargo run --release tests/jsontests.py
|
run: cargo run --release extra_tests/jsontests.py
|
||||||
env:
|
env:
|
||||||
RUSTPYTHONPATH: ${{ github.workspace }}/Lib
|
RUSTPYTHONPATH: ${{ github.workspace }}/Lib
|
||||||
- name: upload tests data to the website
|
- name: upload tests data to the website
|
||||||
@@ -82,7 +82,7 @@ jobs:
|
|||||||
|
|
||||||
git clone git@github.com:RustPython/rustpython.github.io.git website
|
git clone git@github.com:RustPython/rustpython.github.io.git website
|
||||||
cd website
|
cd website
|
||||||
cp ../tests/cpython_tests_results.json ./_data/regrtests_results.json
|
cp ../extra_tests/cpython_tests_results.json ./_data/regrtests_results.json
|
||||||
git add ./_data/regrtests_results.json
|
git add ./_data/regrtests_results.json
|
||||||
git -c user.name="Github Actions" -c user.email="actions@github.com" commit -m "Update regression test results" --author="$GITHUB_ACTOR"
|
git -c user.name="Github Actions" -c user.email="actions@github.com" commit -m "Update regression test results" --author="$GITHUB_ACTOR"
|
||||||
git push
|
git push
|
||||||
+1
-1
@@ -9,7 +9,7 @@ __pycache__
|
|||||||
.vscode
|
.vscode
|
||||||
wasm-pack.log
|
wasm-pack.log
|
||||||
.idea/
|
.idea/
|
||||||
tests/snippets/resources
|
extra_tests/snippets/resources
|
||||||
|
|
||||||
flame-graph.html
|
flame-graph.html
|
||||||
flame.txt
|
flame.txt
|
||||||
|
|||||||
+4
-3
@@ -51,10 +51,10 @@ Python code should follow the
|
|||||||
## Testing
|
## Testing
|
||||||
|
|
||||||
To test RustPython's functionality, a collection of Python snippets is located
|
To test RustPython's functionality, a collection of Python snippets is located
|
||||||
in the `tests/snippets` directory and can be run using `pytest`:
|
in the `extra_tests/snippets` directory and can be run using `pytest`:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
$ cd tests
|
$ cd extra_tests
|
||||||
$ pytest -v
|
$ pytest -v
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -93,6 +93,7 @@ repository's structure:
|
|||||||
- `parser/src`: python lexing, parsing and ast
|
- `parser/src`: python lexing, parsing and ast
|
||||||
- `Lib`: Carefully selected / copied files from CPython sourcecode. This is
|
- `Lib`: Carefully selected / copied files from CPython sourcecode. This is
|
||||||
the python side of the standard library.
|
the python side of the standard library.
|
||||||
|
- `test`: CPython test suite
|
||||||
- `vm/src`: python virtual machine
|
- `vm/src`: python virtual machine
|
||||||
- `builtins.rs`: Builtin functions
|
- `builtins.rs`: Builtin functions
|
||||||
- `compile.rs`: the python compiler from ast to bytecode
|
- `compile.rs`: the python compiler from ast to bytecode
|
||||||
@@ -103,7 +104,7 @@ repository's structure:
|
|||||||
- `py_code_object`: CPython bytecode to rustpython bytecode converter (work in
|
- `py_code_object`: CPython bytecode to rustpython bytecode converter (work in
|
||||||
progress)
|
progress)
|
||||||
- `wasm`: Binary crate and resources for WebAssembly build
|
- `wasm`: Binary crate and resources for WebAssembly build
|
||||||
- `tests`: integration test snippets
|
- `extra_tests`: extra integration test snippets as supplement of `Lib/test`
|
||||||
|
|
||||||
## Understanding Internals
|
## Understanding Internals
|
||||||
|
|
||||||
|
|||||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loaded 100 of 225 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user