GithubHelp home page GithubHelp logo

Comments (6)

qcolombet avatar qcolombet commented on May 28, 2024 1

Fixed with commit 1116b5a.

Now, ninja check will do the re-build + test.

from glow.

qcolombet avatar qcolombet commented on May 28, 2024

Had a quick look at this today.
This is actually a bug/feature in cmake with the add_test command (https://gitlab.kitware.com/cmake/cmake/issues/8774).

There are two possible workarounds:

  1. Run all then test (basically do it manually)
  2. Add a custom target that depends on all the test executables and that invokes ctest

The problem with #2 is:
A. We have to manually maintain the list of executables. (Though with can hide that in some cmake function.)
B. We cannot use test for the target (e.g., we have to use check.)

Note: LLVM does exactly #2.

Let me know what you guys think and I'll either do a quick attempt at #2 or I'll close the issue.

from glow.

nadavrot avatar nadavrot commented on May 28, 2024

I am okay with calling ninja check instead of ninja test.

from glow.

nadavrot avatar nadavrot commented on May 28, 2024

CC @compnerd

from glow.

jfix71 avatar jfix71 commented on May 28, 2024

RE: 1. I always use alias ntest="ninja all && ninja test" in place of ninja test.

from glow.

qcolombet avatar qcolombet commented on May 28, 2024

In case people are interested into a check target that does exactly what @jfix71 said, I've given a stab at it and posted a PR:
#1104

from glow.

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.