blissc icon indicating copy to clipboard operation
blissc copied to clipboard

Fail on make test

Open cloutiy opened this issue 6 years ago • 1 comments

The compiler seems to build ok, but fails on tests:

make check
Making check in tests
make[1]: Entering directory '/home/drifter/dev/blissc/tests'
../blissc --library -o testharness.lib ../tests/testharness.req
python "../tests/runtests.py" --blissc="../blissc" --cc="cc" "../tests"
  File "../tests/runtests.py", line 29
    **print "Processing: {}".format(testfile)
                         ^
SyntaxError: invalid syntax**
make[1]: *** [Makefile:17: check] Error 1
make[1]: Leaving directory '/home/drifter/dev/blissc/tests'
make: *** [Makefile:948: check-recursive] Error 1

cloutiy avatar Mar 10 '18 15:03 cloutiy

The test driver script is python 2, and I'll bet your default python is python 3. Try changing the she-bang line at the top of runtests.py to use python2 instead of plain python (assuming you have Python 2 installed on your system).

madisongh avatar Mar 10 '18 17:03 madisongh