Files
meson/test cases/python/2 extmodule/blaster.py.in
Eli Schwartz 1f46b4ce64 tests: python module should install files correctly
- default to python site-packages
- subdir to site-packages/subdir
- arbitrary install_dir
2021-08-18 17:58:30 -04:00

12 lines
262 B
Python
Executable File

#!/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.')