forked from cygwin/cygwin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cygwin: testsuite: Drop using DejaGnu to run tests
A more sophisticated (and modern) test harness would probably be useful, but switching to Automake's built-in test harness gets us parallel test execution, colourization of failures, simplifies matters, seems adequate for the current testuite, and means we don't need to write any icky Tcl. Signed-off-by: Jon Turney <[email protected]>
- Loading branch information
1 parent
971d2df
commit a1ee8a0
Showing
10 changed files
with
47 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ AC_PREREQ([2.59]) | |
AC_INIT([Cygwin],[0],[[email protected]],[cygwin],[https://cygwin.com]) | ||
AC_CONFIG_AUX_DIR(..) | ||
AC_CANONICAL_TARGET | ||
AM_INIT_AUTOMAKE([dejagnu foreign no-define no-dist subdir-objects -Wall -Wno-portability -Wno-extra-portability]) | ||
AM_INIT_AUTOMAKE([foreign no-define no-dist subdir-objects -Wall -Wno-portability -Wno-extra-portability]) | ||
AM_SILENT_RULES([yes]) | ||
|
||
realdirpath() { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
1999-12-23 DJ Delorie <[email protected]> | ||
|
||
Here are some notes about adding and using this testsuite. | ||
|
||
The testsuite adds a directory containing the just built cygwin1.dll to the PATH | ||
|
@@ -20,18 +18,18 @@ 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 | ||
level is allowed) either run, and exit(0) or they fail. | ||
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). | ||
Tests under winsup.api/ either run successfully and exit(0), exit(77) to | ||
indicate a skipped test, or any other exit status to indicate a 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). | ||
|
||
Tests whose filename is mentioned in known-bugs.tcl will be *expected* | ||
to fail, and will "fail" if they compile, run, and return zero. | ||
Tests whose filename is mentioned in XFAIL_TESTS are expected to fail, | ||
effectively reversing the result of those. | ||
|
||
"make check" will only work if you run it *on* an NT machine. | ||
Cross-checking is not supported. | ||
|
||
To test a subset of the test-suite, use | ||
$ make check CYGWIN_TESTSUITE_TESTS=regexp | ||
To run selected tests, use e.g: | ||
$ make check TESTS="winsup.api/ltp/umask03 winsup.api/ltp/stat06" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/dash | ||
# | ||
# test driver to run $1 in the appropriate environment | ||
# | ||
|
||
# $1 = test executable to run | ||
exe=$1 | ||
|
||
export PATH="$runtime_root:${PATH}" | ||
|
||
if [ "$1" = "./mingw/cygload" ] | ||
then | ||
windows_runtime_root=$(cygpath -m $runtime_root) | ||
$exe -v -cygwin $windows_runtime_root/cygwin1.dll | ||
else | ||
cygdrop $cygrun $exe | ||
fi |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.