This is the mail archive of the cygwin-developers@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Testsuite change


Hi,

the current testsuite only links against libltp in the ltp subdir.
I have a local version of my mmaptest01.c test which uses libltp.
The advantage is the easy interface to allow more than one test
in a testsuite source.  Could we change winsup.exp to allow including
and linking libltp with all tests?

Index: winsup.exp
===================================================================
RCS file: /cvs/src/src/winsup/testsuite/winsup.api/winsup.exp,v
retrieving revision 1.6
diff -u -p -r1.6 winsup.exp
--- winsup.exp  2001/09/13 19:00:48     1.6
+++ winsup.exp  2001/10/07 15:18:00
@@ -7,12 +7,13 @@ if { ! [isnative] } {
 }
 
 set rv ""
-set add_includes ""
-set add_libs ""
 
 set ltp_includes "-I$ltp_includes"
 set ltp_libs "$rootme/libltp.a"
 
+set add_includes $ltp_includes
+set add_libs $ltp_libs
+
 set test_filter ""
 
 if { [info exists env(CYGWIN_TESTSUITE_TESTS)] } {
@@ -45,11 +46,6 @@ foreach src [glob -nocomplain $srcdir/$s
     } else {
         set xfail_expected 0
        clear_xfail
-    }
-
-    if { [regexp "^ltp/" $testcase ] } {
-        set add_includes $ltp_includes
-        set add_libs $ltp_libs
     }
 
     ws_spawn "$CC -g3 $CFLAGS $src $add_includes $add_libs $runtime_root/binmode.o $runtime_root/new-libcygwin.a -o $base.exe"


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]