diff options
author | David Robillard <d@drobilla.net> | 2019-04-09 10:28:12 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-04-13 22:59:09 +0200 |
commit | 464df57aeb6edd8512902cf4b5e4678ff562dc0b (patch) | |
tree | 5f335a4e5ffbf05cac6d95a60836a280f440003a | |
parent | 499e27a6849cb98235bf9425f1fdb96c8da2c8c5 (diff) | |
download | serd-464df57aeb6edd8512902cf4b5e4678ff562dc0b.tar.gz serd-464df57aeb6edd8512902cf4b5e4678ff562dc0b.tar.bz2 serd-464df57aeb6edd8512902cf4b5e4678ff562dc0b.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.
-rw-r--r-- | wscript | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -281,7 +281,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: |