#
0a3ad615 |
| 08-Jul-2024 |
Songqian Li <sionli@tencent.com> |
scripts: add cargo test args for code coverage reports
Add release and target params to `cargo test` since we collect the code coverage reports from `xx/$BUILD_TARGET/release/`.
Signed-off-by: Song
scripts: add cargo test args for code coverage reports
Add release and target params to `cargo test` since we collect the code coverage reports from `xx/$BUILD_TARGET/release/`.
Signed-off-by: Songqian Li <sionli@tencent.com>
show more ...
|
#
2b2d0065 |
| 29-Jan-2024 |
Ruslan Mstoi <ruslan.mstoi@intel.com> |
scripts: fix shell scripts according to shellcheck errors
Unify coding style of shell scripts in accordance with shellcheck errors.
Signed-off-by: Ruslan Mstoi <ruslan.mstoi@intel.com>
|
#
91fe48d5 |
| 15-Dec-2023 |
Philipp Schuster <philipp.schuster@cyberus-technology.de> |
scripts: more compatible shebangs
Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de>
|
#
8ba5682e |
| 19-Oct-2023 |
Wei Liu <liuwe@microsoft.com> |
scripts: propagate RUSTFLAGS and TARGET_CC to test scripts
There is no need to set them in the test scripts while the main script already has them.
The consolidates how things are done.
Signed-off
scripts: propagate RUSTFLAGS and TARGET_CC to test scripts
There is no need to set them in the test scripts while the main script already has them.
The consolidates how things are done.
Signed-off-by: Wei Liu <liuwe@microsoft.com>
show more ...
|
#
c7e51e51 |
| 19-Oct-2023 |
Wei Liu <liuwe@microsoft.com> |
scripts: pass BUILD_TARGET directly to test scripts
There is no need to reconstruct it from within the scripts since the main script already constructed it once.
Drop the previously useless setting
scripts: pass BUILD_TARGET directly to test scripts
There is no need to reconstruct it from within the scripts since the main script already constructed it once.
Drop the previously useless setting of BUILD_TARGET from various scripts. The value was always overwritten at a later point.
No functional change intended.
Signed-off-by: Wei Liu <liuwe@microsoft.com>
show more ...
|
#
219716c3 |
| 04-Aug-2023 |
Bo Chen <chen.bo@intel.com> |
scripts: Stop using "--no-default-features" for cargo build
Now feature "mshv" can be built together with "kvm". There is no need to use "--no-default-features" any more.
Fixes: #5647
Signed-off-b
scripts: Stop using "--no-default-features" for cargo build
Now feature "mshv" can be built together with "kvm". There is no need to use "--no-default-features" any more.
Fixes: #5647
Signed-off-by: Bo Chen <chen.bo@intel.com>
show more ...
|
#
67ad3ff1 |
| 05-Apr-2023 |
Alyssa Ross <hi@alyssa.is> |
scripts: run doc tests
Signed-off-by: Alyssa Ross <hi@alyssa.is>
|
#
45fa8be9 |
| 28-Sep-2022 |
Smit Gardhariya <sgardhariya@microsoft.com> |
scripts: Remove common feature flag for mshv tests
Commit b2d1dd65f39 ("build: Remove "fwdebug" and "common" feature flags") removed support for common features flag. But some of the scripts are sti
scripts: Remove common feature flag for mshv tests
Commit b2d1dd65f39 ("build: Remove "fwdebug" and "common" feature flags") removed support for common features flag. But some of the scripts are still using that parameter specifically test related to mshv hypervisor. Thus fix those scripts by removing common feature flag.
Signed-off-by: Smit Gardhariya <sgardhariya@microsoft.com>
show more ...
|
#
1795afad |
| 15-Apr-2022 |
Sebastien Boeuf <sebastien.boeuf@intel.com> |
vmm: Factorize algorithm finding HOB memory resources
By factorizing the algorithm untangling TDVF sections from guest RAM into a dedicated function, we can write some unit tests to validate it prop
vmm: Factorize algorithm finding HOB memory resources
By factorizing the algorithm untangling TDVF sections from guest RAM into a dedicated function, we can write some unit tests to validate it properly achieves what we expect.
Adding the "tdx" feature to the unit tests, otherwise it wouldn't get tested.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
show more ...
|
#
fa748762 |
| 28-Mar-2022 |
Rob Bradford <robert.bradford@intel.com> |
scripts: Fix feature build for aarch64 and mshv builds
These were erroneously skipping features for the unit tests and the "build" target for dev_cli.sh
Signed-off-by: Rob Bradford <robert.bradford
scripts: Fix feature build for aarch64 and mshv builds
These were erroneously skipping features for the unit tests and the "build" target for dev_cli.sh
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
show more ...
|
#
8ba1bc76 |
| 02-Mar-2022 |
Michael Zhao <michael.zhao@arm.com> |
scripts: Fix musl build error in AArch64 unit test
Signed-off-by: Michael Zhao <michael.zhao@arm.com>
|
#
430f72f9 |
| 06-Jan-2022 |
Bo Chen <chen.bo@intel.com> |
scripts: Use cargo build-in options to run unit tests only
In this way, we don't need to rely on feature gates to exclude integration tests from running.
Signed-off-by: Bo Chen <chen.bo@intel.com>
|
#
9cdcbb51 |
| 12-Jan-2021 |
Muminul Islam <muislam@microsoft.com> |
script: Modify unit tests to support mshv
Signed-off-by: Muminul Islam <muislam@microsoft.com>
|
#
27b5f8d7 |
| 18-Nov-2020 |
Muminul Islam <muislam@microsoft.com> |
scripts: Add an option to accept hypervisor argument
Signed-off-by: Muminul Islam <muislam@microsoft.com>
|
#
f73a3451 |
| 15-Oct-2020 |
Sebastien Boeuf <sebastien.boeuf@intel.com> |
scripts: Remove all references to 'mmio' feature
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
|
#
67025948 |
| 07-Oct-2020 |
Sebastien Boeuf <sebastien.boeuf@intel.com> |
ci: Simplify test scripts
Since all unit and integration tests are run inside containers because they are called from dev_cli.sh, they always run as root. That's why both unit and integration script
ci: Simplify test scripts
Since all unit and integration tests are run inside containers because they are called from dev_cli.sh, they always run as root. That's why both unit and integration scripts can be simplified as they don't need to apply specific capabilities and run cargo tests in a dedicated 'kvm' group.
Fixes #1683
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
show more ...
|
#
a4222afd |
| 23-Aug-2020 |
Michael Zhao <michael.zhao@arm.com> |
scripts: Remove the workaround for "with-serde" in unit tests on AArch64
Signed-off-by: Michael Zhao <michael.zhao@arm.com>
|
#
5bfac796 |
| 07-Jul-2020 |
Wei Liu <liuwe@microsoft.com> |
build: add a default feature KVM
It gets bubbled all the way up from hypervsior crate to top-level Cargo.toml.
Cloud Hypervisor can't function without KVM at this point, so make it a default featur
build: add a default feature KVM
It gets bubbled all the way up from hypervsior crate to top-level Cargo.toml.
Cloud Hypervisor can't function without KVM at this point, so make it a default feature.
Fix all scripts that use --no-default-features.
Signed-off-by: Wei Liu <liuwe@microsoft.com>
show more ...
|
#
462c58d5 |
| 17-Jun-2020 |
Henry Wang <Henry.Wang@arm.com> |
tests: Enable AArch64 Jenkins CI with unit tests for GNU
This commit enables the AArch64 Jenkins CI with build and running unit tests for GNU toolchain.
Signed-off-by: Henry Wang <Henry.Wang@arm.co
tests: Enable AArch64 Jenkins CI with unit tests for GNU
This commit enables the AArch64 Jenkins CI with build and running unit tests for GNU toolchain.
Signed-off-by: Henry Wang <Henry.Wang@arm.com>
show more ...
|
#
99e72be1 |
| 12-Jun-2020 |
Henry Wang <Henry.Wang@arm.com> |
unit tests: Fix unit tests and docs for AArch64
Currently, not every feature of the cloud-hypervisor is enabled on AArch64, which means that on AArch64 machines, the `run_unit_tests.sh` needs to be
unit tests: Fix unit tests and docs for AArch64
Currently, not every feature of the cloud-hypervisor is enabled on AArch64, which means that on AArch64 machines, the `run_unit_tests.sh` needs to be tailored and some unit test cases should be run on x86_64 only.
Also this commit fixes the typo and unifies `Arm64` and `AArch64` in the AArch64 document.
Signed-off-by: Henry Wang <Henry.Wang@arm.com>
show more ...
|
#
ce794f78 |
| 21-Apr-2020 |
Samuel Ortiz <sameo@linux.intel.com> |
ci: Pass target triple to the test scripts
We pass it to the integration and unit tests script through --libc. Cargo tests are left unmodified.
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
|
#
705f2715 |
| 04-Feb-2020 |
Samuel Ortiz <sameo@linux.intel.com> |
scripts: dev_cli: Pass unit and integration test args to cargo test
In order, among other things, to use the development CLI to run specific integration tests. For example, to run only the memory_ov
scripts: dev_cli: Pass unit and integration test args to cargo test
In order, among other things, to use the development CLI to run specific integration tests. For example, to run only the memory_overhead integration test:
./scripts/dev_cli.sh tests --integration -- memory_overhead
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
show more ...
|
#
134bcd84 |
| 02-Jan-2020 |
Rob Bradford <robert.bradford@intel.com> |
tests: Use the workspace to unit test all the crates
Make all the crates members of the workspace so that "cargo test --workspace" will find them all and test them with the features enabled that we
tests: Use the workspace to unit test all the crates
Make all the crates members of the workspace so that "cargo test --workspace" will find them all and test them with the features enabled that we use.
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
show more ...
|
#
f0082fec |
| 16-Aug-2019 |
Rob Bradford <robert.bradford@intel.com> |
tests: Make panics generate a backtrace
This will help pinpoint issues when debugging test failures.
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
|
#
8b78e122 |
| 16-Aug-2019 |
Rob Bradford <robert.bradford@intel.com> |
tests: Use newgrp to run unit tests
Rather than set filesystem permissions on the /dev/kvm device instead use the kvm group added by installing qemu for running the unit tests.
Signed-off-by: Rob B
tests: Use newgrp to run unit tests
Rather than set filesystem permissions on the /dev/kvm device instead use the kvm group added by installing qemu for running the unit tests.
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
show more ...
|