Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement recursion for top-level Kyuafile #9

Closed
jmmv opened this issue Feb 22, 2014 · 4 comments
Closed

Implement recursion for top-level Kyuafile #9

jmmv opened this issue Feb 22, 2014 · 4 comments

Comments

@jmmv
Copy link
Member

jmmv commented Feb 22, 2014

From jmmv@google.com on January 30, 2011 12:42:26

We need to install a generic Kyuafile in prefix/tests that is able to recurse into a set of subdirectories not known beforehand. The idea is that this file does something like:

kyuafiles = expand('*/Kyuafile')
for file in kyuafiles do
include(file)
end

If we use the above mechanism, the top-level Kyuafile will only recurse into those directories that have Kyuafiles in them, so we can coexist with atf test suites without problems.

To do the above, we need to extend the 'fs' native module that Kyua exposes to Lua to be able to perform the directory listing.

Original issue: http://code.google.com/p/kyua/issues/detail?id=9

@jmmv
Copy link
Member Author

jmmv commented Feb 22, 2014

From jmmv@google.com on January 30, 2011 09:45:52

This is not really a defect; just a missing feature!

Labels: -Type-Defect Type-Enhancement

@jmmv
Copy link
Member Author

jmmv commented Feb 22, 2014

From jmmv@google.com on June 07, 2011 13:53:42

This issue was updated by revision r142 .

Iterators will be used to implement recursion in Kyuafiles. For example,
something along the lines of: "for file in files('directory')". Haven't
decided yet how to expose this in Kyuafiles though, but this change is
self-contained enough to be submitted now.

@jmmv
Copy link
Member Author

jmmv commented Feb 22, 2014

From jmmv@google.com on June 09, 2011 11:58:45

This issue was updated by revision r143 .

These two functions are going to be used to implement recursion from the
top-level directory of a tests hierarchy.

@jmmv
Copy link
Member Author

jmmv commented Feb 22, 2014

From jmmv@google.com on June 09, 2011 12:02:28

This issue was closed by revision r144 .

Status: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant