tests: Add fw_cfg device integration test
This test verifies that we can see custom items added to the fw_cfg device from inside the guest Signed-off-by: Alex Orozco <alexorozco@google.com>
This commit is contained in:
parent
a70c1b38e7
commit
5d478c534e
5 changed files with 77 additions and 1 deletions
|
|
@ -250,4 +250,12 @@ if [ $RES -eq 0 ]; then
|
|||
RES=$?
|
||||
fi
|
||||
|
||||
# Run tests on fw_cfg
|
||||
if [ $RES -eq 0 ]; then
|
||||
cargo build --features "fw_cfg" --all --release --target "$BUILD_TARGET"
|
||||
export RUST_BACKTRACE=1
|
||||
time cargo test "fw_cfg::$test_filter" --target "$BUILD_TARGET" -- ${test_binary_args[*]}
|
||||
RES=$?
|
||||
fi
|
||||
|
||||
exit $RES
|
||||
|
|
|
|||
|
|
@ -198,4 +198,12 @@ if [ $RES -eq 0 ]; then
|
|||
RES=$?
|
||||
fi
|
||||
|
||||
# Run tests on fw_cfg
|
||||
if [ $RES -eq 0 ]; then
|
||||
cargo build --features "mshv,fw_cfg" --all --release --target "$BUILD_TARGET"
|
||||
export RUST_BACKTRACE=1
|
||||
time cargo test "fw_cfg::$test_filter" --target "$BUILD_TARGET" -- ${test_binary_args[*]}
|
||||
RES=$?
|
||||
fi
|
||||
|
||||
exit $RES
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue