You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
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
The text was updated successfully, but these errors were encountered: