ARMmbed / mbed-os-tf-m-regression-tests

An Mbed OS application that runs the TF-M regression tests
2 stars 12 forks source link

CMake: Fix linking of greentea, unity and utest #119

Closed LDong-Arm closed 3 years ago

LDong-Arm commented 3 years ago

Requires: https://github.com/ARMmbed/mbed-os/pull/14880

The test application uses the greentea client for synchronization with the host and unity for assertions, and unity in Mbed OS contains references to utest. We have recently split them from one mbed-greentea library into three, so the test application needs to link all of them.

Notes:

LDong-Arm commented 3 years ago

From Travis:

9.98s$ pip install -r mbed-os/requirements.txt
0.35s$ python3 test_psa_target.py -t GNUARM -m ${TARGET_NAME} --cli=2 -b
[Test-Target] 10:10:54: "mbedgt" is not installed. Exiting...

But mbed-os/requirements.txt does contain mbed-greentea.

Patater commented 3 years ago

Travis is failing because mbed-os-tools use a newer prettytable with Python 3 than icetea supports. PR https://github.com/ARMmbed/mbed-os/pull/14880 will fix.

LDong-Arm commented 3 years ago

Manually started a nightly run that points to this PR.

Patater commented 3 years ago

https://github.com/ARMmbed/mbed-os/pull/14880 has been merged

LDong-Arm commented 3 years ago

Forced pushed to rerun Travis

Patater commented 3 years ago

Travis still appears to be caching Python dependencies.

Processing /home/travis/.cache/pip/wheels/46/60/6c/bb25d05df22906786206e901e9354bb3061061191116768bee/prettytable-0.7.2-py3-none-any.whl
Patater commented 3 years ago

I'll clear the cache on Travis

Patater commented 3 years ago

Cleared cache for this PR. Rerunning Travis...

Patater commented 3 years ago

Boo, still using cached old prettytable for some reason. I'll clear all cache.

rwalton-arm commented 3 years ago

Boo, still using cached old prettytable for some reason. I'll clear all cache.

Is caching pip installed dependencies a good idea? Dependencies (and transitive dependencies) change so frequently we'd always want to start from a clean environment, I'd assume.

LDong-Arm commented 3 years ago

Even though we removed icetea, requirements.txt still has an old prettytable listed (using == instead of >=): https://github.com/ARMmbed/mbed-os/blob/master/requirements.txt#L3 maybe this needs an update?

Patater commented 3 years ago

Even though we removed icetea, requirements.txt still has an old prettytable listed (using == instead of >=): https://github.com/ARMmbed/mbed-os/blob/master/requirements.txt#L3 maybe this needs an update?

Gah, that looks like the issue. Good spot.

Patater commented 3 years ago

Raised https://github.com/ARMmbed/mbed-os/pull/14940

Patater commented 3 years ago

Merged that mbed-os PR, cleared Travis cache for this PR, and re-kicked it off

LDong-Arm commented 3 years ago

Thanks @Patater, it's finally resolved! 🎉