mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
Now, when these packages are already installed in the respective
containers, we can remove them from the test scripts.
Signed-off-by: Michal Orzel <michal.orzel@amd.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
master commit: 72cfe1c3ad
master date: 2022-12-09 14:55:33 -0800
28 lines
693 B
Bash
Executable File
28 lines
693 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
# variant should be either pv or pvh
|
|
variant=$1
|
|
|
|
# Clone and build XTF
|
|
git clone https://xenbits.xen.org/git-http/xtf.git
|
|
cd xtf && make -j$(nproc) && cd -
|
|
|
|
case $variant in
|
|
pvh) k=test-hvm32pae-example extra="dom0-iommu=none dom0=pvh" ;;
|
|
*) k=test-pv32pae-example extra= ;;
|
|
esac
|
|
|
|
rm -f smoke.serial
|
|
set +e
|
|
timeout -k 1 30 \
|
|
qemu-system-x86_64 -nographic -kernel binaries/xen \
|
|
-initrd xtf/tests/example/$k \
|
|
-append "loglvl=all com1=115200,,8n1 console=com1 noreboot \
|
|
console_timestamps=boot $extra" \
|
|
-m 512 -monitor none -serial file:smoke.serial
|
|
set -e
|
|
grep -q 'Test result: SUCCESS' smoke.serial || exit 1
|
|
exit 0
|