Giter VIP home page Giter VIP logo

Comments (5)

jscotka avatar jscotka commented on August 16, 2024

this has to be solved very carefully. as discussed with @psss , this is very connected with virtual testcases, what has another location of self itself and what test: key means,
for this purpose this is connected with beaker, that there is directory and you don't care that in test: key there is for examle ./runtest.sh or make run what will do the same.
but in case there should be something usefull than just non-emty string, close to true value

from fmf.

jscotka avatar jscotka commented on August 16, 2024

partially solved by: #16

from fmf.

psss avatar psss commented on August 16, 2024

Yes, we need to make very clear how the path will be detected and how tests will be executed. There's is an initial draft of the proposed attributes on the Fedora wiki:

https://fedoraproject.org/wiki/CI/Metadata

Anyway, I think the new --format feature should probably cover this use case. See examples:

http://fmf.readthedocs.io/en/devel/examples.html#format

What do you think, Jakub?

from fmf.

jscotka avatar jscotka commented on August 16, 2024

the best solution could be: add this new prefix, what leads to ivoked test (dirname + basename) #19 with this format feature

from fmf.

psss avatar psss commented on August 16, 2024

Using the new --format option together with the Tree.root attribute this can be done:

> fmf examples/wget/ --key test --format '{}/{}/{}\n' \
  --value 'root' --value 'data.get("path") or name' --value 'data["test"]'

Path can be used to specify directory if it differs from the object name:

description: Check recursive download options
tags: [Tier2]
test: runtest.sh
path: wget/recursion

The results looks like this:

/home/psss/git/fmf/examples/wget/download/test/runtest.sh
/home/psss/git/fmf/examples/wget/recursion/runtest.sh
/home/psss/git/fmf/examples/wget/recursion/runtest.sh
/home/psss/git/fmf/examples/wget/protocols/ftp/runtest.sh
/home/psss/git/fmf/examples/wget/protocols/http/runtest.sh
/home/psss/git/fmf/examples/wget/protocols/https/runtest.sh

Closing as this general solution should cover the requested use case.

from fmf.

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.