Coder Social home page Coder Social logo

ctest integration about yotta HOT 4 CLOSED

armmbed avatar armmbed commented on August 29, 2024
ctest integration

from yotta.

Comments (4)

autopulated avatar autopulated commented on August 29, 2024

Need to figure out how this is going to integrate with tests running on devices (loading them on, starting them, getting output). Does ctest have hooks for that?

from yotta.

headlessme avatar headlessme commented on August 29, 2024

The add_test function provided by ctest takes a name, executable and arguments, where the executable can be a generated target or arbitrary executable. Yotta could provide a wrapper around this by doing something like:

add_test(TestName ${PYTHON_EXECUTABLE} "/full/path/to/script.py") 

Or something similar using CMake scripts.

How much of the load/start stuff is it realistic for yotta to provide and how much is project specific?

from yotta.

autopulated avatar autopulated commented on August 29, 2024

It should be wrapped up in the target, ideally, the same way that debug is. (Target descriptions provide a template command that can be used to debug)

Components could also list their tests in the package description, then yotta could join those two things together with CMake add_test stuff.

from yotta.

autopulated avatar autopulated commented on August 29, 2024

Test infrastructure now provided by yotta test, see the guide.

from yotta.

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.