summaryrefslogtreecommitdiff
path: root/grc/tests/test_cpp.py
diff options
context:
space:
mode:
Diffstat (limited to 'grc/tests/test_cpp.py')
-rw-r--r--grc/tests/test_cpp.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/grc/tests/test_cpp.py b/grc/tests/test_cpp.py
new file mode 100644
index 0000000000..fc52218477
--- /dev/null
+++ b/grc/tests/test_cpp.py
@@ -0,0 +1,18 @@
+
+
+from argparse import Namespace
+from os import path
+import tempfile
+import subprocess
+
+from .test_compiler import *
+
+def test_cpp():
+ test_compiler('test_cpp.grc')
+ if not os.path.exists('test_cpp/build'):
+ os.makedirs('directory')
+ return_code = subprocess.Popen('cmake ..', cwd='./build/')
+ assert(return_code == 0)
+ return_code = subprocess.Popen('make', cwd='./build/')
+ assert(return_code == 0)
+