mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-22 04:25:21 +00:00
scripts: Propagate "--test-filter" metrics test
Populate iff the the parameter is passed. Following combinations tested: scripts/dev_cli.sh tests --metrics -- --test-filter boot_time scripts/dev_cli.sh tests --metrics -- --test-filter boot_time -- --report-file /root/workloads/metrics.json scripts/dev_cli.sh tests --metrics scripts/dev_cli.sh tests --metrics -- -- --report-file /root/workloads/metrics.json Fixes: #3787 Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
885dce4082
commit
1f077e7871
@ -14,7 +14,7 @@ process_common_args "$@"
|
||||
# For now these values are default for kvm
|
||||
features=""
|
||||
|
||||
if [ "$hypervisor" = "mshv" ] ; then
|
||||
if [ "$hypervisor" = "mshv" ]; then
|
||||
features="--no-default-features --features mshv,common"
|
||||
fi
|
||||
|
||||
@ -60,7 +60,7 @@ fi
|
||||
|
||||
if [ ! -f "$VMLINUX_IMAGE" ]; then
|
||||
pushd $LINUX_CUSTOM_DIR
|
||||
time make bzImage -j `nproc`
|
||||
time make bzImage -j $(nproc)
|
||||
cp vmlinux $VMLINUX_IMAGE || exit 1
|
||||
popd
|
||||
fi
|
||||
@ -87,6 +87,10 @@ strip target/$BUILD_TARGET/release/performance-metrics
|
||||
echo 6144 | sudo tee /proc/sys/vm/nr_hugepages
|
||||
sudo chmod a+rwX /dev/hugepages
|
||||
|
||||
if [ -n "$test_filter" ]; then
|
||||
test_binary_args+=("--test-filter $test_filter")
|
||||
fi
|
||||
|
||||
export RUST_BACKTRACE=1
|
||||
time target/$BUILD_TARGET/release/performance-metrics ${test_binary_args[*]}
|
||||
RES=$?
|
||||
|
@ -1,7 +1,6 @@
|
||||
#!/bin/bash
|
||||
hypervisor="kvm"
|
||||
test_filter=""
|
||||
test_binary_args=()
|
||||
|
||||
cmd_help() {
|
||||
echo ""
|
||||
@ -44,5 +43,5 @@ process_common_args() {
|
||||
die "Hypervisor value must be kvm or mshv"
|
||||
fi
|
||||
|
||||
test_binary_args="$@"
|
||||
test_binary_args=($@)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user