Home
last modified time | relevance | path

Searched +full:com +full:- +full:seq (Results 1 – 25 of 292) sorted by relevance

12345678910>>...12

/openbmc/qemu/tests/qemu-iotests/
H A D03823 owner=kwolf@redhat.com
25 seq=`basename $0`
26 echo "QA output created by $seq"
63 for i in $(seq 0 $((sectors - 1))); do
67 echo "$op -P $pattern $((cur_sec * 64))k 64k"
75 _make_test_img -b "$TEST_IMG.base" -F $IMGFMT 6G
83 echo aio_write -P 0x80 2020k 80k
86 for i in $(seq 0 15; seq 17 31; seq 33 47); do
87 echo aio_write -P $((0x81 + i)) $((i * 128))k 64k
91 for i in $( (seq 0 15; seq 17 31; seq 33 47) | tac); do
[all …]
H A D2396 # Copyright (C) 2019 yuchenlin <npes87184@gmail.com>
23 owner=npes87184@gmail.com
25 seq=`basename $0`
26 echo "QA output created by $seq"
32 rm -f "$TEST_IMG.raw"
46 _use_sample_img simple-dmg.dmg.bz2
47 if ! $QEMU_IMG convert -f $IMGFMT -O raw "$TEST_IMG" "$TEST_IMG.raw" ; then
53 rm -f $seq.full
H A D11324 owner=hreitz@redhat.com
26 seq="$(basename $0)"
27 echo "QA output created by $seq"
48 echo '=== Unsupported image creation in qemu-img create ==='
51 $QEMU_IMG create -f bochs nbd://example.com 2>&1 64M
54 echo '=== Unsupported image creation in qemu-img convert ==='
60 $QEMU_IMG convert -f bochs -O bochs "$TEST_IMG" nbd://example.com
63 echo '=== Unsupported format in qemu-img amend ==='
68 $QEMU_IMG amend -f $IMGFMT -o size=2M "$TEST_IMG" 2>&1 | _filter_imgfmt
73 rm -f $seq.full
H A D2687 # Author: Alberto Garcia <berto@igalia.com>
24 owner=berto@igalia.com
26 seq=`basename $0`
27 echo "QA output created by $seq"
50 $QEMU_IO -c "open -o driver=$IMGFMT,file.align=4k blkdebug::$TEST_IMG" \
51 -c "write 0 512" | _filter_qemu_io
55 rm -f $seq.full
H A D1744 # Test that qemu-io fail with non-zero exit code
6 # Copyright (C) 2017 Nir Soffer <nirsof@gmail.com>
23 owner=nirsof@gmail.com
25 seq=`basename $0`
26 echo "QA output created by $seq"
49 scratch_out="$TEST_DIR/img-create.out"
50 IMGFMT=raw IMGKEYSECRET= _make_test_img --no-opts $size >"$scratch_out"
52 rm -f "$scratch_out"
56 $QEMU_IO -f $IMGFMT -c "read 0 $size" "$TEST_IMG" 2>/dev/null
57 test $? -eq 1 || _fail "did not fail"
[all …]
H A D01425 owner=kwolf@redhat.com
27 seq=`basename $0`
28 echo "QA output created by $seq"
64 for i in `seq 1 3`; do
65 $QEMU_IMG snapshot -c test$i "$TEST_IMG"
77 rm -f $seq.full
H A D1114 # Test case for non-existing backing file when creating a qcow2 image
24 owner=hreitz@redhat.com
26 seq="$(basename $0)"
27 echo "QA output created by $seq"
45 _make_test_img -b "$TEST_IMG.inexistent"
49 rm -f $seq.full
H A D10423 owner=hutao@cn.fujitsu.com
25 seq=`basename $0`
26 echo "QA output created by $seq"
39 echo "=== Check qemu-img info output ==="
51 rm -f $seq.full
H A D13523 owner=codyprime@gmail.com
25 seq=`basename $0`
26 echo "QA output created by $seq"
52 rm -f $seq.full
H A D10723 owner=hreitz@redhat.com
25 seq="$(basename $0)"
26 echo "QA output created by $seq"
51 $QEMU_IO -c 'write 0 64k' "$TEST_IMG" | _filter_qemu_io
52 $QEMU_IO -c "open -o driver=raw $TEST_IMG" -c 'read -p -P 0 196616 65528' \
57 rm -f $seq.full
H A D02223 owner=kwolf@redhat.com
25 seq=`basename $0`
26 echo "QA output created by $seq"
55 io_test "write -b" $offset $CLUSTER_SIZE 8
56 io_test "read -b" $offset $CLUSTER_SIZE 8
62 rm -f $seq.full
H A D10123 owner=stefanha@redhat.com
25 seq=`basename $0`
26 echo "QA output created by $seq"
51 $QEMU_IO -c "read -P 0 0 512" "$TEST_IMG" | _filter_qemu_io
56 rm -f $seq.full
H A D07923 owner=hutao@cn.fujitsu.com
25 seq=`basename $0`
26 echo "QA output created by $seq"
43 # Some containers (e.g. non-x86 on Travis) do not allow large files
51 _make_test_img -o "preallocation=metadata,cluster_size=$s" 4G
56 rm -f $seq.full
H A D05423 owner=kwolf@redhat.com
25 seq=`basename $0`
26 echo "QA output created by $seq"
50 $PYTHON qcow2.py "$TEST_IMG" set-header size $((1024 ** 6))
55 rm -f $seq.full
H A D2927 # Author: Alberto Garcia <berto@igalia.com>
24 owner=berto@igalia.com
26 seq=`basename $0`
27 echo "QA output created by $seq"
44 # We need qemu-img map to show the file where the data is allocated,
55 $QEMU_IO -c 'write -P 0x11 0 1M' "$BACKING_IMG" | _filter_qemu_io
58 _make_test_img -F "$IMGFMT" -b "$BACKING_IMG"
61 $QEMU_IO -c 'write -P 0x22 0 1M' "$TEST_IMG" | _filter_qemu_io
65 $QEMU_IMG resize --shrink "$TEST_IMG" 520k
70 $QEMU_IO -c 'read -P 0x22 0 520k' "$TEST_IMG" | _filter_qemu_io
[all …]
H A D25923 owner=hreitz@redhat.com
25 seq=$(basename $0)
26 echo "QA output created by $seq"
48 echo '--- Testing creation ---'
50 $QEMU_IMG create -f qcow2 "$TEST_IMG" 64M | _filter_img_create
54 echo '--- Testing creation for which the node would need to grow ---'
57 $QEMU_IMG create -f qcow2 -o preallocation=metadata "$TEST_IMG" 64M 2>&1 \
62 rm -f $seq.full
H A D0104 # Nolan II qcow2 corruption - wrong used cluster
23 owner=kwolf@redhat.com
25 seq=`basename $0`
26 echo "QA output created by $seq"
55 -c "write -P 165 2048k 4k" \
56 -c "write 64k 4k" \
57 -c "write 9M 4k" \
58 -c "write -P 165 2044k 4k" \
59 -c "write -P 99 8M 4k" \
60 -c "read -P 165 2044k 8k" \
[all …]
H A D09023 owner=hreitz@redhat.com
25 seq="$(basename $0)"
26 echo "QA output created by $seq"
49 $QEMU_IO -c 'write -c -P 42 0 64k' \
50 -c 'write -c -P 23 64k 64k' \
51 -c 'discard 64k 64k' \
54 $QEMU_IO -c 'read -P 0 64k 64k' "$TEST_IMG" | _filter_qemu_io
60 rm -f $seq.full
H A D0094 # Nolan I qcow2 corruption - incorrectly reports free clusters
23 owner=kwolf@redhat.com
25 seq=`basename $0`
26 echo "QA output created by $seq"
55 -c "write -P 65 2048k 4k" \
56 -c "write 4k 4k" \
57 -c "write 9M 4k" \
58 -c "read -P 65 -s 4k -l 4k 2044k 8k" \
67 rm -f $seq.full
H A D1454 # Test the combination of -incoming and snapshot=on
23 owner=kwolf@redhat.com
25 seq=`basename $0`
26 echo "QA output created by $seq"
50 if [ -n "$IMGKEYSECRET" ]; then
52 SYSEMU_EXTRA_ARGS="-object $SECRET_ARG"
59 echo quit | $QEMU -nographic $SYSEMU_EXTRA_ARGS -drive $SYSEMU_DRIVE_ARG \
60 -incoming 'exec:true' -snapshot -serial none -monitor stdio \
65 rm -f $seq.full
H A D11924 owner=hreitz@redhat.com
26 seq="$(basename $0)"
27 echo "QA output created by $seq"
48 {'execute': 'human-monitor-command',
49 'arguments': {'command-line': 'qemu-io drv \"read -P 0 0 64k\"'}}
51 | $QEMU -nographic -drive id=drv,if=none,file="$TEST_IMG",driver=nbd \
52 -qmp stdio -nodefaults \
58 rm -f $seq.full
/openbmc/openbmc/poky/meta/recipes-devtools/python/python3-hypothesis/
H A Dtest_rle.py2 # https://github.com/HypothesisWorks/hypothesis/
4 # Most of this work is copyright (C) 2013-2021 David R. MacIver
5 # (david@drmaciver.com), but it contains contributions by others. See
16 # SPDX-License-Identifier: MPL-2.0
35 def run_length_encode(seq): argument
36 """Encode a sequence as a new run-length encoded sequence."""
37 if not seq:
41 result = [[seq[0], 0]]
42 for s in seq:
48 == result[-1][0]
[all …]
/openbmc/qemu/crypto/
H A Drsakey-builtin.c.inc5 * Author: lei he <helei.sig11@bytedance.com>
31 return -1;
33 mpi->data = g_memdup2(value, vlen);
34 mpi->len = vlen;
44 return -1;
56 return -1;
73 const uint8_t *seq;
78 extract_seq_content, &seq, errp);
84 if (qcrypto_der_decode_int(&seq, &seq_length, extract_mpi,
85 &rsa->n, errp) < 0 ||
[all …]
/openbmc/qemu/tests/qemu-iotests/tests/
H A Ddetect-zeroes-registered-buf4 # Check that detect-zeroes=unmap works on writes with registered I/O buffers.
6 # https://gitlab.com/qemu-project/qemu/-/issues/1404 where I/O requests failed
26 owner=stefanha@redhat.com
28 seq=`basename $0`
29 echo "QA output created by $seq"
51 IMGSPEC="$TEST_IMG,discard=unmap,detect-zeroes=unmap"
55 QEMU_IO_OPTIONS="$QEMU_IO_OPTIONS_NO_FMT" $QEMU_IO -c "write -r -P 0 0 4k" --image-opts "$IMGSPEC" …
59 rm -f $seq.full
H A Dloop-create-file4 # SPDX-License-Identifier: GPL-2.0-or-later
10 # This test verifies #3127 "qemu-img create fails on loop device with sector size 4096"
11 # https://gitlab.com/qemu-project/qemu/-/issues/3127
13 seq="$(basename $0)"
14 echo "QA output created by $seq"
19 if [ -n "$loopdev" ]; then
20 sudo losetup --detach "$loopdev"
37 if ! sudo -n losetup &>/dev/null; then
45 _make_test_img -f $IMGFMT 1M
47 loopdev=$(sudo losetup --sector-size 4096 --find --show "$TEST_IMG")
[all …]

12345678910>>...12