Browse Source

tests: Move benchmarks into a separate folder

Make it clear that these files are related to benchmarks by moving
them into a new folder called "bench".

Message-Id: <20210312092238.79509-1-thuth@redhat.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
pull/113/head
Thomas Huth 5 years ago
parent
commit
3b472e71d5
  1. 2
      MAINTAINERS
  2. 0
      tests/bench/atomic64-bench.c
  3. 0
      tests/bench/atomic_add-bench.c
  4. 0
      tests/bench/benchmark-crypto-cipher.c
  5. 0
      tests/bench/benchmark-crypto-hash.c
  6. 0
      tests/bench/benchmark-crypto-hmac.c
  7. 34
      tests/bench/meson.build
  8. 0
      tests/bench/qht-bench.c
  9. 34
      tests/meson.build

2
MAINTAINERS

@ -2722,7 +2722,7 @@ F: crypto/
F: include/crypto/
F: qapi/crypto.json
F: tests/unit/test-crypto-*
F: tests/benchmark-crypto-*
F: tests/bench/benchmark-crypto-*
F: tests/unit/crypto-tls-*
F: tests/unit/pkix_asn1_tab.c
F: qemu.sasl

0
tests/atomic64-bench.c → tests/bench/atomic64-bench.c

0
tests/atomic_add-bench.c → tests/bench/atomic_add-bench.c

0
tests/benchmark-crypto-cipher.c → tests/bench/benchmark-crypto-cipher.c

0
tests/benchmark-crypto-hash.c → tests/bench/benchmark-crypto-hash.c

0
tests/benchmark-crypto-hmac.c → tests/bench/benchmark-crypto-hmac.c

34
tests/bench/meson.build

@ -0,0 +1,34 @@
qht_bench = executable('qht-bench',
sources: 'qht-bench.c',
dependencies: [qemuutil])
executable('atomic_add-bench',
sources: files('atomic_add-bench.c'),
dependencies: [qemuutil],
build_by_default: false)
executable('atomic64-bench',
sources: files('atomic64-bench.c'),
dependencies: [qemuutil],
build_by_default: false)
benchs = {}
if have_block
benchs += {
'benchmark-crypto-hash': [crypto],
'benchmark-crypto-hmac': [crypto],
'benchmark-crypto-cipher': [crypto],
}
endif
foreach bench_name, deps: benchs
exe = executable(bench_name, bench_name + '.c',
dependencies: [qemuutil] + deps)
benchmark(bench_name, exe,
args: ['--tap', '-k'],
protocol: 'tap',
timeout: 0,
suite: ['speed'])
endforeach

0
tests/qht-bench.c → tests/bench/qht-bench.c

34
tests/meson.build

@ -1,18 +1,6 @@
py3 = import('python').find_installation()
qht_bench = executable('qht-bench',
sources: 'qht-bench.c',
dependencies: [qemuutil])
executable('atomic_add-bench',
sources: files('atomic_add-bench.c'),
dependencies: [qemuutil],
build_by_default: false)
executable('atomic64-bench',
sources: files('atomic64-bench.c'),
dependencies: [qemuutil],
build_by_default: false)
subdir('bench')
test_qapi_outputs = [
'qapi-builtin-types.c',
@ -73,26 +61,6 @@ test_deps = {
'test-qht-par': qht_bench,
}
benchs = {}
if have_block
benchs += {
'benchmark-crypto-hash': [crypto],
'benchmark-crypto-hmac': [crypto],
'benchmark-crypto-cipher': [crypto],
}
endif
foreach bench_name, deps: benchs
exe = executable(bench_name, bench_name + '.c',
dependencies: [qemuutil] + deps)
benchmark(bench_name, exe,
args: ['--tap', '-k'],
protocol: 'tap',
timeout: 0,
suite: ['speed'])
endforeach
if have_tools and 'CONFIG_VHOST_USER' in config_host and 'CONFIG_LINUX' in config_host
executable('vhost-user-bridge',
sources: files('vhost-user-bridge.c'),

Loading…
Cancel
Save