I execised with winetest to find more information about using Perl as a base for Wine testing framework.
My findings so far: I built winetest without problems. Provided sample test script worked.
The next my step would be to translate my own unit tests to Perl. My tests extensively use number constants, declared in C header file with defines and C structures.
I worked with Perl before, but never created Perl extensions. After researching I did not find reliable way to automatically import C structures to Perl.
Perl distribution provides some tools, but AFAICS the tools have limited possibilities and are not suitable for fully automatic conversion (see man pages for perlxs, perlxstut, h2xs, xsubpp). h2xs tool imported defines fine. I'm not sure how it handled functions. It does not do complete parsing of headers and files, generated files need manual editing.
Another option - SWIG (www.swig.org). Can generate bindings for a few scripting languages directly from C sources "provided they are sufficiently clean" (.h?). I do not assume yet it can make sense from our sources.
Are there Perl experts out there who knows how to handle this issue?
Can we use other approach if automatic code generation is not possible? E.g. we can manually create binding code for used structures. C compiler is needed to create or change the bindings.
Please, let me know if I missed something.
Thanks, Andriy Palamarchuk
__________________________________________________ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.yahoo.com