From 978e6fb88f926da14314a3563de13197a092cc9f Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Mon, 10 Dec 2018 14:33:58 -0800 Subject: tests: Add tests for the python module This doesn't touch everything as it's just based on the python3 module tests, ported to the python module. It's still better than the one very basic test in the unit test module. --- test cases/python/1 basic/prog.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 test cases/python/1 basic/prog.py (limited to 'test cases/python/1 basic/prog.py') diff --git a/test cases/python/1 basic/prog.py b/test cases/python/1 basic/prog.py new file mode 100755 index 0000000..9d95aea --- /dev/null +++ b/test cases/python/1 basic/prog.py @@ -0,0 +1,9 @@ +#!/usr/bin/env python3 + +from gluon import gluonator +import sys + +print('Running mainprog from root dir.') + +if gluonator.gluoninate() != 42: + sys.exit(1) -- cgit v1.1