diff options
Diffstat (limited to 'test cases/python/1 basic/subdir')
-rw-r--r-- | test cases/python/1 basic/subdir/meson.build | 4 | ||||
-rwxr-xr-x | test cases/python/1 basic/subdir/subprog.py | 11 |
2 files changed, 15 insertions, 0 deletions
diff --git a/test cases/python/1 basic/subdir/meson.build b/test cases/python/1 basic/subdir/meson.build new file mode 100644 index 0000000..66957c1 --- /dev/null +++ b/test cases/python/1 basic/subdir/meson.build @@ -0,0 +1,4 @@ +test('subdir', + py, + args : files('subprog.py'), + env : 'PYTHONPATH=' + meson.source_root()) diff --git a/test cases/python/1 basic/subdir/subprog.py b/test cases/python/1 basic/subdir/subprog.py new file mode 100755 index 0000000..54178e5 --- /dev/null +++ b/test cases/python/1 basic/subdir/subprog.py @@ -0,0 +1,11 @@ +#!/usr/bin/env python3 + +# In order to run this program, PYTHONPATH must be set to +# point to source root. + +from gluon import gluonator + +print('Running mainprog from subdir.') + +if gluonator.gluoninate() != 42: + raise ValueError("!= 42") |