Add local CI scripts for TFM 1.0 release
These scripts are based on current CI scripts
iot-sw/tfm-ci-scripts with commit 5acf417
Major changes:
Add configs to build all combinations for release required
Codebase dynamically change when build PSA suite and OTP for parallel
Build rules for PSA DEV API/PSA FF/ARCH TEST/OTP
Build with parallel as much at it can be on the host
Add test PSA ARCH on AN521 FVP for PSA DEV API
Support PSA FF/DEV API tests on AN521 FVP
Add “Minsizerel” type support for FVP tests
Some hard-code or temporary changes that need to refine
Change-Id: I497b97e7cc57924295321259068b333a81a8f1a6
Signed-off-by: Karl Zhang <karl.zhang@arm.com>
diff --git a/tfm_ci_pylib/fastmodel_wrapper/fastmodel_wrapper.py b/tfm_ci_pylib/fastmodel_wrapper/fastmodel_wrapper.py
index 7566c2e..d49cd6c 100755
--- a/tfm_ci_pylib/fastmodel_wrapper/fastmodel_wrapper.py
+++ b/tfm_ci_pylib/fastmodel_wrapper/fastmodel_wrapper.py
@@ -257,6 +257,7 @@
# Convert to list
cmd = self.compile_cmd().split(" ")
+ print("fvp cmd ", self.compile_cmd())
# Run it as subproccess
self.fvp_proc = Popen(cmd, stdout=PIPE, stderr=STDOUT, shell=False)
@@ -286,9 +287,10 @@
queue.put(line)
# If the text end string is found terminate
- if self.test_end_string in str(line):
+ if str(line).find(self.test_end_string) > 0:
queue.put("Found End String \"%s\"" % self.test_end_string)
+ print("Found End String \"%s\"" % self.test_end_string)
self.test_complete = True
self.stop()
break
@@ -344,7 +346,7 @@
print("Could not find all binaries from %s" % ", ".join(bin_list))
print("Missing Files:", ", ".join(find_missing_files(bin_list)))
sys.exit(1)
-
+ self.show_cmd()
self.pids.append(self.run_fpv())
self.pids.append(self.run_monitor())
print("Spawned Proccesses with PID %s" % repr(self.pids)[1:-1])