stem_examples/Makefile

42 lines
1.3 KiB
Makefile
Raw Normal View History

2024-01-16 19:10:43 +01:00
gggggPREFIX=/usr/local
PYTHON_EXE_MSYS=${PREFIX}/bin/python3.sh
LOCAL_DOCTEST=${PREFIX}/bin/toxcore_run_doctest3.bash
2024-01-14 15:28:53 +01:00
DOCTEST=${LOCAL_DOCTEST}
2024-01-15 13:37:32 +01:00
MOD=stem_examples
check::
sh python3.sh -c "import ${MOD}"
2024-01-14 15:28:53 +01:00
lint::
sh .pylint.sh
rsync::
bash .rsync.sh
2024-01-15 13:37:32 +01:00
pyi::
echo FixMe
2024-01-16 19:10:43 +01:00
test::
export TOR_CONTROLLER_PASSWORD=${PASS}
${PYTHON_EXE_MSYS} src/${MOD}/check_digests.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
TOR_CONTROLLER_PASSWORD=${PASS} ${PYTHON_EXE_MSYS} src/${MOD}/introduction_points.py
TOR_CONTROLLER_PASSWORD=${PASS} ${PYTHON_EXE_MSYS} src/${MOD}/list_circuits.py
TOR_CONTROLLER_PASSWORD=${PASS} ${PYTHON_EXE_MSYS} src/${MOD}/mappaddress.py
#hangs TOR_CONTROLLER_PASSWORD=${PASS} ${PYTHON_EXE_MSYS} src/${MOD}/outdated_relays.py
TOR_CONTROLLER_PASSWORD=${PASS} ${PYTHON_EXE_MSYS} src/${MOD}/relay_connections.py
#wrosk TOR_CONTROLLER_PASSWORD=${PASS} ${PYTHON_EXE_MSYS} src/${MOD}/tor_bootstrap_check.py
2024-01-14 15:28:53 +01:00
doctest:
export PYTHONPATH=${PWD}
2024-01-16 19:10:43 +01:00
${DOCTEST} ${MOD}.txt
2024-01-15 13:37:32 +01:00
veryclean:: clean
rm -rf build dist __pycache__ .pylint.err .pylint.out
clean::
find . -name \*~ -delete