GithubHelp home page GithubHelp logo

Comments (3)

martin-belanger avatar martin-belanger commented on August 17, 2024

I'm not familiar with autopkgtest. The tests are part of the source repo and are embedded in meson.build files. Are you saying that autopkgtest allows one to run tests without having access to the source repo? How does that work? Can you point me to a project where this is used.

from nvme-stas.

bdrung avatar bdrung commented on August 17, 2024

Some information about autopkgtest:

You specify which packages you need installed in your test bed and maybe what kind of restrictions you need in your test bed and what to run for the test. When running the test, the current working directory contains the source package content (which is the git export plus the debian directory).

from nvme-stas.

martin-belanger avatar martin-belanger commented on August 17, 2024

Hi @bdrung - Hope this will answer your question.

Basic testing is done using meson. From the directory where the source package content is located, run the following commands.

BUILD_DIR=".build"
meson setup ${BUILD_DIR}
meson test -C ${BUILD_DIR}

The above commands have been added to the Makefile for convenience and can be run simply with:

make test

Coverage testing is also available, but it is recommended to run that in a VM as this may leave the host computer in a weird state if something were to go wrong. Additional packages are required to run Coverage testing (see: TESTING.md). The command to run coverage testing is:

make coverage

from nvme-stas.

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.