From a1bd26b8ed3572e6b9e6647c092ed87b31771736 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 9 Apr 2019 10:28:12 +0200 Subject: Add test wrapper to serdi invocation for test manifest loading This makes it possible to run the tests in an emulator for cross compiling. --- wscript | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'wscript') diff --git a/wscript b/wscript index df544bfc..878df4e1 100644 --- a/wscript +++ b/wscript @@ -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: -- cgit v1.2.1