2008-09-15 11:45:32 +01:00
|
|
|
#! /usr/bin/env python
|
|
|
|
|
|
|
|
|
|
"""Generic trace-comparison-type regression test."""
|
|
|
|
|
|
2009-01-24 12:25:52 +00:00
|
|
|
import os.path
|
2008-09-15 11:45:32 +01:00
|
|
|
|
2009-01-28 11:06:50 +00:00
|
|
|
def may_run(env, options):
|
2009-01-24 12:25:52 +00:00
|
|
|
"""Returns 0 when it can run, return non-zero or string (reason) when it cannot run"""
|
|
|
|
|
if env['ENABLE_PYTHON_BINDINGS']:
|
|
|
|
|
return 0
|
2008-09-15 11:45:32 +01:00
|
|
|
else:
|
2009-01-24 12:25:52 +00:00
|
|
|
return "Python bindings not available."
|
|
|
|
|
|
2009-10-06 19:34:29 -07:00
|
|
|
pyscript = os.path.join('examples/csma', 'csma-bridge.py')
|