diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2023-11-23 21:58:26 +0100 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2023-11-23 21:58:26 +0100 |
commit | cb682d8e919ae18510461a6a67fc1c0a5cd843e0 (patch) | |
tree | e359271651663907fa5f0547a8003369c1f0ab90 | |
parent | 0c21cd7ec96cab23999fcb7d3a785d06d86a86a0 (diff) | |
download | gnunet-cb682d8e919ae18510461a6a67fc1c0a5cd843e0.tar.gz gnunet-cb682d8e919ae18510461a6a67fc1c0a5cd843e0.zip |
meson: do not run perf tests in default setup
-rw-r--r-- | meson.build | 3 | ||||
-rw-r--r-- | src/lib/gnsrecord/meson.build | 2 | ||||
-rw-r--r-- | src/lib/util/meson.build | 27 |
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 | ||
425 | meson.add_dist_script('meson-dist-script') | 425 | meson.add_dist_script('meson-dist-script') |
426 | 426 | ||
427 | add_test_setup('default', exclude_suites: ['perf'], is_default: true) | ||
428 | add_test_setup('full', is_default: false) | ||
429 | |||
427 | summary({'host': host_machine.system(), | 430 | summary({'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 | ||
69 | test('perf_gnsrecord_crypto', testgnsrecrd_perf_crypto, | 69 | test('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']) |
72 | test('test_gnsrecord_crypto', testgnsrecrd_test_crypto, | 72 | test('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 | |||
603 | testos_start_process = executable ('test_os_start_process', | 601 | testos_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 | 622 | testutil_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 | |||
635 | foreach 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()) | ||
645 | endforeach | ||