toxygen_wrapper/Makefile

47 lines
1.0 KiB
Makefile
Raw Normal View History

2024-02-02 03:14:37 +00:00
PREFIX=/usr/local
PYTHON=python3.sh
PIP=pip3.sh
2024-02-04 01:07:37 +00:00
iTEST_TIMEOUT=60
fSOCKET_TIMEOUT=15.0
2023-12-15 14:24:07 +00:00
prepare::
bash .pylint.sh
check::
2024-02-02 03:14:37 +00:00
PYTHONPATH=$${PWD}/src pyanalyze \
src/tox_wrapper/tox.py src/tox_wrapper/tests/tests_wrapper.py \
2023-12-15 14:24:07 +00:00
> .pyanal.out 2>&1
install::
2024-02-02 03:14:37 +00:00
$(PIP) install --target $PREFIX/lib/python3.11/site-packages --upgrade .
rsync::
bash .rsync.sh
2023-12-15 14:24:07 +00:00
2023-12-16 23:23:00 +00:00
help::
2024-02-02 03:14:37 +00:00
PYTHONPATH=$${PWD}/src \
$(PYTHON) src/tox_wrapper/tests/tests_wrapper.py --help
2023-12-16 23:23:00 +00:00
test::
2024-02-04 01:07:37 +00:00
test_direct::
2024-02-02 03:14:37 +00:00
PYTHONPATH=$${PWD}/src \
2024-02-04 01:07:37 +00:00
sudo -u bin $(PYTHON) src/tox_wrapper/tests/tests_wrapper.py \
--test_timeout=${iTEST_TIMEOUT} \
--nodes_json=/tmp/toxygen_nodes.json \
--udp_enabled=True \
--trace_enabled=False --loglevel=10
test_proxy::
PYTHONPATH=$${PWD}/src \
$(PYTHON) src/tox_wrapper/tests/tests_wrapper.py \
--test_timeout=${iTEST_TIMEOUT} \
--proxy_host=127.0.0.1 \
--proxy_port=9050 \
--proxy_type=2 \
--nodes_json=$$HOME/.config/tox/DHTnodes.json \
--trace_enabled=False --loglevel=10
2023-12-15 14:24:07 +00:00
clean::
2023-12-16 23:23:00 +00:00
rm -f .[a-z]* *~ */*~ */*/*~
2023-12-15 14:24:07 +00:00
rm -rf *.egg-info