diff options
author | David Robillard <d@drobilla.net> | 2019-04-09 10:28:12 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-04-13 19:48:23 +0200 |
commit | a1bd26b8ed3572e6b9e6647c092ed87b31771736 (patch) | |
tree | 1a5b4154822425beb635b881672961d808798707 /wscript | |
parent | f19b3c02a317cb74f9410e026b7ec145c8be0bcb (diff) | |
download | serd-a1bd26b8ed3572e6b9e6647c092ed87b31771736.tar.gz serd-a1bd26b8ed3572e6b9e6647c092ed87b31771736.tar.bz2 serd-a1bd26b8ed3572e6b9e6647c092ed87b31771736.zip |
Add test wrapper to serdi invocation for test manifest loading
This makes it possible to run the tests in an emulator for cross compiling.
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -368,7 +368,12 @@ def _load_rdf(filename): rdf_type = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type' model = {} instances = {} - proc = subprocess.Popen(['./serdi_static', filename], stdout=subprocess.PIPE) + + cmd = ['./serdi_static', filename] + if Options.options.test_wrapper: + cmd = [Options.options.test_wrapper] + cmd + + proc = subprocess.Popen(cmd, stdout=subprocess.PIPE) for line in proc.communicate()[0].splitlines(): matches = re.match('<([^ ]*)> <([^ ]*)> <([^ ]*)> \.', line.decode('utf-8')) if matches: |