This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Allow net loopback tests to always get built


Index: ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos-opt/net/net/common/current/ChangeLog,v
retrieving revision 1.18
diff -u -5 -p -r1.18 ChangeLog
--- ChangeLog	20 Jan 2003 11:14:37 -0000	1.18
+++ ChangeLog	31 Jan 2003 12:34:59 -0000
@@ -1,5 +1,13 @@
+2003-01-31  Jonathan Larmour  <jifl@eCosCentric.com>
+
+	* cdl/net.cdl (CYGPKG_NET_BUILD_HW_TESTS): Requires eth hardware
+	devices.
+	(CYGPKG_NET_TESTS): Remove from under CYGPKG_NET_BUILD_TESTS (which
+	became CYGPKG_NET_BUILD_HW_TESTS) so the loopback tests are always
+	built.
+
 2003-01-20  Gary Thomas  <gary@mlbassoc.com>
 
 	* tests/nc_test_slave.c: Improve handling of UDP buffer space - try
 	to minimize amount of "idle" time when this occurs.  Since this test
 	is just for show, these changes just make the numbers "look" better.
Index: cdl/net.cdl
===================================================================
RCS file: /cvs/ecos/ecos-opt/net/net/common/current/cdl/net.cdl,v
retrieving revision 1.1
diff -u -5 -p -r1.1 net.cdl
--- cdl/net.cdl	20 May 2002 22:25:03 -0000	1.1
+++ cdl/net.cdl	31 Jan 2003 12:35:00 -0000
@@ -315,24 +315,35 @@ cdl_package CYGPKG_NET {
                 the set of global flags if present."
         }
     }
 
     cdl_component CYGPKG_NET_BUILD_TESTS {
-        display "Build networking tests (demo programs)"
-        flavor  bool
+        display "Testing options"
+        flavor  none
         no_define
-        default_value 0
-        description   "
-        This option enables the building of additional network tests
-        which at this time are just demos; otherwise only loopback
-        interface tests will be built."
+        description "
+                This component contains options related to testing the network
+                stack."
+
+        cdl_option CYGPKG_NET_BUILD_HW_TESTS {
+            display "Build hardware networking tests (demo programs)"
+            flavor  bool
+            no_define
+            requires { CYGHWR_NET_DRIVER_ETH0_SETUP || CYGHWR_NET_DRIVER_ETH1_SETUP }
+            default_value 0
+            description   "
+             This option enables the building of additional network tests
+             that use real ethernet devices. At this time these are just
+             demos. With this option disabled, only loopback
+             interface tests will be built."
+        }
 
         cdl_option CYGPKG_NET_TESTS {
             display "Networking tests"
             flavor  data
             no_define
-            calculated { CYGPKG_NET_BUILD_TESTS ? \
+            calculated { CYGPKG_NET_BUILD_HW_TESTS ? \
                     "tests/mbuf_test \
                     tests/socket_test \
                     tests/ftp_test \
                     tests/server_test \
                     tests/nc_test_slave \
@@ -354,14 +365,14 @@ cdl_package CYGPKG_NET {
                     "tests/ping_lo_test \
                     tests/tcp_lo_test \
                     tests/udp_lo_test \
                     tests/multi_lo_select \
                     tests/tcp_lo_select"
-        }
+            }
             description   "
-            This option specifies the set of tests
-            for the networking package."
+             This option specifies the set of tests
+             for the networking package."
         }
         
         cdl_option CYGPKG_NET_TESTS_USE_RT_TEST_HARNESS {
             display "Use real-time response test harness (if available)"
             default_value 0


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