#!/bin/bash

set -x

./virtualfb.sh
glxinfo -display `cat virtualfb.DISPLAY`

if [[ $? != 0 ]]; then
  echo "Test failure"
  exit 1
fi

#!/bin/bash

set -x

./virtualfb.sh
glxinfo -display `cat virtualfb.DISPLAY`
./virtualfb.sh

if [[ $? != 0 ]]; then
  echo "Test failure"
  exit 1
fi

Stop Xvfb after running test
Stop Xvfb after running test
