winapi: new tool winapi_test for generating tests

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



As we discussed so time ago it would be
nice to have automatically generated tests for testing
things like packing of data structures.

So here a a new tools winapi_test that can do that.
OK. It is a little kludgy but its is a start.

My new C parser tries to calculate the correct packing
so it is also a test that the new C parser is correct.

However in order for this test to be rely useful the
C testing framework need to be ported to Windows.
I'm unsure of the status of this.

Anyway, the packing test that is generates is controlled
by the file tools/winapi/test.dat. I have currently
only added a test for some structures in winbase.h
that belongs to kernel.

So what do you think?

If you approved the patch will add tests for the other
DLLs in a similar manner.

PS. Should the generated tests be prefixed generated_
as I have done or should we perhaps have a new directory
generated or do you prefer it some other way?

--8<---

*** tests

* dlls/kernel/tests/.cvsignore,
  dlls/kernel/tests/Makefile.in,
  dlls/kernel/tests/generated_pack.c:
Added new autogenerated test for data structure packing.

*** winapi

* tools/winapi/Makefile.in,
  tools/winapi/c_parser.pm,
  tools/winapi/c_type.pm,
  tools/winapi/tests.dat,
  tools/winapi/tests.pm,
  tools/winapi/winapi.pm,
  tools/winapi/winapi_cleanup,
  tools/winapi/winapi_extract,
  tools/winapi/winapi_test,
  tools/winapi/winapi_test_options.pm,
  tools/winapi_check/modules.pm,
  tools/winapi_check/winapi_function.pm:
- Added a new tool winapi_test for generating tests.
- Added a data structure packing test to winapi_test.
- Reorganized and optimized a few things.

Attachment: winapi.tar
Description: Binary data

Attachment: winapi.diff
Description: Binary data

Attachment: tests.diff
Description: Binary data

Attachment: tests.tar
Description: Binary data


[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux