Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[mosquitto-dev] Errors running tests on (cross-compiled) target

I’ve imported v1.4.8 into a Yocto project, and I’m trying to run the tests on my target.

I’ve made the necessary modifications to paths and installed the test scripts & related files onto the target (I *think*.…!)

Python version is 2.7.11

Mosquitto source is http://mosquitto.org/files/source/mosquitto-1.4.8.tar.gz

 

The ‘lib’ tests are all running successfully, as are most of the ‘broker’ tests, but 13 of the latter are failing. The common reason in 12 of these seems to be a Connection Refused (111) e.g.

 

    Traceback (most recent call last):

      File "./03-publish-b2c-timeout-qos1-helper.py", line 26, in <module>

        sock = mosq_test.do_client_connect(connect_packet, connack_packet, connack_error="helper connack")

      File "/usr/bin/mosquitto-test/broker/mosq_test.py", line 69, in do_client_connect

        sock.connect((hostname, port))

      File "/usr/lib/python2.7/socket.py", line 230, in meth

        return getattr(self._sock,name)(*args)

    socket.error: [Errno 111] Connection refused

 

These 12 failing tests are:

  03-pattern-matching-helper.py

  03-publish-b2c-disconnect-qos1-helper.py

  03-publish-b2c-disconnect-qos2-helper.py

  03-publish-b2c-timeout-qos1-helper.py

  03-publish-b2c-timeout-qos2-helper.py

  05-clean-session-qos1-helper.py

  06-bridge-br2b-disconnect-qos1-helper.py

  06-bridge-br2b-disconnect-qos2-helper.py

  06-bridge-reconnect-local-out-helper.py

  07-will-null-helper.py

  07-will-qos0-helper.py

  08-ssl-bridge-helper.py

 

The other fail is in 01-connect-uname-password-success-no-tls.py   - this one I’ve been able to extract a bit more debug info from: the mosquito process ‘mosquitto -v -c 01-connect-uname-password-success-no-tls.conf’ is reporting

    1464790295: mosquitto version 1.4 (build date 2016-06-01 13:02:35+0100) starting

    1464790295: Config loaded from 01-connect-uname-password-success-no-tls.conf.

    1464790295: Error: Invalid password hash for user user.

    1464790295: Error opening password file "01-connect-uname-password-success-no-tls.pwfile".

 

(The .pwfile *is* present, containing “user:password”)

 

Can anyone help fixing this, and/or give me tips on debugging further?

Thanks

 


Back to the top