summaryrefslogtreecommitdiff
path: root/test cases/python/1 extmodule/blaster.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2018-04-17 23:17:43 +0300
committerGitHub <noreply@github.com>2018-04-17 23:17:43 +0300
commit3fc1ca8687a5030577ab2ba6449d7028c6a5b884 (patch)
tree4d440e2ed107300b26f1cdcf33c2b8e85f0222c4 /test cases/python/1 extmodule/blaster.py
parent5faf7f1a96ee58b0c9fec4660e5b402273715464 (diff)
parent99f324eda1d08dc6fc44c08cd53bdbe576b2915c (diff)
downloadmeson-3fc1ca8687a5030577ab2ba6449d7028c6a5b884.tar.gz
Merge pull request #3240 from MathieuDuponchelle/python_module
Implement a generic python module
Diffstat (limited to 'test cases/python/1 extmodule/blaster.py')
-rwxr-xr-xtest cases/python/1 extmodule/blaster.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/test cases/python/1 extmodule/blaster.py b/test cases/python/1 extmodule/blaster.py
new file mode 100755
index 000000000..163b6d426
--- /dev/null
+++ b/test cases/python/1 extmodule/blaster.py
@@ -0,0 +1,14 @@
+#!/usr/bin/env python
+
+import sys
+import tachyon
+
+result = tachyon.phaserize('shoot')
+
+if not isinstance(result, int):
+ print('Returned result not an integer.')
+ sys.exit(1)
+
+if result != 1:
+ print('Returned result {} is not 1.'.format(result))
+ sys.exit(1)