View Issue Details

IDProjectCategoryView StatusLast Update
0011358GNUnetcore servicepublic2026-04-24 17:57
Reporterch3 Assigned Toch3  
PrioritynormalSeverityfeatureReproducibilityN/A
Status assignedResolutionopen 
Summary0011358: Get a working testing-based core test
DescriptionSeveral things are required:

1. core-independant issues:
    1.1 Fix meson so the executed binary finds the testing library (`gnunet-testing-netjail-launcher` does not find `libgnunettesting.so.3`). Currently I have to manually set the LD_LIBRARY_PATH to the install dir.
    1.2 Fix meson and the main test script `test_core_basic.sh` to be environment-independent. (To call the testing script, I currently have to specify its path via GNUNET_PREFIX)
    1.3 (Re-) enable the integration-tests build flag that en-/disables all tests based on testing
    1.4 (Possibly) find where the core suite is not (yet) integrated into the standard tests.

2. core-specific issues:
Currently the peers seem to not connect. Debug this. Fix this. (Maybe look at cranking up udp broadcasts again.)
Steps To ReproduceCurrently I invoke the test as follows:
```
LD_LIBRARY_PATH=/home/ch3/dev/prefix_gn/:/home/ch3/dev/prefix_gn/lib:/home/ch3/.local/src/build/src/service/core/ LTDL_LIBRARY_PATH=/home/ch3/.local/src/gnunet/build/src/service/core:/home/ch3/dev/prefix_gn:/home/ch3/dev/prefix_gn/lib GNUNET_PREFIX=~/dev/prefix_gn GNUNET_FORCE_LOG='mq;;;;DEBUG/communicator;;;;DEBUG/transport;;;;DEBUG/pils;;;;DEBUG/core;;;;DEBUG/;;;;INFO' PATH=$PATH:/home/ch3/dev/prefix_gn/bin:/home/ch3/.local/src/gnunet/build/src/service/core/ meson test -C ../../../build --suite core test_core_basic
```
I think I only need LD_LIBRARY_PATH=/home/ch3/dev/prefix_gn/lib and GNUNET_PREFIX to successfully run it.
Additional InformationA bit more overview over the whole setup:

The entry point to testing tests is in a shell script.
The shell script calls a script to setup the netjail and spawns the tests ("plugins") within the netjail.
The shell script triggers a chain of calls to testing binaries, which in turn call netjail scripts and so on.
The netjail script sources are under `scripts/netjail` and are installed to `$prefix/share`.
The gnunet-testing-netjail-launcher will be installed to `$prefix/bin`. It depends on the libgnunettesting.so.3, which is installed to `$prefix/lib`.

Problem with the test-defining shell script is that it needs to know the location of the netjail scripts are just copied to the 'install location' as data. (Maybe they should be copied there as executables via `find_program()`?)
TagsNo tags attached.

Activities

ch3

2026-04-24 14:17

developer   ~0028453

`LD_LIBRARY_PATH=/home/ch3/dev/prefix_gn/lib GNUNET_FORCE_LOG='mq;;;;DEBUG/communicator;;;;DEBUG/transport;;;;DEBUG/pils;;;;DEBUG/core;;;;DEBUG/;;;;INFO' PATH=$PATH:/home/ch3/dev/prefix_gn/bin meson test -C ../../../build --suite core test_core_basic`
seems to be sufficient

Issue History

Date Modified Username Field Change
2026-04-24 01:47 ch3 New Issue
2026-04-24 01:47 ch3 Status new => assigned
2026-04-24 01:47 ch3 Assigned To => ch3
2026-04-24 01:53 ch3 Description Updated
2026-04-24 01:54 ch3 Description Updated
2026-04-24 01:57 ch3 Description Updated
2026-04-24 01:57 ch3 Steps to Reproduce Updated
2026-04-24 14:17 ch3 Note Added: 0028453
2026-04-24 14:21 ch3 Description Updated
2026-04-24 15:02 ch3 Description Updated
2026-04-24 17:57 ch3 Additional Information Updated