Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.0.11: test suite fails on Failed to register static DAQ module #23

Open
kloczek opened this issue Jun 3, 2023 · 2 comments
Open

3.0.11: test suite fails on Failed to register static DAQ module #23

kloczek opened this issue Jun 3, 2023 · 2 comments

Comments

@kloczek
Copy link

kloczek commented Jun 3, 2023

+ cd libdaq-3.0.11
+ /usr/bin/make -O -j48 V=1 VERBOSE=1 check
Making check in api
make[1]: Nothing to be done for 'check'.
Making check in modules
make[1]: Nothing to be done for 'check'.
Making check in example
make[1]: Nothing to be done for 'check'.
Making check in test
/usr/bin/make  api_base_test api_config_test
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libdaq-3.0.11/test'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I..  -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option  -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs   -I../api -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o api_config_test-daq_test_module.o `test -f 'daq_test_module.c' || echo './'`daq_test_module.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libdaq-3.0.11/test'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libdaq-3.0.11/test'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I..  -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option  -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs   -I../api -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o api_base_test-mock_stdio.o `test -f 'mock_stdio.c' || echo './'`mock_stdio.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libdaq-3.0.11/test'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libdaq-3.0.11/test'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I..  -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option  -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs   -I../api -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o api_base_test-daq_test_module.o `test -f 'daq_test_module.c' || echo './'`daq_test_module.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libdaq-3.0.11/test'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libdaq-3.0.11/test'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I..  -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option  -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs   -I../api -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o api_config_test-api_config_test.o `test -f 'api_config_test.c' || echo './'`api_config_test.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libdaq-3.0.11/test'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libdaq-3.0.11/test'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I..  -fvisibility=hidden -Wall -Wmissing-declarations -Wpointer-arith -Wcast-align -Wcast-qual -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wextra -Wsign-compare -Wno-unused-parameter -fno-strict-aliasing -fdiagnostics-show-option  -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs   -I../api -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o api_base_test-api_base_test.o `test -f 'api_base_test.c' || echo './'`api_base_test.c
api_base_test.c: In function 'test_daq_load_modules':
api_base_test.c:238:6: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual]
  238 |     *(uint32_t *) &test1_module.module_version = TEST1_MODULE_VERSION;
      |      ^
api_base_test.c:242:6: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual]
  242 |     *(uint32_t *) &test2_module.module_version = TEST2_MODULE_VERSION;
      |      ^
api_base_test.c:246:6: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual]
  246 |     *(uint32_t *) &test3_module.api_version = TEST3_MODULE_API_VERSION;
      |      ^
api_base_test.c:247:6: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual]
  247 |     *(uint32_t *) &test3_module.module_version = TEST3_MODULE_VERSION;
      |      ^
api_base_test.c:251:6: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual]
  251 |     *(uint32_t *) &test4_module.api_size = TEST4_MODULE_API_SIZE;
      |      ^
api_base_test.c:252:6: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual]
  252 |     *(uint32_t *) &test4_module.module_version = TEST4_MODULE_VERSION;
      |      ^
api_base_test.c:256:6: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual]
  256 |     *(uint32_t *) &test5_module.api_version = DAQ_MODULE_API_VERSION;
      |      ^
api_base_test.c:257:6: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual]
  257 |     *(uint32_t *) &test5_module.api_size = sizeof(DAQ_ModuleAPI_t);
      |      ^
api_base_test.c:258:6: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual]
  258 |     *(uint32_t *) &test5_module.module_version = TEST5_MODULE_VERSION;
      |      ^
