WARNING: This project is written and tested in Debian GNU/Linux bookworm/sid x86_64, AVOID USING WINDOWS, MACOS and WSL to run this project.
zh update: tested and passed on windows10, python 3.9 also
> python3 --version
Python 3.10.1
-
Put test files into
test_files
-
Launch tracker first, see How to Run Tracker.
-
Use path
test
as the working directory -
add project root directory into
PYTHONPATH
-
Run
python3 the_test.py
to start one test -
Your command line should look like this:
yuk1@~/Desktop/cs305_p2p/ ➜ cd test && PYTHONPATH=../ python3 ComplexTest.py
-
Only this method is tested in command line.
- Simply click the green Run button, the working directory is set to be where the script is by default.
- Run
python3 Tracker.py
in project root directory.