Coder Social home page Coder Social logo

Comments (6)

prusnak avatar prusnak commented on May 31, 2024

tests directory contains unit test for TREZOR device so they should not be a part of setup.py

Also you see errors because you have no TREZOR device connected.

from python-trezor.

smarek avatar smarek commented on May 31, 2024

Yes, but they should respond to python setup.py test, see https://pythonhosted.org/an_example_pypi_project/setuptools.html#using-setup-py

It was connected, so that means that tests fail on OSX as of now

run-separate.sh shouldn't return any OK/FAIL status for each test?

from python-trezor.

prusnak avatar prusnak commented on May 31, 2024

Do you have hidapi and mnemonic python packages installed? Is hidapi able to open the device (permissions)?

run-separate outputs into $testname.out and $testname.err files.

from python-trezor.

slush0 avatar slush0 commented on May 31, 2024

@prusnak tests require debuglink, correct? That said, nothing in /tests/ will run against stock firmware...

from python-trezor.

smarek avatar smarek commented on May 31, 2024

@prusnak I have, setup.py installed them as dependencies and install succeeded.
Don't know about permissions, can you add some script to check device connectivity and/or file (or other) permissions, so I can tell you debug info?

I have lots of out/err files, want any specific ones?

@slush0 if that's correct, it should be mentioned that tests are not to test device accesibility, state and state of library against platform, probably remove the tests from public repository and replace them with tests that user/developer can run against stock firmware?

from python-trezor.

prusnak avatar prusnak commented on May 31, 2024

Does running the script as root work? If yes then my guess would be that you need to do something similar like udev rules on Linux (https://github.com/trezor/trezord/blob/master/release/linux/trezor.rules for inspiration).

No unit tests can be run on stock firmware, because they need to know internal data of TREZOR that stock firmware never shares for obvious reasons.

from python-trezor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.