Closed Radivarig closed 4 years ago
FWIW, on my system, I get 100% test pass, always, for all of the attentionbank unit tests.
I've thought I've enable debug but seems like I had more output after adding this to AttentionParamQuery::load_default_values
:
logger().set_level(Logger::DEBUG);.so
logger().set_print_to_stdout_flag(true);
And here is a message No configuration file was loaded!
with some modules missing:
libbuiltinreqs.so
, libscheme-shell.so
, libpy-shell.so
, libagents.so
.
7/9 Test #7: AttentionParamQueryUTest .........***Failed 0.14 sec
Running cxxtest tests (4 tests)...
In AttentionParamQueryUTest::test_get_params:
/home/radivarig/projects/opencog-dev/source/build/tests/attention/../../../tests/attention/AttentionParamQueryUTest.cxxtest:95: Error: Expected (27 == hseq.size()), found (27 != 5)
Failed 1 and Skipped 0 of 4 tests
Success rate: 75%
Start 8: ImportanceDiffusionUTest
8/9 Test #8: ImportanceDiffusionUTest .........***Exception: SegFault 0.06 sec
[2019-12-01 19:08:01:080] [WARN] No configuration file was loaded! Param=MODULES
[2019-12-01 19:08:01:080] [WARN] Failed to load module libbuiltinreqs.so
[2019-12-01 19:08:01:080] [WARN] Failed to load module libscheme-shell.so
[2019-12-01 19:08:01:080] [WARN] Failed to load module libpy-shell.so
[2019-12-01 19:08:01:080] [WARN] Searched for module at /build/source/build/opencog/cogserver/modules/agents
[2019-12-01 19:08:01:080] [WARN] Searched for module at /build/source/build/opencog/cogserver/modules/commands
[2019-12-01 19:08:01:080] [WARN] Searched for module at /build/source/build/opencog/cogserver/modules/python
[2019-12-01 19:08:01:080] [WARN] Searched for module at /build/source/build/opencog/cogserver/modules/
[2019-12-01 19:08:01:080] [WARN] Searched for module at /build/source/build/opencog/cogserver/server/
[2019-12-01 19:08:01:080] [WARN] Searched for module at /build/source/build/opencog/cogserver/shell/
[2019-12-01 19:08:01:080] [WARN] Searched for module at ./
[2019-12-01 19:08:01:080] [WARN] Searched for module at .//opencog
[2019-12-01 19:08:01:080] [WARN] Searched for module at .//opencog/modules
[2019-12-01 19:08:01:080] [WARN] Searched for module at ../
[2019-12-01 19:08:01:080] [WARN] Searched for module at ..//opencog
[2019-12-01 19:08:01:080] [WARN] Searched for module at ..//opencog/modules
[2019-12-01 19:08:01:080] [WARN] Searched for module at ../../
[2019-12-01 19:08:01:080] [WARN] Searched for module at ../..//opencog
[2019-12-01 19:08:01:080] [WARN] Searched for module at ../..//opencog/modules
[2019-12-01 19:08:01:080] [WARN] Searched for module at ../../../
[2019-12-01 19:08:01:080] [WARN] Searched for module at ../../..//opencog
[2019-12-01 19:08:01:080] [WARN] Searched for module at ../../..//opencog/modules
[2019-12-01 19:08:01:080] [WARN] Searched for module at ../../../../
[2019-12-01 19:08:01:080] [WARN] Searched for module at ../../../..//opencog
[2019-12-01 19:08:01:080] [WARN] Searched for module at ../../../..//opencog/modules
[2019-12-01 19:08:01:080] [WARN] Searched for module at "/nix/store/9alg7ppgpxld1gw1xlwc7wgpkwc0c4l7-cogutil"/lib
[2019-12-01 19:08:01:080] [WARN] Searched for module at "/nix/store/9alg7ppgpxld1gw1xlwc7wgpkwc0c4l7-cogutil"/lib/opencog
[2019-12-01 19:08:01:080] [WARN] Searched for module at "/nix/store/9alg7ppgpxld1gw1xlwc7wgpkwc0c4l7-cogutil"/lib/opencog/modules
[2019-12-01 19:08:01:080] [WARN] Searched for module at "/nix/store/9alg7ppgpxld1gw1xlwc7wgpkwc0c4l7-cogutil"/share
[2019-12-01 19:08:01:080] [WARN] Searched for module at "/nix/store/9alg7ppgpxld1gw1xlwc7wgpkwc0c4l7-cogutil"/share/opencog
[2019-12-01 19:08:01:080] [WARN] Searched for module at "/nix/store/9alg7ppgpxld1gw1xlwc7wgpkwc0c4l7-cogutil"/share/opencog/modules
[2019-12-01 19:08:01:080] [WARN] Searched for module at /nix/store/9alg7ppgpxld1gw1xlwc7wgpkwc0c4l7-cogutil/share/opencog
[2019-12-01 19:08:01:080] [WARN] Searched for module at /nix/store/9alg7ppgpxld1gw1xlwc7wgpkwc0c4l7-cogutil/share/opencog/opencog
[2019-12-01 19:08:01:080] [WARN] Searched for module at /nix/store/9alg7ppgpxld1gw1xlwc7wgpkwc0c4l7-cogutil/share/opencog/opencog/modules
[2019-12-01 19:08:01:080] [WARN] Searched for module at /usr/local/lib64/
[2019-12-01 19:08:01:080] [WARN] Searched for module at /usr/local/lib64//opencog
[2019-12-01 19:08:01:080] [WARN] Searched for module at /usr/local/lib64//opencog/modules
[2019-12-01 19:08:01:080] [WARN] Searched for module at /usr/local/lib/
[2019-12-01 19:08:01:080] [WARN] Searched for module at /usr/local/lib//opencog
[2019-12-01 19:08:01:080] [WARN] Searched for module at /usr/local/lib//opencog/modules
[2019-12-01 19:08:01:080] [WARN] Searched for module at /usr/local/share/
[2019-12-01 19:08:01:080] [WARN] Searched for module at /usr/local/share//opencog
[2019-12-01 19:08:01:080] [WARN] Searched for module at /usr/local/share//opencog/modules
[2019-12-01 19:08:01:080] [WARN] Searched for module at /usr/lib64/
[2019-12-01 19:08:01:080] [WARN] Searched for module at /usr/lib64//opencog
[2019-12-01 19:08:01:080] [WARN] Searched for module at /usr/lib64//opencog/modules
[2019-12-01 19:08:01:080] [WARN] Searched for module at /usr/lib/
[2019-12-01 19:08:01:080] [WARN] Searched for module at /usr/lib//opencog
[2019-12-01 19:08:01:080] [WARN] Searched for module at /usr/lib//opencog/modules
[2019-12-01 19:08:01:080] [WARN] Searched for module at /usr/share/
[2019-12-01 19:08:01:080] [WARN] Searched for module at /usr/share//opencog
[2019-12-01 19:08:01:080] [WARN] Searched for module at /usr/share//opencog/modules
[2019-12-01 19:08:01:080] [WARN] Searched for module at /opt/
[2019-12-01 19:08:01:080] [WARN] Searched for module at /opt//opencog
[2019-12-01 19:08:01:080] [WARN] Searched for module at /opt//opencog/modules
[2019-12-01 19:08:01:080] [WARN] Searched for module at /
[2019-12-01 19:08:01:080] [WARN] Searched for module at //opencog
[2019-12-01 19:08:01:080] [WARN] Searched for module at //opencog/modules
[2019-12-01 19:08:01:080] [WARN] Failed to load module libagents.so
[2019-12-01 19:08:01:080] [WARN] Searched for module at /build/source/build/opencog/cogserver/modules/agents
[2019-12-01 19:08:01:080] [WARN] Searched for module at /build/source/build/opencog/cogserver/modules/commands
[2019-12-01 19:08:01:080] [WARN] Searched for module at /build/source/build/opencog/cogserver/modules/python
[2019-12-01 19:08:01:080] [WARN] Searched for module at /build/source/build/opencog/cogserver/modules/
[2019-12-01 19:08:01:080] [WARN] Searched for module at /build/source/build/opencog/cogserver/server/
[2019-12-01 19:08:01:080] [WARN] Searched for module at /build/source/build/opencog/cogserver/shell/
[2019-12-01 19:08:01:080] [WARN] Searched for module at ./
[2019-12-01 19:08:01:080] [WARN] Searched for module at .//opencog
[2019-12-01 19:08:01:080] [WARN] Searched for module at .//opencog/modules
[2019-12-01 19:08:01:080] [WARN] Searched for module at ../
[2019-12-01 19:08:01:080] [WARN] Searched for module at ..//opencog
[2019-12-01 19:08:01:080] [WARN] Searched for module at ..//opencog/modules
[2019-12-01 19:08:01:080] [WARN] Searched for module at ../../
[2019-12-01 19:08:01:080] [WARN] Searched for module at ../..//opencog
[2019-12-01 19:08:01:080] [WARN] Searched for module at ../..//opencog/modules
[2019-12-01 19:08:01:080] [WARN] Searched for module at ../../../
[2019-12-01 19:08:01:080] [WARN] Searched for module at ../../..//opencog
[2019-12-01 19:08:01:080] [WARN] Searched for module at ../../..//opencog/modules
[2019-12-01 19:08:01:080] [WARN] Searched for module at ../../../../
[2019-12-01 19:08:01:080] [WARN] Searched for module at ../../../..//opencog
[2019-12-01 19:08:01:080] [WARN] Searched for module at ../../../..//opencog/modules
[2019-12-01 19:08:01:080] [WARN] Searched for module at "/nix/store/9alg7ppgpxld1gw1xlwc7wgpkwc0c4l7-cogutil"/lib
[2019-12-01 19:08:01:080] [WARN] Searched for module at "/nix/store/9alg7ppgpxld1gw1xlwc7wgpkwc0c4l7-cogutil"/lib/opencog
[2019-12-01 19:08:01:080] [WARN] Searched for module at "/nix/store/9alg7ppgpxld1gw1xlwc7wgpkwc0c4l7-cogutil"/lib/opencog/modules
[2019-12-01 19:08:01:080] [WARN] Searched for module at "/nix/store/9alg7ppgpxld1gw1xlwc7wgpkwc0c4l7-cogutil"/share
[2019-12-01 19:08:01:080] [WARN] Searched for module at "/nix/store/9alg7ppgpxld1gw1xlwc7wgpkwc0c4l7-cogutil"/share/opencog
[2019-12-01 19:08:01:080] [WARN] Searched for module at "/nix/store/9alg7ppgpxld1gw1xlwc7wgpkwc0c4l7-cogutil"/share/opencog/modules
[2019-12-01 19:08:01:080] [WARN] Searched for module at /nix/store/9alg7ppgpxld1gw1xlwc7wgpkwc0c4l7-cogutil/share/opencog
[2019-12-01 19:08:01:080] [WARN] Searched for module at /nix/store/9alg7ppgpxld1gw1xlwc7wgpkwc0c4l7-cogutil/share/opencog/opencog
[2019-12-01 19:08:01:080] [WARN] Searched for module at /nix/store/9alg7ppgpxld1gw1xlwc7wgpkwc0c4l7-cogutil/share/opencog/opencog/modules
[2019-12-01 19:08:01:080] [WARN] Searched for module at /usr/local/lib64/
[2019-12-01 19:08:01:080] [WARN] Searched for module at /usr/local/lib64//opencog
[2019-12-01 19:08:01:080] [WARN] Searched for module at /usr/local/lib64//opencog/modules
[2019-12-01 19:08:01:080] [WARN] Searched for module at /usr/local/lib/
[2019-12-01 19:08:01:080] [WARN] Searched for module at /usr/local/lib//opencog
[2019-12-01 19:08:01:080] [WARN] Searched for module at /usr/local/lib//opencog/modules
[2019-12-01 19:08:01:080] [WARN] Searched for module at /usr/local/share/
[2019-12-01 19:08:01:080] [WARN] Searched for module at /usr/local/share//opencog
[2019-12-01 19:08:01:080] [WARN] Searched for module at /usr/local/share//opencog/modules
[2019-12-01 19:08:01:080] [WARN] Searched for module at /usr/lib64/
[2019-12-01 19:08:01:080] [WARN] Searched for module at /usr/lib64//opencog
[2019-12-01 19:08:01:080] [WARN] Searched for module at /usr/lib64//opencog/modules
[2019-12-01 19:08:01:080] [WARN] Searched for module at /usr/lib/
[2019-12-01 19:08:01:080] [WARN] Searched for module at /usr/lib//opencog
[2019-12-01 19:08:01:080] [WARN] Searched for module at /usr/lib//opencog/modules
[2019-12-01 19:08:01:080] [WARN] Searched for module at /usr/share/
[2019-12-01 19:08:01:080] [WARN] Searched for module at /usr/share//opencog
[2019-12-01 19:08:01:080] [WARN] Searched for module at /usr/share//opencog/modules
[2019-12-01 19:08:01:080] [WARN] Searched for module at /opt/
[2019-12-01 19:08:01:080] [WARN] Searched for module at /opt//opencog
[2019-12-01 19:08:01:080] [WARN] Searched for module at /opt//opencog/modules
[2019-12-01 19:08:01:080] [WARN] Searched for module at /
[2019-12-01 19:08:01:080] [WARN] Searched for module at //opencog
[2019-12-01 19:08:01:080] [WARN] Searched for module at //opencog/modules
[2019-12-01 19:08:01:080] [INFO] [ModuleManager::getModuleData] module "opencog::AgentsModule" was not found.
Start 9: HebbianCreationModuleUTest
9/9 Test #9: HebbianCreationModuleUTest .......***Failed 0.08 sec
Running cxxtest tests (1 test)[2019-12-01 19:08:01:156] [ERROR] Parameter MAX_AF_SIZE has no associated value. (/home/radivarig/projects/opencog-dev/source/opencog/attention/AttentionParamQuery.cc:79)
Stack Trace:
2: /nix/store/9alg7ppgpxld1gw1xlwc7wgpkwc0c4l7-cogutil/lib64/opencog/libcogutil.so (opencog::Logger::logva(opencog::Logger::Level, char const*, __va_list_tag*) +0x102) [0x7f82dd0bb812]
3: /nix/store/9alg7ppgpxld1gw1xlwc7wgpkwc0c4l7-cogutil/lib64/opencog/libcogutil.so (opencog::Logger::Error::operator()(char const*, ...) +0x92) [0x7f82dd0bb9d2]
4: /nix/store/9alg7ppgpxld1gw1xlwc7wgpkwc0c4l7-cogutil/lib64/opencog/libcogutil.so (opencog::StandardException::parse_error_message(char const*, __va_list_tag*, bool) +0x62) [0x7f82dd0a7832]
5: /nix/store/9alg7ppgpxld1gw1xlwc7wgpkwc0c4l7-cogutil/lib64/opencog/libcogutil.so (opencog::StandardException::parse_error_message(char const*, char const*, __va_list_tag*, bool) +0xab) [0x7f82dd0a791b]
6: /nix/store/9alg7ppgpxld1gw1xlwc7wgpkwc0c4l7-cogutil/lib64/opencog/libcogutil.so (opencog::RuntimeException::RuntimeException(char const*, char const*, ...) +0xb4) [0x7f82dd0a7a64]
7: /home/radivarig/projects/opencog-dev/source/build/opencog/attention/libattention.so (opencog::AttentionParamQuery::get_param_value(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) +0x3bc) [0x7f82dd95d56c]
8: /home/radivarig/projects/opencog-dev/source/build/opencog/attention/libattention.so (opencog::AttentionModule::init() +0x2c9) [0x7f82dd9602f9]
9: /home/radivarig/projects/opencog-dev/source/build/opencog/attention/libattention.so (opencog::AttentionModule::AttentionModule(opencog::CogServer&) +0x171) [0x7f82dd961be1]
10: /home/radivarig/projects/opencog-dev/source/build/opencog/attention/libattention.so (` +0x21) [0x7f82dd962061]
11: /nix/store/j7zhgpvh77jgd7mf7jx57magdvixcjw2-cogserver/lib/opencog/libserver.so (opencog::ModuleManager::loadModule(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, opencog::CogServer&) +0x29e) [0x7f82dd9077be]
12: /nix/store/j7zhgpvh77jgd7mf7jx57magdvixcjw2-cogserver/lib/opencog/libserver.so (opencog::ModuleManager::loadModules(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >, opencog::CogServer&) +0x2c0) [0x7f82dd9082d0]
13: /home/radivarig/projects/opencog-dev/source/build/tests/attention/HebbianCreationModuleUTest() [0x411612]
14: /home/radivarig/projects/opencog-dev/source/build/tests/attention/HebbianCreationModuleUTest() [0x40c9f7]
15: /home/radivarig/projects/opencog-dev/source/build/tests/attention/HebbianCreationModuleUTest() [0x410018]
16: /home/radivarig/projects/opencog-dev/source/build/tests/attention/HebbianCreationModuleUTest() [0x40867f]
17: /nix/store/h0p0h3rh1q4i2yavzm3yqi716s9yaj2f-glibc-2.27/lib/libc.so.6 (` +0xee) [0x7f82dc97cb8e]
18: /home/radivarig/projects/opencog-dev/source/build/tests/attention/HebbianCreationModuleUTest() [0x408bba]
In HebbianCreationModuleUTest::testHebbianLinkCreation:
/home/radivarig/projects/opencog-dev/source/tests/attention/HebbianCreationModuleUTest.cxxtest:83: Error: Test failed: Parameter MAX_AF_SIZE has no associated value. (/home/radivarig/projects/opencog-dev/source/opencog/attention/AttentionParamQuery.cc:79)
Failed 1 and Skipped 0 of 1 test
Success rate: 0%
67% tests passed, 3 tests failed out of 9
Total Test time (real) = 0.73 sec
The following tests FAILED:
7 - AttentionParamQueryUTest (Failed)
8 - ImportanceDiffusionUTest (SEGFAULT)
9 - HebbianCreationModuleUTest (Failed)
Errors while running CTest
make[3]: *** [CMakeFiles/test.dir/build.make:58: CMakeFiles/test] Error 8
make[3]: Leaving directory '/home/radivarig/projects/opencog-dev/source/build'
make[2]: *** [CMakeFiles/Makefile2:144: CMakeFiles/test.dir/all] Error 2
make[2]: Leaving directory '/home/radivarig/projects/opencog-dev/source/build'
make[1]: *** [CMakeFiles/Makefile2:151: CMakeFiles/test.dir/rule] Error 2
make[1]: Leaving directory '/home/radivarig/projects/opencog-dev/source/build'
make: *** [Makefile:212: test] Error 2
For some reason extending LD_LIBRARY_PATH
with *.so
files was not enough, so I copied over the needed files into one of the generated search paths.
I should find a better way to handle these shared folders.