blob: fc52218477aab44bc658b685dc2f004c9af00a89 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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)
|