From 1f46b4ce64864c6805b4c64b449a1d4818895435 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Tue, 17 Aug 2021 16:25:22 -0400 Subject: tests: python module should install files correctly - default to python site-packages - subdir to site-packages/subdir - arbitrary install_dir --- test cases/python/2 extmodule/blaster.py.in | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 test cases/python/2 extmodule/blaster.py.in (limited to 'test cases/python/2 extmodule/blaster.py.in') 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.') -- cgit v1.2.3