To actually run the tests, run make allTests (cd ../lang/python/test; ./run.sh) #### ../../../test/setupAndRun.sh: Running git pull in /home/cxh/src/ptII/vendors/gdp/gdp_router Already up-to-date. #### ../../../test/setupAndRun.sh: Removing /home/cxh/src/ptII/vendors/gdp/gcls and then recreating it. #### ../../../test/setupAndRun.sh: Set up /home/cxh/src/ptII/vendors/gdp/ep_adm_params To run with these settings from the command line, use: export EP_PARAM_PATH=/home/cxh/src/ptII/vendors/gdp/ep_adm_params #### ../../../test/setupAndRun.sh: Starting gdp_router Command to start gdp_router (cd /home/cxh/src/ptII/vendors/gdp/gdp_router; python ./src/gdp_router.py -l routerLog.txt) & #### ../../../test/setupAndRun.sh: Starting gdplogd Command to start gdplogd: /home/cxh/src/ptII/vendors/gdp/gdp/gdplogd/gdplogd -F -N terra.EECS.Berkeley.EDU & #### Creating log gdp.runTests.21260 Command to create a log: /home/cxh/src/ptII/vendors/gdp/gdp/apps/gcl-create -k none -s terra.EECS.Berkeley.EDU gdp.runTests.21260 exiting with status OK Created new GCL KTGuDUkba49aBnHBfsr8gemRHC0JDhQ3mbMd8TL3HWA on log server terra.EECS.Berkeley.EDU ../../../test/setupAndRun.sh: Invoking ../../../test/_internalRunPythonTests.sh gdp.runTests.21260 Command: py.test --logName=gdp.runTests.21260 #### py.test -v --logName=gdp.runTests.21260 =============================================================== test session starts =============================================================== platform linux2 -- Python 2.7.10, pytest-2.9.2, py-1.4.31, pluggy-0.3.1 -- /usr/local/python/bin/python cachedir: .cache rootdir: /home/cxh/src/ptII/vendors/gdp/gdp/lang/python/test, inifile: collecting ... collected 4 items KVStore_test.py::test_KVStore PASSED test_rw.py::test_answer PASSED writer_subscriber2_test.py::test_answer PASSED writer_subscriber_test.py::test_answer PASSED ============================================================ 4 passed in 0.14 seconds ============================================================= #### ../../../test/setupAndRun.sh: Stopping gdplogd and gdp_router ../../../test/setupAndRun.sh: line 138: kill: (47241) - No such process 2017-04-11 12:44:39.336891 -0700 gdplogd: Terminating on signal 15 ./run.sh #### ./setupAndRun.sh: Running git pull in /home/cxh/src/ptII/vendors/gdp/gdp_router My GDP routing name = terra.EECS.Berkeley.EDU Already up-to-date. #### ./setupAndRun.sh: Removing /home/cxh/src/ptII/vendors/gdp/gcls and then recreating it. #### ./setupAndRun.sh: Set up /home/cxh/src/ptII/vendors/gdp/ep_adm_params To run with these settings from the command line, use: export EP_PARAM_PATH=/home/cxh/src/ptII/vendors/gdp/ep_adm_params #### ./setupAndRun.sh: Starting gdp_router Command to start gdp_router (cd /home/cxh/src/ptII/vendors/gdp/gdp_router; python ./src/gdp_router.py -l routerLog.txt) & #### ./setupAndRun.sh: Starting gdplogd Command to start gdplogd: /home/cxh/src/ptII/vendors/gdp/gdp/gdplogd/gdplogd -F -N terra.EECS.Berkeley.EDU & #### Creating log gdp.runTests.28330 Command to create a log: /home/cxh/src/ptII/vendors/gdp/gdp/apps/gcl-create -k none -s terra.EECS.Berkeley.EDU gdp.runTests.28330 exiting with status OK Created new GCL rd5P6yEpoSGde8zl6FtlrRIihcqyPywEvznlfrnQYg8 on log server terra.EECS.Berkeley.EDU ./setupAndRun.sh: Invoking ./_internalRunPythonTests.sh run_tests.py gdp.runTests.28330 Command: py.test run_tests.py --logName=gdp.runTests.28330 #### py.test -v run_tests.py --logName=gdp.runTests.28330 =============================================================== test session starts =============================================================== platform linux2 -- Python 2.7.10, pytest-2.9.2, py-1.4.31, pluggy-0.3.1 -- /usr/local/python/bin/python cachedir: .cache rootdir: /home/cxh/src/ptII/vendors/gdp/gdp/test, inifile: collecting ... collected 4 items run_tests.py::test_t_fwd_append FAILED run_tests.py::test_gcl_create PASSED run_tests.py::test_t_multimultiread FAILED run_tests.py::test_t_sub_and_append PASSED ==================================================================== FAILURES ===================================================================== ________________________________________________________________ test_t_fwd_append ________________________________________________________________ logName = 'gdp.runTests.28330' def test_t_fwd_append(logName): > subprocess.check_call(["./t_fwd_append", "-D *=18", logName, socket.gethostname()]) run_tests.py:42: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ popenargs = (['./t_fwd_append', '-D *=18', 'gdp.runTests.28330', 'terra.EECS.Berkeley.EDU'],), kwargs = {}, retcode = 1 cmd = ['./t_fwd_append', '-D *=18', 'gdp.runTests.28330', 'terra.EECS.Berkeley.EDU'] def check_call(*popenargs, **kwargs): """Run command with arguments. Wait for command to complete. If the exit code was zero then return, otherwise raise CalledProcessError. The CalledProcessError object will have the return code in the returncode attribute. The arguments are the same as for the Popen constructor. Example: check_call(["ls", "-l"]) """ retcode = call(*popenargs, **kwargs) if retcode: cmd = kwargs.get("args") if cmd is None: cmd = popenargs[0] > raise CalledProcessError(retcode, cmd) E CalledProcessError: Command '['./t_fwd_append', '-D *=18', 'gdp.runTests.28330', 'terra.EECS.Berkeley.EDU']' returned non-zero exit status 1 /usr/local/python/lib/python2.7/subprocess.py:540: CalledProcessError -------------------------------------------------------------- Captured stdout call --------------------------------------------------------------- : Cache exhausted : All for now -------------------------------------------------------------- Captured stderr call --------------------------------------------------------------- [INFO] t_fwd_append: Forwarding append to log gdp.runTests.28330 on server terra.EECS.Berkeley.EDU _gdp_lib_init(NULL) @(#)libgdp 0.7.2 (2017-04-11 12:43) 00cf2f7b1b4a3d02447767de3faf5b7912f7400d My GDP routing name = j64Q59AQ584C4iKPs3SMN0AzjLhHLxnwmt69FMIMWMk gdp_lib_init: OK Trying Zeroconf: _gdp_chan_open(localhost) Trying localhost _gdp_chan_open: talking to router at localhost:8007 _gdp_req_new: allocated new pdu @ 0x7a1160 _gdp_pdu_out, fd = 14, basemd = (nil): CMD_ADVERTISE gdp_init: OK [INFO] t_fwd_append: gdp_init: OK [INFO] t_fwd_append: gdp_parse_name(gdp.runTests.28330): OK [INFO] t_fwd_append: gdp_parse_name(terra.EECS.Berkeley.EDU): OK _gdp_req_new: allocated new pdu @ 0x7a1160 >>> _gdp_invoke(req=0x7a1050 rid=1): CMD_OPEN_RA (75), gcl@0x7a1cd0 datum @ 0x79e7d0: recno -1, len 0, no timestamp _gdp_pdu_out, fd = 14, basemd = (nil): CMD_OPEN_RA _gdp_pdu_in(ACK_SUCCESS) => OK *** Processing ack/nak 128=ACK_SUCCESS from socket 14 _gdp_req_dispatch >>> ACK_SUCCESS (128) [gcl->refcnt 2] _gdp_req_dispatch <<< ACK_SUCCESS [gcl->refcnt 2] OK [200 = 0xc8] <<< _gdp_invoke(0x7a1050 rid=1) CMD_OPEN_RA: OK [200 = 0xc8] Opened GCL rd5P6yEpoSGde8zl6FtlrRIihcqyPywEvznlfrnQYg8 <<< gdp_gcl_open(rd5P6yEpoSGde8zl6FtlrRIihcqyPywEvznlfrnQYg8): OK [INFO] t_fwd_append: gdp_gcl_open: OK Assertion failed at t_fwd_append:gdp_gcl_ops.c:870: mutex &gcl->mutex (0x7a1cd0) is not locked (should be 47353) Assertion failed at t_fwd_append:gdp_req.c:131: mutex &gcl->mutex (0x7a1cd0) is not locked (should be 47353) _gdp_gcl_fwd_append => ABORT: assertion failure [EPLIB:generic:9] [FATAL] t_fwd_append: Cannot fwd_append: ABORT: assertion failure [EPLIB:generic:9] (exiting) ______________________________________________________________ test_t_multimultiread ______________________________________________________________ logName = 'gdp.runTests.28330' def test_t_multimultiread(logName): > subprocess.check_call(["./t_multimultiread", "-D gdp.proto=37", logName]) run_tests.py:58: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ popenargs = (['./t_multimultiread', '-D gdp.proto=37', 'gdp.runTests.28330'],), kwargs = {}, retcode = 1 cmd = ['./t_multimultiread', '-D gdp.proto=37', 'gdp.runTests.28330'] def check_call(*popenargs, **kwargs): """Run command with arguments. Wait for command to complete. If the exit code was zero then return, otherwise raise CalledProcessError. The CalledProcessError object will have the return code in the returncode attribute. The arguments are the same as for the Popen constructor. Example: check_call(["ls", "-l"]) """ retcode = call(*popenargs, **kwargs) if retcode: cmd = kwargs.get("args") if cmd is None: cmd = popenargs[0] > raise CalledProcessError(retcode, cmd) E CalledProcessError: Command '['./t_multimultiread', '-D gdp.proto=37', 'gdp.runTests.28330']' returned non-zero exit status 1 /usr/local/python/lib/python2.7/subprocess.py:540: CalledProcessError -------------------------------------------------------------- Captured stdout call --------------------------------------------------------------- gdp_init: OK gdp_parse_name: OK gdp_gcl_open: OK -------------------------------------------------------------- Captured stderr call --------------------------------------------------------------- _gdp_advertise => OK >>> _gdp_invoke(req=0x23de050 rid=1): CMD_OPEN_RO (68), gcl@0x23decd0 datum @ 0x23db7d0: recno -1, len 0, no timestamp _gdp_invoke: sending 68, retries=2 _gdp_invoke: waiting on 0x23de050 _gdp_req_dispatch >>> ACK_SUCCESS (128) [gcl->refcnt 2], req@0x23de050: nextrec=0, numrecs=0, chan=0x23da3f0 postproc=(nil), sub_cb=(nil), udata=(nil) state=WAITING, stat=OK act_ts=2017-04-11 19:44:44.353192000Z flags=0x540 GCL@0x23decd0: rd5P6yEpoSGde8zl6FtlrRIihcqyPywEvznlfrnQYg8 iomode = 1, refcnt = 2, reqs = (nil), nrecs = 0 flags = 0xa cPDU@0x23de160: v=3, ttl=15, rsvd1=0, cmd=68=CMD_OPEN_RO dst=rd5P6yEpoSGde8zl6FtlrRIihcqyPywEvznlfrnQYg8 src=dNlw5YMBJk5wc9mqjSH7KTaKoW7x_7HhyhvBtXdbiGY rid=1, olen=0, chan=(nil), seqno=0 flags=0 datum=0x23db7d0, recno=(none), dbuf=0x23dd8a0, dlen=0 ts=(none) sigmdalg=0x0, siglen=0, sig=(nil) total header=80 rPDU@0x7fc660000db0: v=3, ttl=15, rsvd1=0, cmd=128=ACK_SUCCESS dst=dNlw5YMBJk5wc9mqjSH7KTaKoW7x_7HhyhvBtXdbiGY src=rd5P6yEpoSGde8zl6FtlrRIihcqyPywEvznlfrnQYg8 rid=1, olen=8, chan=0x23da3f0, seqno=0 flags=0x2 datum=0x7fc660000e30, recno=0, dbuf=0x7fc660000eb0, dlen=101 ts=(none) sigmdalg=0x0, siglen=0, sig=(nil) total header=96 ack_success: received ACK_SUCCESS for CMD_OPEN_RO _gdp_req_dispatch <<< ACK_SUCCESS [gcl->refcnt 2] OK [200 = 0xc8] <<< _gdp_invoke(0x23de050 rid=1) CMD_OPEN_RO: OK [200 = 0xc8] req@0x23de050: nextrec=0, numrecs=0, chan=0x23da3f0 postproc=(nil), sub_cb=(nil), udata=(nil) state=ACTIVE, stat=OK [200 = 0xc8] act_ts=2017-04-11 19:44:44.353299000Z flags=0x543 GCL@0x23decd0: rd5P6yEpoSGde8zl6FtlrRIihcqyPywEvznlfrnQYg8 iomode = 1, refcnt = 2, reqs = (nil), nrecs = 0 flags = 0xe cPDU@0x23de160: v=3, ttl=15, rsvd1=0, cmd=68=CMD_OPEN_RO dst=rd5P6yEpoSGde8zl6FtlrRIihcqyPywEvznlfrnQYg8 src=dNlw5YMBJk5wc9mqjSH7KTaKoW7x_7HhyhvBtXdbiGY rid=1, olen=0, chan=(nil), seqno=0 flags=0 datum=(nil) total header=80 rPDU@0x7fc660000db0: v=3, ttl=15, rsvd1=0, cmd=128=ACK_SUCCESS dst=dNlw5YMBJk5wc9mqjSH7KTaKoW7x_7HhyhvBtXdbiGY src=rd5P6yEpoSGde8zl6FtlrRIihcqyPywEvznlfrnQYg8 rid=1, olen=8, chan=0x23da3f0, seqno=0 flags=0x2 datum=0x23db7d0, recno=0, dbuf=0x23dd8a0, dlen=101 ts=(none) sigmdalg=0x0, siglen=0, sig=(nil) total header=96 >>> _gdp_invoke(req=0x23de050 rid=2): CMD_MULTIREAD (73), gcl@0x23decd0 datum @ 0x23db7d0: recno 1, len 4, no timestamp 00000000 00 00 00 00 ? ? ? ? _gdp_invoke: sending 73, retries=2 _gdp_invoke: waiting on 0x23de050 _gdp_req_dispatch >>> NAK_C_NOTFOUND (196) [gcl->refcnt 3], req@0x23de050: nextrec=0, numrecs=0, chan=0x23da3f0 postproc=(nil), sub_cb=0x405a21, udata=0x1 state=WAITING, stat=OK act_ts=2017-04-11 19:44:44.354164000Z flags=0x1d4 GCL@0x23decd0: rd5P6yEpoSGde8zl6FtlrRIihcqyPywEvznlfrnQYg8 iomode = 1, refcnt = 3, reqs = 0x23de050, nrecs = 0 flags = 0xa cPDU@0x23de160: v=3, ttl=15, rsvd1=0, cmd=73=CMD_MULTIREAD dst=rd5P6yEpoSGde8zl6FtlrRIihcqyPywEvznlfrnQYg8 src=dNlw5YMBJk5wc9mqjSH7KTaKoW7x_7HhyhvBtXdbiGY rid=2, olen=0, chan=(nil), seqno=0 flags=0 datum=0x23db7d0, recno=1, dbuf=0x23dd8a0, dlen=4 ts=(none) sigmdalg=0x0, siglen=0, sig=(nil) total header=88 rPDU@0x7fc660000db0: v=3, ttl=15, rsvd1=0, cmd=196=NAK_C_NOTFOUND dst=dNlw5YMBJk5wc9mqjSH7KTaKoW7x_7HhyhvBtXdbiGY src=rd5P6yEpoSGde8zl6FtlrRIihcqyPywEvznlfrnQYg8 rid=2, olen=0, chan=0x23da3f0, seqno=0 flags=0 datum=0x7fc660000e30, recno=(none), dbuf=0x7fc660000eb0, dlen=0 ts=(none) sigmdalg=0x0, siglen=0, sig=(nil) total header=80 nak_client: received NAK_C_NOTFOUND for CMD_MULTIREAD _gdp_req_dispatch <<< NAK_C_NOTFOUND [gcl->refcnt 3] ERROR: 404 not found [Berkeley:Swarm-GDP:404] <<< _gdp_invoke(0x23de050 rid=2) CMD_MULTIREAD: ERROR: 404 not found [Berkeley:Swarm-GDP:404] req@0x23de050: nextrec=0, numrecs=0, chan=0x23da3f0 postproc=(nil), sub_cb=0x405a21, udata=0x1 state=ACTIVE, stat=ERROR: 404 not found [Berkeley:Swarm-GDP:404] act_ts=2017-04-11 19:44:44.354164000Z flags=0x1d7 GCL@0x23decd0: rd5P6yEpoSGde8zl6FtlrRIihcqyPywEvznlfrnQYg8 iomode = 1, refcnt = 3, reqs = 0x23de050, nrecs = 0 flags = 0xe cPDU@0x23de160: v=3, ttl=15, rsvd1=0, cmd=73=CMD_MULTIREAD dst=rd5P6yEpoSGde8zl6FtlrRIihcqyPywEvznlfrnQYg8 src=dNlw5YMBJk5wc9mqjSH7KTaKoW7x_7HhyhvBtXdbiGY rid=2, olen=0, chan=(nil), seqno=0 flags=0 datum=(nil) total header=80 rPDU@0x7fc660000db0: v=3, ttl=15, rsvd1=0, cmd=196=NAK_C_NOTFOUND dst=dNlw5YMBJk5wc9mqjSH7KTaKoW7x_7HhyhvBtXdbiGY src=rd5P6yEpoSGde8zl6FtlrRIihcqyPywEvznlfrnQYg8 rid=2, olen=0, chan=0x23da3f0, seqno=0 flags=0 datum=0x23db7d0, recno=(none), dbuf=0x23dd8a0, dlen=0 ts=(none) sigmdalg=0x0, siglen=0, sig=(nil) total header=80 [FATAL] t_multimultiread: Cannot multiread: ERROR: 404 not found [Berkeley:Swarm-GDP:404] (exiting) ======================================================= 2 failed, 2 passed in 5.48 seconds ======================================================== #### ./setupAndRun.sh: Stopping gdplogd and gdp_router ./setupAndRun.sh: line 138: kill: (47332) - No such process 2017-04-11 12:44:49.498355 -0700 gdplogd: Terminating on signal 15 make: [allTests] Error 1 (ignored) My GDP routing name = terra.EECS.Berkeley.EDU