2000-02-18 03:38:33 +08:00
|
|
|
1999-12-23 DJ Delorie <dj@cygnus.com>
|
|
|
|
|
|
|
|
Here are some notes about adding and using this testsuite.
|
|
|
|
|
2022-12-23 21:05:34 +08:00
|
|
|
The testsuite adds a directory containing the just built cygwin1.dll to the PATH
|
|
|
|
(during the run step) so that it can be found by the Windows loader during
|
|
|
|
testing.
|
2000-02-18 03:38:33 +08:00
|
|
|
|
|
|
|
Because we'll probably run into complaints about using two DLLs, we
|
|
|
|
run cygrun.exe for each test. All this does is run the test with
|
|
|
|
CreateProcess() so that we don't attempt to do the special code for
|
|
|
|
when a cygwin program calls another cygwin program, as this might be a
|
|
|
|
"multiple cygwins" problem.
|
|
|
|
|
|
|
|
Any test that needs to test command line args or redirection needs to
|
|
|
|
run such a child program itself, as the testsuite will not do any
|
|
|
|
arguments or redirection for it. Same for fork, signals, etc.
|
|
|
|
|
|
|
|
The testsuite/winsup.api subdirectory is for testing the API to
|
|
|
|
cygwin1.dll ONLY. Create other subdirs under testsuite/ for other
|
|
|
|
classes of testing.
|
|
|
|
|
|
|
|
Tests in winsup.api/*.c or winsup.api/*/*.c (only one subdirectory
|
2022-08-24 23:01:52 +08:00
|
|
|
level is allowed) either run, and exit(0) or they fail.
|
2000-02-18 03:38:33 +08:00
|
|
|
Either abort or exit with a non-zero code to indicate failure. Don't
|
|
|
|
print anything to the screen if you can avoid it (except for failure
|
|
|
|
reasons, of course). One .c file per test, no compile options are
|
|
|
|
allowed (we're testing the api, not the compiler).
|
|
|
|
|
2001-09-09 21:38:17 +08:00
|
|
|
Tests whose filename is mentioned in known-bugs.tcl will be *expected*
|
|
|
|
to fail, and will "fail" if they compile, run, and return zero.
|
2000-02-18 03:38:33 +08:00
|
|
|
|
|
|
|
"make check" will only work if you run it *on* an NT machine.
|
|
|
|
Cross-checking is not supported.
|
2002-11-24 21:41:36 +08:00
|
|
|
|
|
|
|
To test a subset of the test-suite, use
|
|
|
|
$ make check CYGWIN_TESTSUITE_TESTS=regexp
|