summaryrefslogtreecommitdiff
path: root/grc/tests/test_cpp.py
diff options
context:
space:
mode:
authorHåkon Vågsether <haakonsv@gmail.com>2017-07-24 19:54:26 +0200
committerAndrej Rode <mail@andrejro.de>2018-11-23 00:51:15 +0100
commitbac53b29f7008b33667a7c2c481ace02d73f3264 (patch)
tree409803943b08f5ff7d85e567c49ab94e6f545174 /grc/tests/test_cpp.py
parent8dc5fa49dc4c669c28ffb1216625ae92475c4ec9 (diff)
Add C++ generation
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)
+