api_base_test.c:260:6: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual]
  260 |     *(uint32_t *) &test5_module.type = TEST_MODULE_TYPE;
      |      ^
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libdaq-3.0.11/test'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libdaq-3.0.11/test'
/bin/sh ../libtool  --tag=CC   --mode=link /usr/bin/gcc -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs   -I../api -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none   -static-libtool-libs -Wl,--gc-sections -Wl,--as-needed -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,--build-id=sha1 -o api_config_test api_config_test-api_config_test.o api_config_test-daq_test_module.o ../api/libdaq.la -ldl -lcmocka
libtool: link: /usr/bin/gcc -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -I../api -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Wl,--gc-sections -Wl,--as-needed -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,--build-id=sha1 -o api_config_test api_config_test-api_config_test.o api_config_test-daq_test_module.o  ../api/.libs/libdaq.so -ldl -lcmocka -Wl,-rpath -Wl,/home/tkloczko/rpmbuild/BUILD/libdaq-3.0.11/api/.libs
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libdaq-3.0.11/test'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libdaq-3.0.11/test'
/bin/sh ../libtool  --tag=CC   --mode=link /usr/bin/gcc -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs   -I../api -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none   -static-libtool-libs -Wl,--wrap,printf -Wl,--wrap,__printf_chk -Wl,--wrap,fprintf -Wl,--wrap,__fprintf_chk -Wl,--wrap,opendir -Wl,--wrap,readdir -Wl,--wrap,closedir -Wl,--wrap,stat -Wl,--wrap,__xstat -Wl,--wrap,dlopen -Wl,--wrap,dlsym -Wl,--wrap,dlclose -Wl,--gc-sections -Wl,--as-needed -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,--build-id=sha1 -o api_base_test api_base_test-api_base_test.o api_base_test-daq_test_module.o api_base_test-mock_stdio.o ../api/libdaq.la -ldl -lcmocka
libtool: link: /usr/bin/gcc -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wnested-externs -I../api -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Wl,--wrap -Wl,printf -Wl,--wrap -Wl,__printf_chk -Wl,--wrap -Wl,fprintf -Wl,--wrap -Wl,__fprintf_chk -Wl,--wrap -Wl,opendir -Wl,--wrap -Wl,readdir -Wl,--wrap -Wl,closedir -Wl,--wrap -Wl,stat -Wl,--wrap -Wl,__xstat -Wl,--wrap -Wl,dlopen -Wl,--wrap -Wl,dlsym -Wl,--wrap -Wl,dlclose -Wl,--gc-sections -Wl,--as-needed -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,--build-id=sha1 -o api_base_test api_base_test-api_base_test.o api_base_test-daq_test_module.o api_base_test-mock_stdio.o  ../api/.libs/libdaq.so -ldl -lcmocka -Wl,-rpath -Wl,/home/tkloczko/rpmbuild/BUILD/libdaq-3.0.11/api/.libs
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libdaq-3.0.11/test'
/usr/bin/make  check-TESTS
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libdaq-3.0.11/test'
PASS: api_config_test
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libdaq-3.0.11/test'
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libdaq-3.0.11/test'
FAIL: api_base_test
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libdaq-3.0.11/test'
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libdaq-3.0.11/test'
========================================
   libdaq 3.0.11: test/test-suite.log
========================================

# TOTAL: 2
# PASS:  1
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: api_base_test
===================

[==========] tests: Running 4 test(s).
[ RUN      ] test_verbosity
[  ERROR   ] --- "" != "DAQ verbosity level is set to 3.
"
[   LINE   ] --- api_base_test.c:58: error: Failure!
DAQ verbosity level is set to 3.
[  FAILED  ] test_verbosity
[ RUN      ] test_string_translation
[       OK ] test_string_translation
[ RUN      ] test_non_existent_dynamic_path
[  ERROR   ] --- "" != "Unable to open directory "."
"
[   LINE   ] --- api_base_test.c:209: error: Failure!
Loading modules in: .
[  FAILED  ] test_non_existent_dynamic_path
[ RUN      ] test_daq_load_modules
Test (1): Failed to register static DAQ module.
[static]: Module API version (0x30000) differs from expected version (0x30001)
BadAPIVersionTest (3): Failed to register static DAQ module.
[static]: Module API structure size (196609) differs from the expected size (216)
BadAPISizeTest (4): Failed to register static DAQ module.
MissingFunctionsTest: Module API is missing required functions!
MissingFunctionsTest (5): Failed to register static DAQ module.
[  ERROR   ] --- module
[   LINE   ] --- api_base_test.c:313: error: Failure!
Registered daq module: Test
DAQ module with name 'Test' was already loaded with version 1 (versus 1)!
Registered daq module: Test
Static modules: 6
Loading modules in: .
[  FAILED  ] test_daq_load_modules
[==========] tests: 4 test(s) run.
[  PASSED  ] 1 test(s).
[  FAILED  ] tests: 3 test(s), listed below:
[  FAILED  ] test_verbosity
[  FAILED  ] test_non_existent_dynamic_path
[  FAILED  ] test_daq_load_modules

 3 FAILED TEST(S)
FAIL api_base_test (exit status: 3)

============================================================================
Testsuite summary for libdaq 3.0.11
============================================================================
# TOTAL: 2
# PASS:  1
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
============================================================================
See test/test-suite.log
Please report to [email protected]
============================================================================
make[3]: *** [Makefile:830: test-suite.log] Error 1
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libdaq-3.0.11/test'
make[2]: *** [Makefile:938: check-TESTS] Error 2
make[1]: *** [Makefile:1018: check-am] Error 2
make: *** [Makefile:567: check-recursive] Error 1
@kloczek
Copy link
Author

kloczek commented Jun 20, 2023

Gentle ping .. 🤔

@kloczek
Copy link
Author

kloczek commented Jan 19, 2024

Gentle ping .. any update? 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant