diff options
| author | Eli Schwartz <eschwartz@archlinux.org> | 2021-08-17 16:25:22 -0400 |
|---|---|---|
| committer | Eli Schwartz <eschwartz@archlinux.org> | 2021-08-18 17:58:30 -0400 |
| commit | 1f46b4ce64864c6805b4c64b449a1d4818895435 (patch) | |
| tree | 7d20980da4175f561dad34bbf4ca4db6fca2d721 /test cases/python/2 extmodule/blaster.py.in | |
| parent | b0ffb80ecf845c71453aa34c05570b0c3122db3f (diff) | |
| download | meson-1f46b4ce64864c6805b4c64b449a1d4818895435.tar.gz | |
tests: python module should install files correctly
- default to python site-packages
- subdir to site-packages/subdir
- arbitrary install_dir
Diffstat (limited to 'test cases/python/2 extmodule/blaster.py.in')
| -rwxr-xr-x | test cases/python/2 extmodule/blaster.py.in | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test cases/python/2 extmodule/blaster.py.in b/test cases/python/2 extmodule/blaster.py.in new file mode 100755 index 000000000..b690b4092 --- /dev/null +++ b/test cases/python/2 extmodule/blaster.py.in @@ -0,0 +1,11 @@ +#!/usr/bin/env python3 + +import @tachyon_module@ as tachyon + +result = tachyon.phaserize('shoot') + +if not isinstance(result, int): + raise SystemExit('Returned result not an integer.') + +if result != 1: + raise SystemExit(f'Returned result {result} is not 1.') |
