diff options
Diffstat (limited to 'meta/lib')
| -rw-r--r-- | meta/lib/oeqa/selftest/cases/rust.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/cases/rust.py b/meta/lib/oeqa/selftest/cases/rust.py index 06acf53e9a..31222e2456 100644 --- a/meta/lib/oeqa/selftest/cases/rust.py +++ b/meta/lib/oeqa/selftest/cases/rust.py | |||
| @@ -122,6 +122,9 @@ class RustSelfTestSystemEmulated(OESelftestTestCase, OEPTestResultTestCase): | |||
| 122 | cmd = "export TARGET_VENDOR=\"-poky\";" | 122 | cmd = "export TARGET_VENDOR=\"-poky\";" |
| 123 | cmd = cmd + " export PATH=%s/recipe-sysroot-native/usr/bin/python3-native:%s/recipe-sysroot-native/usr/bin:%s/recipe-sysroot-native/usr/bin/%s:%s/hosttools:$PATH;" % (rustlibpath, rustlibpath, rustlibpath, tcpath, tmpdir) | 123 | cmd = cmd + " export PATH=%s/recipe-sysroot-native/usr/bin/python3-native:%s/recipe-sysroot-native/usr/bin:%s/recipe-sysroot-native/usr/bin/%s:%s/hosttools:$PATH;" % (rustlibpath, rustlibpath, rustlibpath, tcpath, tmpdir) |
| 124 | cmd = cmd + " export RUST_TARGET_PATH=%s/rust-targets;" % rustlibpath | 124 | cmd = cmd + " export RUST_TARGET_PATH=%s/rust-targets;" % rustlibpath |
| 125 | # Strip debug symbols from test binaries to reduce size (300+ MB -> ~140 MB) | ||
| 126 | # PowerPC mac99 QEMU has 768MB RAM limit, so we need to minimize test binary sizes | ||
| 127 | cmd = cmd + " export RUSTFLAGS='-C strip=debuginfo';" | ||
| 125 | # Trigger testing. | 128 | # Trigger testing. |
| 126 | cmd = cmd + " export TEST_DEVICE_ADDR=\"%s:12345\";" % qemu.ip | 129 | cmd = cmd + " export TEST_DEVICE_ADDR=\"%s:12345\";" % qemu.ip |
| 127 | cmd = cmd + " cd %s; python3 src/bootstrap/bootstrap.py test %s --target %s" % (builddir, testargs, targetsys) | 130 | cmd = cmd + " cd %s; python3 src/bootstrap/bootstrap.py test %s --target %s" % (builddir, testargs, targetsys) |
