081 (a00369fc565cef32076b767ecff34469642afe06) 081 (15489c769b9a4b3bec5b5848af2960689d7b4bd8)
1#!/bin/bash
2#
3# Test Quorum block driver
4#
5# Copyright (C) 2013 Nodalink, SARL.
6#
7# This program is free software; you can redistribute it and/or modify
8# it under the terms of the GNU General Public License as published by

--- 39 unchanged lines hidden (view full) ---

48{
49 echo Testing: "$@" | _filter_imgfmt
50 $QEMU -nographic -qmp stdio -serial none "$@"
51 echo
52}
53
54function run_qemu()
55{
1#!/bin/bash
2#
3# Test Quorum block driver
4#
5# Copyright (C) 2013 Nodalink, SARL.
6#
7# This program is free software; you can redistribute it and/or modify
8# it under the terms of the GNU General Public License as published by

--- 39 unchanged lines hidden (view full) ---

48{
49 echo Testing: "$@" | _filter_imgfmt
50 $QEMU -nographic -qmp stdio -serial none "$@"
51 echo
52}
53
54function run_qemu()
55{
56 do_run_qemu "$@" 2>&1 | _filter_testdir | _filter_qemu | _filter_qmp | _filter_qemu_io
56 do_run_qemu "$@" 2>&1 | _filter_testdir | _filter_qemu | _filter_qmp\
57 | _filter_qemu_io | _filter_generated_node_ids
57}
58
59test_quorum=$($QEMU_IMG --help|grep quorum)
60[ "$test_quorum" = "" ] && _supported_fmt quorum
61
62quorum="driver=raw,file.driver=quorum,file.vote-threshold=2"
63quorum="$quorum,file.children.0.file.filename=$TEST_DIR/1.raw"
64quorum="$quorum,file.children.1.file.filename=$TEST_DIR/2.raw"

--- 102 unchanged lines hidden ---
58}
59
60test_quorum=$($QEMU_IMG --help|grep quorum)
61[ "$test_quorum" = "" ] && _supported_fmt quorum
62
63quorum="driver=raw,file.driver=quorum,file.vote-threshold=2"
64quorum="$quorum,file.children.0.file.filename=$TEST_DIR/1.raw"
65quorum="$quorum,file.children.1.file.filename=$TEST_DIR/2.raw"

--- 102 unchanged lines hidden ---