[Debian-ha-maintainers] libqb autopkgtest

Valentin Vidic Valentin.Vidic at CARNet.hr
Mon Dec 19 10:14:31 UTC 2016


On Mon, Dec 19, 2016 at 10:05:46AM +0100, Ferenc Wágner wrote:
> You added an autopkgtest to libqb in b8725c0.  I don't know why it
> fails.  At first sight, however, this test does not use the installed
> package at all (which would be the point of autopkgtest AFAIUI), but
> runs from the build tree.  Don't you think it would be better to turn
> this test into a build-time check (after making sure it succeeds)?  Or
> simply drop it if it doesn't add much to the fairly extensive Automake
> tests?

ipcserver: error while loading shared libraries: libglib-2.0.so.0: cannot open shared object file: No such file or directory

Seems like a missing dependency somewhere? After installing libglib2.0-0:

# ./debian/tests/ipc 
ipcserver: no process found
lt-ipcserver: no process found
+ sleep 1
+ examples/ipcserver
+ echo this-is-a-test
+ echo q
+ examples/ipcclient
ringbuffer.c:238 [debug] shm size:1048589; real_size:1052672; rb->word_size:263168
ringbuffer.c:238 [debug] shm size:1048589; real_size:1052672; rb->word_size:263168
ringbuffer.c:238 [debug] shm size:1048589; real_size:1052672; rb->word_size:263168
SEND (q or Q to quit) : waiting for recv
recv 38
Response[13]: ACK 272 bytes 
ipcc.c:398 [debug] qb_ipcc_disconnect()
ringbuffer.c:290 [trace] ENTERING qb_rb_close()
ringbuffer_helper.c:342 [debug] Closing ringbuffer: /dev/shm/qb-ipcserver-request-2841-2857-9-header
ringbuffer.c:290 [trace] ENTERING qb_rb_close()
ringbuffer_helper.c:342 [debug] Closing ringbuffer: /dev/shm/qb-ipcserver-response-2841-2857-9-header
ringbuffer.c:290 [trace] ENTERING qb_rb_close()
ringbuffer_helper.c:342 [debug] Closing ringbuffer: /dev/shm/qb-ipcserver-event-2841-2857-9-header
SEND (q or Q to quit) : + killall ipcserver lt-ipcserver
lt-ipcserver: no process found
+ :
+ cat ipc.out
ipc_setup.c:537 [info] server name: ipcserver
loop_poll.c:368 [trace] grown poll array to 2 for FD 7
loop_poll.c:368 [trace] grown poll array to 3 for FD 9
ipc_setup.c:647 [debug] IPC credentials authenticated (2841-2857-9)
ipc_shm.c:285 [debug] connecting to client [2857]
ringbuffer.c:238 [debug] shm size:1048589; real_size:1052672; rb->word_size:263168
ringbuffer.c:238 [debug] shm size:1048589; real_size:1052672; rb->word_size:263168
ringbuffer.c:238 [debug] shm size:1048589; real_size:1052672; rb->word_size:263168
loop_poll.c:368 [trace] grown poll array to 4 for FD 9
ipcserver.c:66 [info] Connection created (active:1, closed:0)
ipcserver.c:122 [debug] msg received (id:3, size:272, data:this-is-a-test)
ipcs.c:759 [debug] HUP conn (2841-2857-9)
ipcs.c:606 [debug] qb_ipcs_disconnect(2841-2857-9) state:2
ipcserver.c:86 [info] Connection to pid:2857 destroyed (active:0, closed:1)
ipcserver.c:88 [debug]  Requests     1
ipcserver.c:89 [debug]  Responses    1
ipcserver.c:90 [debug]  Events       0
ipcserver.c:91 [debug]  Send retries 0
ipcserver.c:92 [debug]  Recv retries 0
ipcserver.c:93 [debug]  FC state     0
ipcserver.c:94 [debug]  FC count     0
ipcserver.c:72 [info] Connection about to be freed
ringbuffer.c:290 [trace] ENTERING qb_rb_close()
ringbuffer_helper.c:337 [debug] Free'ing ringbuffer: /dev/shm/qb-ipcserver-response-2841-2857-9-header
ringbuffer_helper.c:91 [trace] ENTERING my_posix_sem_destroy()
ringbuffer.c:290 [trace] ENTERING qb_rb_close()
ringbuffer_helper.c:337 [debug] Free'ing ringbuffer: /dev/shm/qb-ipcserver-event-2841-2857-9-header
ringbuffer_helper.c:91 [trace] ENTERING my_posix_sem_destroy()
ringbuffer.c:290 [trace] ENTERING qb_rb_close()
ringbuffer_helper.c:337 [debug] Free'ing ringbuffer: /dev/shm/qb-ipcserver-request-2841-2857-9-header
ringbuffer_helper.c:91 [trace] ENTERING my_posix_sem_destroy()
+ grep this-is-a-test ipc.out
ipcserver.c:122 [debug] msg received (id:3, size:272, data:this-is-a-test)
+ rm -f ipc.out

-- 
Valentin



More information about the Debian-ha-maintainers mailing list