Coder Social home page Coder Social logo

Comments (12)

josephwright avatar josephwright commented on August 23, 2024

I'm planning to look at some selectivity for test files by having lvtfiles or similar as a variable. One possible approach to your use case would be to set a Travis-CI variable and pick that up in the build.lua file, and set lvtfiles appropriately. Would that work as an interface for you?

from l3build.

josephwright avatar josephwright commented on August 23, 2024

I've been pondering this a bit. The problem with choosing ...files is that for tests there is quite a bit of manipulation based on the different file types (.lvt, tlg, .log as a minimum, plus auxiliary files, plus now some form of PDF-based files). I wonder if instead testnames would work: the standard setting would then be testnames = {"*"}, and one could restrict as required (perhaps with also excludetestnames to allow selective removal).

Thoughts? (@FrankMittelbach, @wspr)

from l3build.

josephwright avatar josephwright commented on August 23, 2024

I see that this is closely linked to #49: my feeling is that the two issues can be handled together (if one has a list of test names, one can arrange to exclude names by checking the platform or similar).

from l3build.

wspr avatar wspr commented on August 23, 2024

from l3build.

josephwright avatar josephwright commented on August 23, 2024

@wspr Yes, but if one provides a testnames variable then you can two multiple configs using one testfiledir, each selecting only some files. That could mean you have a full config that runs everything and a travis config that only runs some tests, for example: you could then arrange that checking on Travis-CI picks the latter, which would then be tests you know don't get messed up by platform-specific stuff.

from l3build.

wspr avatar wspr commented on August 23, 2024

from l3build.

josephwright avatar josephwright commented on August 23, 2024

@u-fischer Does the fix to #49 give you enough flexibility here?

from l3build.

u-fischer avatar u-fischer commented on August 23, 2024

I'm not sure that I understood the syntax. Does it mean that I can add to a config file

excludetests= {....}

If yes, what is the allowed content of the variable? Some pattern that is matched against the file name? If yes then I think this would be quite fine.

from l3build.

josephwright avatar josephwright commented on August 23, 2024

@u-fischer Something like

if os.type == "unix" then
  excludetests = {"name-1", "name-???" } -- globs
end

from l3build.

u-fischer avatar u-fischer commented on August 23, 2024

Sounds good. Are there restrictions to the glob-syntax? E.g. would *bbb* work, and file[0-9]* work?

from l3build.

josephwright avatar josephwright commented on August 23, 2024

Currently the glob support is 'Windows-like', but the original version of code I've used to convert globs-to-patterns does support ranges too. So I can happily extend the glob support. If you'd rather the names use Lua patterns, I can probably sort that, though it will be a bit more effort.

from l3build.

josephwright avatar josephwright commented on August 23, 2024

I'm assuming we are OK here now ...

from l3build.

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.