summaryrefslogtreecommitdiffstats
path: root/python/astra/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/astra/tests.py')
-rw-r--r--python/astra/tests.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/python/astra/tests.py b/python/astra/tests.py
index 32afd36..f7c2c04 100644
--- a/python/astra/tests.py
+++ b/python/astra/tests.py
@@ -95,3 +95,13 @@ def test_CUDA():
ok3 = _basic_par3d_cuda()
if not (ok1 and ok2 and ok3):
raise RuntimeError("Test failed")
+
+def test():
+ """Perform a very basic functionality test"""
+
+ import astra
+ if astra.use_cuda():
+ test_CUDA()
+ else:
+ print("No GPU support available")
+ test_noCUDA()