test-block 449 B

123456789101112131415161718192021
  1. #!/bin/bash
  2. #
  3. # Run block test cases
  4. #
  5. # Copyright 2017 Red Hat Inc.
  6. #
  7. # Authors:
  8. # Fam Zheng <famz@redhat.com>
  9. #
  10. # This code is licensed under the GPL version 2 or later. See
  11. # the COPYING file in the top-level directory.
  12. . ./common.rc
  13. cd "$BUILD_DIR"
  14. build_qemu --target-list=x86_64-softmmu || test_fail "Build failed"
  15. cd tests/qemu-iotests
  16. for t in raw qcow2 nbd luks; do
  17. ./check -g quick -$t || test_fail "Test failed: iotests $t"
  18. done