59 lines
2.1 KiB
Makefile
59 lines
2.1 KiB
Makefile
# to run the tests, run make PASS=controllerpassword test
|
|
|
|
PREFIX=/usr/local
|
|
PYTHON_EXE_MSYS=${PREFIX}/bin/python3.sh
|
|
PIP_EXE_MSYS=${PREFIX}/bin/pip3.sh
|
|
LOCAL_DOCTEST=${PREFIX}/bin/toxcore_run_doctest3.bash
|
|
DOCTEST=${LOCAL_DOCTEST}
|
|
MOD=stem_examples
|
|
|
|
check::
|
|
sh python3.sh -c "import ${MOD}"
|
|
|
|
lint::
|
|
sh .pylint.sh
|
|
|
|
xinstall::
|
|
${PIP_EXE_MSYS} install --target ${PREFIX}/lib/python3.11/site-packages/ --upgrade .
|
|
|
|
rsync::
|
|
bash .rsync.sh
|
|
|
|
install::
|
|
${PYTHON_EXE_MSYS} -m pip --timeout=30 --disable-pip-version-check --proxy http://127.0.0.1:9128 install --only-binary :none: --progress-bar=off --target /usr/local/lib/python3.11/site-packages --upgrade .
|
|
|
|
# execute these tests as: make test PASS=password
|
|
test::
|
|
echo src/${MOD}/check_digests.py
|
|
TOR_CONTROLLER_PASSWORD=${PASS} src/${MOD}/check_digests.py
|
|
echo src/${MOD}/interpreter.py
|
|
TOR_CONTROLLER_PASSWORD=${PASS} src/${MOD}/interpreter.py
|
|
echo src/${MOD}/connection_resolution.py
|
|
sudo env TOR_CONTROLLER_PASSWORD=${PASS} src/${MOD}/connection_resolution.py
|
|
# broken because this site fails: http://128.31.0.39:9131/tor/status-vote
|
|
# ${PYTHON_EXE_MSYS} src/${MOD}/compare_flags.py
|
|
# cant use from make: waits for the cmdline to to terminate
|
|
# TOR_CONTROLLER_PASSWORD=${PASS} ${PYTHON_EXE_MSYS} src/${MOD}/exit_used.py 10
|
|
echo src/${MOD}/introduction_points.py
|
|
TOR_CONTROLLER_PASSWORD=${PASS} ${PYTHON_EXE_MSYS} src/${MOD}/introduction_points.py
|
|
echo src/${MOD}/list_circuits.py
|
|
TOR_CONTROLLER_PASSWORD=${PASS} ${PYTHON_EXE_MSYS} src/${MOD}/list_circuits.py
|
|
echo src/${MOD}/mappaddress.py
|
|
TOR_CONTROLLER_PASSWORD=${PASS} ${PYTHON_EXE_MSYS} src/${MOD}/mappaddress.py
|
|
echo src/${MOD}/outdated_relays.py NOT WORKING?
|
|
TOR_CONTROLLER_PASSWORD=${PASS} ${PYTHON_EXE_MSYS} src/${MOD}/outdated_relays.py
|
|
echo src/${MOD}/relay_connections.py
|
|
TOR_CONTROLLER_PASSWORD=${PASS} ${PYTHON_EXE_MSYS} src/${MOD}/relay_connections.py
|
|
echo src/${MOD}/tor_bootstrap_check.py
|
|
TOR_CONTROLLER_PASSWORD=${PASS} ${PYTHON_EXE_MSYS} src/${MOD}/tor_bootstrap_check.py
|
|
|
|
doctest:
|
|
export PYTHONPATH=${PWD}
|
|
${DOCTEST} ${MOD}.txt
|
|
|
|
veryclean:: clean
|
|
rm -rf build dist __pycache__ .pylint.err .pylint.out
|
|
|
|
clean::
|
|
find . -name \*~ -delete
|