Changeset 51ca358 in rtems
- Timestamp:
- 05/10/04 16:02:11 (19 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 92166f37
- Parents:
- e12ba0e
- Location:
- testsuites/samples
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
testsuites/samples/ChangeLog
re12ba0e r51ca358 1 2004-05-10 Ralf Corsepius <ralf_corsepius@rtems.org> 2 3 * configure.ac: Add CXX-checks. New conditionals CXXTESTS, MPTESTS, 4 NETTESTS. Add iostream/. 5 * Makefile.am, base_mp/node1/Makefile.am, base_mp/node2/Makefile.am 6 cdtest/Makefile.am, loopback/Makefile.am, pppd/Makefile.am: 7 Reflect changes above. 8 * cdtest/main.cc: Adaptation to new C++ standards. 9 1 10 2004-05-10 Ralf Corsepius <ralf_corsepius@rtems.org> 2 11 -
testsuites/samples/Makefile.am
re12ba0e r51ca358 5 5 ACLOCAL_AMFLAGS = -I ../aclocal 6 6 7 CPLUSPLUS_TESTS = cdtest 7 SUBDIRS = hello ticker base_sp unlimited minimum fileio 8 8 9 if MPTESTS 9 10 ## base_mp is a sample multiprocessing test 10 MP_TESTS = base_mp 11 SUBDIRS += base_mp 12 endif 11 13 12 FP_TESTS= paranoia14 SUBDIRS += paranoia 13 15 16 if CXXTESTS 17 SUBDIRS += iostream cdtest 18 endif 19 20 if NETTESTS 14 21 ## loopback tests a network loopback interface 15 NET_TESTS = loopback 16 NET_TESTS += pppd 22 SUBDIRS += loopback 23 SUBDIRS += pppd 24 endif 17 25 18 SUBDIRS = hello ticker base_sp unlimited minimum fileio $(MP_TESTS) \ 19 $(CPLUSPLUS_TESTS) $(FP_TESTS) $(NET_TESTS) 20 21 AUTOMAKE_FILES = sample.am 22 23 EXTRA_DIST = $(AUTOMAKE_FILES) 26 DIST_SUBDIRS = hello ticker base_sp unlimited minimum fileio base_mp cdtest \ 27 paranoia loopback pppd 24 28 25 29 include $(top_srcdir)/../automake/subdirs.am -
testsuites/samples/base_mp/node1/Makefile.am
re12ba0e r51ca358 32 32 AM_CPPFLAGS += -DNODE_NUMBER=$(NODE) -I. 33 33 34 if HAS_MP35 36 34 # 37 35 # (OPTIONAL) Add local stuff here using += … … 42 40 43 41 all-local: $(TMPINSTALL_FILES) 44 else45 all-local:46 endif47 42 48 43 EXTRA_DIST = $(DOCS) -
testsuites/samples/base_mp/node2/Makefile.am
re12ba0e r51ca358 32 32 AM_CPPFLAGS += -DNODE_NUMBER=$(NODE) -I. 33 33 34 if HAS_MP35 36 34 # 37 35 # (OPTIONAL) Add local stuff here using += … … 42 40 43 41 all-local: $(TMPINSTALL_FILES) 44 else45 all-local:46 endif47 42 48 43 EXTRA_DIST = $(DOCS) -
testsuites/samples/cdtest/Makefile.am
re12ba0e r51ca358 30 30 include $(top_srcdir)/sample.am 31 31 32 # AM_CPPFLAGS += -DRTEMS_TEST_IO_STREAM 33 32 34 # 33 35 # (OPTIONAL) Add local stuff here using += 34 36 # 35 37 36 if HAS_CXX37 38 ${PGM}: $(OBJS) $(LINK_FILES) 38 39 $(make-cxx-exe) 39 40 40 41 all-local: $(TMPINSTALL_FILES) 41 else42 all-local:43 endif44 42 45 43 EXTRA_DIST = $(C_FILES) $(CC_FILES) $(DOCS) -
testsuites/samples/cdtest/main.cc
re12ba0e r51ca358 27 27 28 28 #include <rtems.h> 29 #include <stdio.h> 30 #include <stdlib.h> 29 30 #include <cstdio> 31 #include <cstdlib> 32 31 33 #ifdef RTEMS_TEST_IO_STREAM 32 #include <iostream .h>34 #include <iostream> 33 35 #endif 34 36 … … 145 147 146 148 #ifdef RTEMS_TEST_IO_STREAM 147 cout << "Testing a C++ I/O stream" <<endl;149 std::cout << "Testing a C++ I/O stream" << std::endl; 148 150 #else 149 151 printf("IO Stream not tested\n"); -
testsuites/samples/configure.ac
re12ba0e r51ca358 24 24 25 25 RTEMS_PROG_CXX_FOR_TARGET 26 27 26 RTEMS_CANONICALIZE_TOOLS 28 27 … … 32 31 RTEMS_CHECK_NETWORKING 33 32 34 AM_CONDITIONAL(HAS_NETWORKING,test "$HAS_NETWORKING" = "yes") 35 AM_CONDITIONAL(HAS_CXX,test "$HAS_CPLUSPLUS" = "yes") 36 AM_CONDITIONAL(HAS_MP,test "$HAS_MP" = "yes") 33 34 CXXTESTS=$HAS_CPLUSPLUS 35 AS_IF([test $HAS_CPLUSPLUS = yes],[ 36 AC_LANG_PUSH([C++]) 37 AC_CHECK_HEADERS([cstdio cstdlib iostream],[],[CXXTESTS=no]) 38 AC_CACHE_CHECK( 39 [if iostream supports std:: namespace], 40 [rtems_cv_HAVE_IOSTREAM_STD_NAMESPACE], 41 [AC_COMPILE_IFELSE( 42 [AC_LANG_PROGRAM( 43 [[#include <iostream>]], 44 [[std::cout << "hello" << std::endl;]]) 45 ], 46 [rtems_cv_HAVE_IOSTREAM_STD_NAMESPACE=yes], 47 [rtems_cv_HAVE_IOSTREAM_STD_NAMESPACE=no]) 48 ]) 49 AS_IF([test $rtems_cv_HAVE_IOSTREAM_STD_NAMESPACE = no],[CXXTESTS=no]) 50 AS_IF([test $CXXTESTS = no],[ 51 AC_MSG_WARN([disabling C++ tests]) 52 ]) 53 AC_LANG_POP 54 ]) 55 56 AM_CONDITIONAL([CXXTESTS],[test $CXXTESTS = "yes"]) 57 AM_CONDITIONAL(NETTESTS,test "$HAS_NETWORKING" = "yes") 58 AM_CONDITIONAL(MPTESTS,test "$HAS_MP" = "yes") 59 37 60 #FIXME: We should use a feature based check 38 61 AM_CONDITIONAL(LIBCHIP,[test "$RTEMS_BSP_FAMILY" != "posix"]) … … 51 74 base_mp/node1/Makefile 52 75 base_mp/node2/Makefile 76 iostream/Makefile 53 77 cdtest/Makefile 54 78 pppd/Makefile -
testsuites/samples/loopback/Makefile.am
re12ba0e r51ca358 28 28 # 29 29 30 if HAS_NETWORKING31 30 all-local: $(TMPINSTALL_FILES) 32 31 33 32 ${PGM}: $(OBJS) $(LINK_FILES) 34 33 $(make-exe) 35 endif36 34 37 35 EXTRA_DIST = $(C_FILES) $(DOCS) -
testsuites/samples/pppd/Makefile.am
re12ba0e r51ca358 27 27 # 28 28 29 if HAS_NETWORKING30 29 all-local: $(TMPINSTALL_FILES) 31 30 32 31 ${PGM}: $(OBJS) $(LINK_FILES) 33 32 $(make-exe) 34 endif35 33 36 34 EXTRA_DIST = $(C_FILES) $(H_FILES)
Note: See TracChangeset
for help on using the changeset viewer.