ufo-kit / ufo-core

GLib-based framework for GPU-based data processing
GNU Lesser General Public License v3.0
24 stars 8 forks source link

Test fails with: Can not create task 'dummy-data'. #182

Closed llohse closed 2 years ago

llohse commented 2 years ago

I tried compiling and testing ufo-core on a Centos 8 Stream system. Compilation with cmake worked fine. However, testing failed on the first test.

Start testing: May 09 00:30 CEST
----------------------------------------------------------
1/1 Testing: test-suite
1/1 Test: test-suite
Command: "/home/llohse/lib/ufo-core-build/tests/unit/test-suite"
Directory: /home/llohse/lib/ufo-core-build/tests/unit
"test-suite" start time: May 09 00:30 CEST
Output:
----------------------------------------------------------
/no-opencl/buffer/location: OK
/no-opencl/buffer/convert/8/host: OK
/no-opencl/buffer/convert/8/data: OK
/no-opencl/buffer/convert/16/host: OK
/no-opencl/buffer/convert/16/data: OK
/no-opencl/buffer/metadata/insert: OK
/no-opencl/buffer/metadata/copy: OK
/no-opencl/graph/connected: OK
/no-opencl/graph/labels: OK
/no-opencl/graph/expansion: OK
/no-opencl/graph/nodes/number: OK
/no-opencl/graph/nodes/roots: OK
/no-opencl/graph/nodes/successors: OK
/no-opencl/graph/nodes/predecessors: OK
/no-opencl/graph/nodes/filtered: OK
/no-opencl/graph/nodes/successors/num: OK
/no-opencl/graph/nodes/predecessors/num: OK
/no-opencl/graph/edges/number: OK
/no-opencl/graph/edges/all: OK
/no-opencl/graph/edges/remove: OK
/no-opencl/timer/elapsed: OK
/no-opencl/node/constructor: OK
/no-opencl/node/copy: OK
/no-opencl/scheduler/max_input_nodes: Can not create task 'dummy-data'.
**
Ufo:ERROR:/home/llohse/lib/ufo-core/tests/unit/test-max-input-nodes.cpp:140:void test_max_inputs(): assertion failed: (false)
<end of output>
Test time =   0.39 sec
----------------------------------------------------------
Test Failed.
"test-suite" end time: May 09 00:30 CEST
"test-suite" time elapsed: 00:00:00
----------------------------------------------------------

End testing: May 09 00:30 CEST

Did I do something wrong? Is this a known issue?

MarcusZuber commented 2 years ago

In short: If you install also ufo-filters it should work.

The problem with this test is, that it requires an actual filter. That's one reason why I started this discussion: https://github.com/ufo-kit/ufo-core/issues/181 .

MarcusZuber commented 2 years ago

I'm currently working on the config of the tests here https://github.com/ufo-kit/ufo-core/pull/183 and I just added a print telling that this rest requires ufo-filters, if it fails.

llohse commented 2 years ago

Marcus, thanks for looking into this.

I would call this a hen egg problem then. Because ufo-filters depends on ufo-core being installed. But one would generally prefer to run the tests on ufo-core before installing it. I'll leave a comment in #181.

MarcusZuber commented 2 years ago

I think for now we can not solve this in a nice way. The print 5a9d6b9091712408aedbd19808626522d5787baa hopefully gives anough hints for the users.

Putting filters and core together would solve it for the long run, but we should do this in a clean way.

I will close this for now.