aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schanzenbach <schanzen@gnunet.org>2023-11-23 21:58:26 +0100
committerMartin Schanzenbach <schanzen@gnunet.org>2023-11-23 21:58:26 +0100
commitcb682d8e919ae18510461a6a67fc1c0a5cd843e0 (patch)
treee359271651663907fa5f0547a8003369c1f0ab90
parent0c21cd7ec96cab23999fcb7d3a785d06d86a86a0 (diff)
downloadgnunet-cb682d8e919ae18510461a6a67fc1c0a5cd843e0.tar.gz
gnunet-cb682d8e919ae18510461a6a67fc1c0a5cd843e0.zip
meson: do not run perf tests in default setup
-rw-r--r--meson.build3
-rw-r--r--src/lib/gnsrecord/meson.build2
-rw-r--r--src/lib/util/meson.build27
3 files changed, 28 insertions, 4 deletions
diff --git a/meson.build b/meson.build
index 39ac14eb8..e65e1eebc 100644
--- a/meson.build
+++ b/meson.build
@@ -424,6 +424,9 @@ subdir('data')
424 424
425meson.add_dist_script('meson-dist-script') 425meson.add_dist_script('meson-dist-script')
426 426
427add_test_setup('default', exclude_suites: ['perf'], is_default: true)
428add_test_setup('full', is_default: false)
429
427summary({'host': host_machine.system(), 430summary({'host': host_machine.system(),
428 'prefix': get_option('prefix'), 431 'prefix': get_option('prefix'),
429 'compiler': cc.get_id(), 432 'compiler': cc.get_id(),
diff --git a/src/lib/gnsrecord/meson.build b/src/lib/gnsrecord/meson.build
index 40eff89c1..dd71695ca 100644
--- a/src/lib/gnsrecord/meson.build
+++ b/src/lib/gnsrecord/meson.build
@@ -68,7 +68,7 @@ testgnsrecrd_test_exp = executable ('test_gnsrecord_block_expiration',
68 68
69test('perf_gnsrecord_crypto', testgnsrecrd_perf_crypto, 69test('perf_gnsrecord_crypto', testgnsrecrd_perf_crypto,
70 workdir: meson.current_build_dir(), 70 workdir: meson.current_build_dir(),
71 suite: ['gnsrecord']) 71 suite: ['gnsrecord', 'perf'])
72test('test_gnsrecord_crypto', testgnsrecrd_test_crypto, 72test('test_gnsrecord_crypto', testgnsrecrd_test_crypto,
73 workdir: meson.current_build_dir(), 73 workdir: meson.current_build_dir(),
74 suite: ['gnsrecord']) 74 suite: ['gnsrecord'])
diff --git a/src/lib/util/meson.build b/src/lib/util/meson.build
index 98d9e981c..300854c0e 100644
--- a/src/lib/util/meson.build
+++ b/src/lib/util/meson.build
@@ -598,8 +598,6 @@ test('test_uri', testuri,
598 workdir: meson.current_build_dir(), 598 workdir: meson.current_build_dir(),
599 suite: ['util', 'util-misc']) 599 suite: ['util', 'util-misc'])
600 600
601# FIXME Benchmarks
602
603testos_start_process = executable ('test_os_start_process', 601testos_start_process = executable ('test_os_start_process',
604 ['test_os_start_process.c'], 602 ['test_os_start_process.c'],
605 dependencies: [libgnunetutil_dep], 603 dependencies: [libgnunetutil_dep],
@@ -621,4 +619,27 @@ test('test_common_logging_runtime_loglevels', testcommon_logging_runtime,
621 workdir: meson.current_build_dir(), 619 workdir: meson.current_build_dir(),
622 suite: ['util', 'util-common']) 620 suite: ['util', 'util-common'])
623 621
624 622testutil_perf = [
623 'perf_crypto_asymmetric',
624 # 'perf_crypto_cs', FIXME FTBFS
625 'perf_crypto_ecc_dlog',
626 'perf_crypto_hash',
627 'perf_crypto_paillier',
628 'perf_crypto_rsa',
629 'perf_crypto_symmetric',
630 'perf_malloc',
631 'perf_mq',
632 'perf_scheduler',
633]
634
635foreach t : testutil_perf
636
637 test_filename = t + '.sh'
638 testbin = executable(t, [t + '.c'],
639 dependencies: [libgnunetutil_dep, gcrypt_dep, sodium_dep],
640 include_directories: [incdir, configuration_inc],
641 build_by_default: false,
642 install: false)
643 test(t, testbin, suite: ['util', 'perf'],
644 workdir: meson.current_build_dir())
645endforeach