Blame tests/p_libvirt/libvirt_virsh_test.sh

Athmane Madjoudj 765ebf
#!/bin/sh
Athmane Madjoudj 765ebf
# Author: Athmane Madjoudj <athmanem@gmail.com>
40b4c8
40b4c8
if [ "$CONTAINERTEST" -eq "1" ]; then
40b4c8
    t_Log "Running in container -> SKIP"
40b4c8
    exit 0
40b4c8
fi
40b4c8
dbfc54
if (t_GetArch | grep -qE 'aarch64')
dbfc54
  then
dbfc54
  echo "Package not included with AArch64, skipping"
dbfc54
  exit 0
dbfc54
fi
Athmane Madjoudj 765ebf
Karanbir Singh 106bcf
t_Log "Running $0 - libvirt: Virsh can talk to local hypervisor."
Athmane Madjoudj 765ebf
Athmane Madjoudj 765ebf
virsh -c test:///default list  > /dev/null
Athmane Madjoudj 765ebf
Athmane Madjoudj 765ebf
t_CheckExitStatus $?