Files
python-uncompyle6/test/Makefile
2015-12-14 09:38:46 -05:00

42 lines
1.1 KiB
Makefile

PHONY=check clean dist distclean test test-unit test-functional rmChangeLog clean_pyc nosetests
GIT2CL ?= git2cl
PYTHON ?= python
# Set COMPILE='--compile' to force compilation before check
COMPILE ?=
#: Run all tests
check: check-short check-2.7-ok
## FIXME: there is a bug in our code that I don't
## find in uncompyle2 that causes this to fail.
## parsing.
## the failing program works if run by itself.
## This leads me to believe the problem is an
## initialization bug?
#: Check deparsing only, but from a different Python version
check-bytecode:
$(PYTHON) test_pythonlib.py --bytecode-2.5
#: Run quick tests
check-short:
$(PYTHON) test_pythonlib.py --base-2.7 --verify $(COMPILE)
#: Run longer Python 2.7's lib files known to be okay
check-2.7-ok:
$(PYTHON) test_pythonlib.py --ok-2.7 --verify $(COMPILE)
clean: clean-py-dis clean-dis clean-unverified
clean-dis:
find . -name '*_dis' -exec rm -v '{}' ';'
clean-unverified:
find . -name '*_unverified' -exec rm -v '{}' ';'
#: Clean temporary compile/decompile/verify direcotries in /tmp
clean-py-dis:
rm -fr /tmp/py-dis-* || true