cppunit-cvs Mailing List for CppUnit - C++ port of JUnit (Page 10)
Brought to you by:
blep
You can subscribe to this list here.
2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(94) |
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
|
Feb
(114) |
Mar
(80) |
Apr
|
May
|
Jun
(36) |
Jul
(67) |
Aug
(37) |
Sep
(33) |
Oct
(28) |
Nov
(91) |
Dec
(16) |
2006 |
Jan
(1) |
Feb
(7) |
Mar
(45) |
Apr
|
May
|
Jun
(36) |
Jul
(7) |
Aug
|
Sep
(32) |
Oct
(3) |
Nov
|
Dec
|
2007 |
Jan
(29) |
Feb
(11) |
Mar
(5) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(35) |
Sep
|
Oct
|
Nov
|
Dec
|
2008 |
Jan
|
Feb
(14) |
Mar
|
Apr
|
May
|
Jun
(5) |
Jul
(13) |
Aug
|
Sep
|
Oct
(3) |
Nov
|
Dec
(15) |
Update of /cvsroot/cppunit/cppunit2/test/json_test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4107/test/json_test Added Files: .cvsignore cleantests.py generate_expected.py runjsontests.py test_array_01.expected test_array_01.json test_array_02.expected test_array_02.json test_array_03.expected test_array_03.json test_array_04.expected test_array_04.json test_array_05.expected test_array_05.json test_array_06.expected test_array_06.json test_basic_01.expected test_basic_01.json test_basic_02.expected test_basic_02.json test_basic_03.expected test_basic_03.json test_basic_04.expected test_basic_04.json test_basic_05.expected test_basic_05.json test_basic_06.expected test_basic_06.json test_basic_07.expected test_basic_07.json test_basic_08.expected test_basic_08.json test_basic_09.expected test_basic_09.json test_complex_01.expected test_complex_01.json test_integer_01.expected test_integer_01.json test_integer_02.expected test_integer_02.json test_integer_03.expected test_integer_03.json test_integer_04.expected test_integer_04.json test_integer_05.expected test_integer_05.json test_object_01.expected test_object_01.json test_object_02.expected test_object_02.json test_object_03.expected test_object_03.json test_preserve_comment_01.expected test_preserve_comment_01.json test_real_01.expected test_real_01.json test_real_02.expected test_real_02.json test_real_03.expected test_real_03.json test_real_04.expected test_real_04.json test_real_05.expected test_real_05.json test_real_06.expected test_real_06.json test_real_07.expected test_real_07.json Log Message: * added end to end json tests --- NEW FILE: test_preserve_comment_01.expected --- .={} .first=1 .second=2 --- NEW FILE: test_basic_09.expected --- .=null --- NEW FILE: test_basic_07.expected --- .=false --- NEW FILE: test_array_05.expected --- .=[] .[0]=1 .[1]=2 .[2]=3 .[3]=4 .[4]=5 .[5]=6 .[6]=7 .[7]=8 .[8]=9 .[9]=10 .[10]=11 .[11]=12 .[12]=13 .[13]=14 .[14]=15 .[15]=16 .[16]=17 .[17]=18 .[18]=19 .[19]=20 .[20]=21 .[21]=22 .[22]=23 .[23]=24 .[24]=25 .[25]=26 .[26]=27 .[27]=28 .[28]=29 .[29]=30 .[30]=31 .[31]=32 .[32]=33 .[33]=34 .[34]=35 .[35]=36 .[36]=37 .[37]=38 .[38]=39 .[39]=40 .[40]=41 .[41]=42 .[42]=43 .[43]=44 .[44]=45 .[45]=46 .[46]=47 .[47]=48 .[48]=49 .[49]=50 .[50]=51 .[51]=52 .[52]=53 .[53]=54 .[54]=55 .[55]=56 .[56]=57 .[57]=58 .[58]=59 .[59]=60 .[60]=61 .[61]=62 .[62]=63 .[63]=64 .[64]=65 .[65]=66 .[66]=67 .[67]=68 .[68]=69 .[69]=70 .[70]=71 .[71]=72 .[72]=73 .[73]=74 .[74]=75 .[75]=76 .[76]=77 .[77]=78 .[78]=79 .[79]=80 .[80]=81 .[81]=82 .[82]=83 .[83]=84 .[84]=85 .[85]=86 .[86]=87 .[87]=88 .[88]=89 .[89]=90 .[90]=91 .[91]=92 .[92]=93 .[93]=94 .[94]=95 .[95]=96 .[96]=97 .[97]=98 .[98]=99 --- NEW FILE: test_basic_02.expected --- .=-123456789 --- NEW FILE: test_array_01.expected --- .=[] --- NEW FILE: test_real_04.expected --- .=1.2345678 --- NEW FILE: test_preserve_comment_01.json --- /* A comment at the beginning of the file. */ { "first" : 1, // comment after 'first' on the same line /* Comment before 'second' */ "second" : 2 } /* A comment at the end of the file. */ --- NEW FILE: test_basic_08.json --- // C++ style comment null --- NEW FILE: test_real_02.json --- // -2^32 => out of signed integer range, switch to double -4294967295 --- NEW FILE: generate_expected.py --- import glob import os.path for path in glob.glob( '*.json' ): text = file(path,'rt').read() target = os.path.splitext(path)[0] + '.expected' if os.path.exists( target ): print 'skipping:', target else: print 'creating:', target file(target,'wt').write(text) --- NEW FILE: test_object_01.expected --- .={} --- NEW FILE: test_array_05.json --- [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99] --- NEW FILE: test_integer_03.json --- // Max unsigned integer 4294967295 --- NEW FILE: test_integer_04.expected --- .=0 --- NEW FILE: test_integer_01.json --- // Max signed integer 2147483647 --- NEW FILE: test_real_01.expected --- .=8589934592 --- NEW FILE: cleantests.py --- # removes all files created during testing import glob import os paths = [] for pattern in [ '*.actual', '*.actual-rewrite', '*.rewrite', '*.process-output' ]: paths += glob.glob( pattern ) for path in paths: os.unlink( path ) --- NEW FILE: test_array_06.expected --- .=[] .[0]="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" .[1]="bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" .[2]="ccccccccccccccccccccccc" .[3]="dddddddddddddddddddddddddddddddddddddddddddddddddddd" --- NEW FILE: test_real_05.json --- // 1234567.8 0.12345678e7 --- NEW FILE: test_basic_03.json --- 1.2345678 --- NEW FILE: runjsontests.py --- import sys import os import os.path import glob if len(sys.argv) != 2: print "Usage: %s jsontest-executable-path" % sys.argv[0] sys.exit( 1 ) jsontest_executable_path = os.path.normpath( os.path.abspath( sys.argv[1] ) ) def compareOutputs( expected, actual, message ): expected = expected.strip().replace('\r','').split('\n') actual = actual.strip().replace('\r','').split('\n') diff_line = 0 max_line_to_compare = min( len(expected), len(actual) ) for index in xrange(0,max_line_to_compare): if expected[index].strip() != actual[index].strip(): diff_line = index + 1 break if diff_line == 0 and len(expected) != len(actual): diff_line = max_line_to_compare+1 if diff_line == 0: return None def safeGetLine( lines, index ): index += -1 if index >= len(lines): return '' return lines[index].strip() return """ Difference in %s at line %d: Expected: '%s' Actual: '%s' """ % (message, diff_line, safeGetLine(expected,diff_line), safeGetLine(actual,diff_line) ) def safeReadFile( path ): try: return file( base_path + '.actual', 'rt' ).read() except: return "" tests = glob.glob( '*.json' ) failed_tests = [] for input_path in tests: print 'TESTING:', input_path, pipe = os.popen( "%s %s" % (jsontest_executable_path, input_path) ) process_output = pipe.read() status = pipe.close() base_path = os.path.splitext(input_path)[0] actual_output = safeReadFile( base_path + '.actual' ) actual_rewrite_output = safeReadFile( base_path + '.actual-rewrite' ) file(base_path + '.process-output','wt').write( process_output ) if status: print 'parsing failed' failed_tests.append( (input_path, 'Parsing failed:\n' + process_output) ) else: expected_output_path = os.path.splitext(input_path)[0] + '.expected' expected_output = file( expected_output_path, 'rt' ).read() detail = ( compareOutputs( expected_output, actual_output, 'input' ) or compareOutputs( expected_output, actual_rewrite_output, 'rewrite' ) ) if detail: print 'FAILED' failed_tests.append( (input_path, detail) ) else: print 'OK' if failed_tests: print print 'Failure details:' for failed_test in failed_tests: print '* Test', failed_test[0] print failed_test[1] print print 'Test results: %d passed, %d failed.' % (len(tests)-len(failed_tests), len(failed_tests) ) sys.exit(1) else: print 'All %d tests passed.' % len(tests) sys.exit(0) --- NEW FILE: test_object_01.json --- {} --- NEW FILE: test_integer_02.json --- // Min signed integer -2147483648 --- NEW FILE: test_object_02.expected --- .={} .count=1234 --- NEW FILE: test_real_04.json --- // 1.2345678 12345678e-7 --- NEW FILE: test_integer_05.expected --- .=1 --- NEW FILE: test_real_01.json --- // 2^33 => out of integer range, switch to double 8589934592 --- NEW FILE: test_real_05.expected --- .=1234567.8 --- NEW FILE: test_basic_09.json --- /* C style comment */ null --- NEW FILE: test_basic_06.expected --- .=true --- NEW FILE: test_array_01.json --- [] --- NEW FILE: test_real_06.expected --- .=-1.2345678 --- NEW FILE: .cvsignore --- *.actual *.actual-rewrite *.rewrite *.process-output *.pyc json.py --- NEW FILE: test_basic_05.expected --- .=null --- NEW FILE: test_object_03.json --- { "count" : 1234, "name" : "test", "attribute" : "random" } --- NEW FILE: test_basic_06.json --- true --- NEW FILE: test_object_03.expected --- .={} .attribute="random" .count=1234 .name="test" --- NEW FILE: test_real_07.expected --- .=-1234567.8 --- NEW FILE: test_integer_03.expected --- .=4294967295 --- NEW FILE: test_real_03.json --- // -2^32 => out of signed integer range, switch to double -4294967295 --- NEW FILE: test_array_06.json --- [ "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb", "ccccccccccccccccccccccc", "dddddddddddddddddddddddddddddddddddddddddddddddddddd" ] --- NEW FILE: test_real_06.json --- // -1.2345678 -12345678e-7 --- NEW FILE: test_integer_01.expected --- .=2147483647 --- NEW FILE: test_complex_01.expected --- .={} .attribute=[] .attribute[0]="random" .attribute[1]="short" .attribute[2]="bold" .attribute[3]=12 .attribute[4]={} .attribute[4].height=7 .attribute[4].width=64 .count=1234 .name={} .name.aka="T.E.S.T." .name.id=123987 .test={} .test.1={} .test.1.2={} .test.1.2.3={} .test.1.2.3.coord=[] .test.1.2.3.coord[0]=1 .test.1.2.3.coord[1]=2 --- NEW FILE: test_integer_04.json --- // Min unsigned integer 0 --- NEW FILE: test_array_04.expected --- .=[] .[0]=1 .[1]="abc" .[2]=12.3 .[3]=-4 --- NEW FILE: test_basic_07.json --- false --- NEW FILE: test_basic_03.expected --- .=1.2345678 --- NEW FILE: test_array_03.json --- [ 1, 2 , 3,4,5] --- NEW FILE: test_object_02.json --- { "count" : 1234 } --- NEW FILE: test_complex_01.json --- { "count" : 1234, "name" : { "aka" : "T.E.S.T.", "id" : 123987 }, "attribute" : [ "random", "short", "bold", 12, { "height" : 7, "width" : 64 } ], "test": { "1" : { "2" : { "3" : { "coord" : [ 1,2] } } } } } --- NEW FILE: test_real_03.expected --- .=-4294967295 --- NEW FILE: test_array_04.json --- [1, "abc" , 12.3, -4] --- NEW FILE: test_array_02.json --- [1] --- NEW FILE: test_basic_08.expected --- .=null --- NEW FILE: test_basic_04.json --- "abcdef" --- NEW FILE: test_array_02.expected --- .=[] .[0]=1 --- NEW FILE: test_basic_04.expected --- .="abcdef" --- NEW FILE: test_basic_01.expected --- .=123456789 --- NEW FILE: test_basic_02.json --- -0123456789 --- NEW FILE: test_integer_05.json --- 1 --- NEW FILE: test_basic_01.json --- 0123456789 --- NEW FILE: test_real_02.expected --- .=-4294967295 --- NEW FILE: test_real_07.json --- // -1234567.8 -0.12345678e7 --- NEW FILE: test_basic_05.json --- null --- NEW FILE: test_array_03.expected --- .=[] .[0]=1 .[1]=2 .[2]=3 .[3]=4 .[4]=5 --- NEW FILE: test_integer_02.expected --- .=-2147483648 |
From: Baptiste L. <bl...@us...> - 2006-03-07 22:21:33
|
Update of /cvsroot/cppunit/cppunit2/test/shmem_test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13327/shmem_test Log Message: Directory /cvsroot/cppunit/cppunit2/test/shmem_test added to the repository |
From: Baptiste L. <bl...@us...> - 2006-03-07 22:21:31
|
Update of /cvsroot/cppunit/cppunit2/test/json_test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13327/json_test Log Message: Directory /cvsroot/cppunit/cppunit2/test/json_test added to the repository |
From: Baptiste L. <bl...@us...> - 2006-03-07 22:21:19
|
Update of /cvsroot/cppunit/cppunit2/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13084/test Log Message: Directory /cvsroot/cppunit/cppunit2/test added to the repository |
From: Baptiste L. <bl...@us...> - 2006-03-06 22:50:57
|
Update of /cvsroot/cppunit/cppunit2/include/opentest In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1159/include/opentest Modified Files: texttestdriver.h Log Message: * fixed msvc6 compilation issues Index: texttestdriver.h =================================================================== RCS file: /cvsroot/cppunit/cppunit2/include/opentest/texttestdriver.h,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** texttestdriver.h 6 Mar 2006 21:56:17 -0000 1.12 --- texttestdriver.h 6 Mar 2006 22:50:53 -0000 1.13 *************** *** 41,49 **** } ! for ( Connectors::iterator it = connectors_.begin(); ! it != connectors_.end(); ! ++it ) { ! Connector &connector = **it; if ( connector.status().status_ == connectionEstablished ) { --- 41,49 ---- } ! for ( Connectors::iterator it2 = connectors_.begin(); ! it2 != connectors_.end(); ! ++it2 ) { ! Connector &connector = **it2; if ( connector.status().status_ == connectionEstablished ) { |
From: Baptiste L. <bl...@us...> - 2006-03-06 22:50:56
|
Update of /cvsroot/cppunit/cppunit2/include/cpptl In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1159/include/cpptl Modified Files: atomiccounter.h Log Message: * fixed msvc6 compilation issues Index: atomiccounter.h =================================================================== RCS file: /cvsroot/cppunit/cppunit2/include/cpptl/atomiccounter.h,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** atomiccounter.h 9 Nov 2005 22:03:55 -0000 1.9 --- atomiccounter.h 6 Mar 2006 22:50:53 -0000 1.10 *************** *** 7,16 **** # endif - // Notes: linux implementation only guaranty a 24 bits range for the atomic integer. - # if CPPTL_USE_WIN32_ATOMIC // Forwards declaration for WIN32 (avoid including windows.h) extern "C" __declspec(dllimport) long __stdcall InterlockedIncrement(long volatile *); extern "C" __declspec(dllimport) long __stdcall InterlockedDecrement(long volatile *); # endif // ifdef CPPTL_USE_WIN32_ATOMIC --- 7,19 ---- # endif # if CPPTL_USE_WIN32_ATOMIC // Forwards declaration for WIN32 (avoid including windows.h) + # if _MSC_VER <= 1200 // VC++ 6 platform SDK as not volatile + extern "C" __declspec(dllimport) long __stdcall InterlockedIncrement(long *); + extern "C" __declspec(dllimport) long __stdcall InterlockedDecrement(long *); + # else extern "C" __declspec(dllimport) long __stdcall InterlockedIncrement(long volatile *); extern "C" __declspec(dllimport) long __stdcall InterlockedDecrement(long volatile *); + # endif # endif // ifdef CPPTL_USE_WIN32_ATOMIC |
From: Baptiste L. <bl...@us...> - 2006-03-06 22:36:25
|
Update of /cvsroot/cppunit/cppunit2/src/opentest In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26194/src/opentest Modified Files: remoteinterfaces.cpp Log Message: * worked-around msvc6 compiler bug. Index: remoteinterfaces.cpp =================================================================== RCS file: /cvsroot/cppunit/cppunit2/src/opentest/remoteinterfaces.cpp,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** remoteinterfaces.cpp 11 Dec 2005 17:16:09 -0000 1.4 --- remoteinterfaces.cpp 6 Mar 2006 22:36:18 -0000 1.5 *************** *** 114,141 **** ! template<class TargetType ! ,class DataType ! > ! void dispatchSimpleRemoteCall( const RemoteMessagePtr &inMessage, ! TargetType *target, ! void (TargetType::*method)( const DataType & ) ) { ! typedef SimpleRemoteMessage<DataType> MessageType; ! const MessageType *message = static_cast<const MessageType *>( inMessage.get() ); ! (target->*method)( message->data_ ); ! } - template<class TargetType - ,class DataType - > - void dispatchSimpleRemoteCallNoRef( const RemoteMessagePtr &inMessage, - TargetType *target, - void (TargetType::*method)( DataType ) ) - { - typedef SimpleRemoteMessage<DataType> MessageType; - const MessageType *message = static_cast<const MessageType *>( inMessage.get() ); - (target->*method)( message->data_ ); - } --- 114,149 ---- ! template<class TargetType, class DataType> ! class DispatchHelper { ! public: ! static void simpleRemoteCall( const RemoteMessagePtr &inMessage, ! TargetType *target, ! void (TargetType::*method)( const DataType &) ) ! { ! typedef SimpleRemoteMessage<DataType> MessageType; ! const MessageType *message = static_cast<const MessageType *>( inMessage.get() ); ! (target->*method)( message->data_ ); ! } + static void simpleRemoteCallNoRef( const RemoteMessagePtr &inMessage, + TargetType *target, + void (TargetType::*method)( DataType ) ) + { + typedef SimpleRemoteMessage<DataType> MessageType; + const MessageType *message = static_cast<const MessageType *>( inMessage.get() ); + (target->*method)( message->data_ ); + } + + static void testIdRemoteCall( const RemoteMessagePtr &inMessage, + TargetType *target, + void (TargetType::*method)( TestId, const DataType & ) ) + { + typedef TestIdRemoteMessage<DataType> MessageType; + const MessageType *message = static_cast<const MessageType *>( inMessage.get() ); + (target->*method)( message->testId_, message->data_ ); + } + }; *************** *** 191,206 **** } - template<class TargetType - ,class DataType - > - void dispatchTestIdRemoteCall( const RemoteMessagePtr &inMessage, - TargetType *target, - void (TargetType::*method)( TestId, const DataType & ) ) - { - typedef TestIdRemoteMessage<DataType> MessageType; - const MessageType *message = static_cast<const MessageType *>( inMessage.get() ); - (target->*method)( message->testId_, message->data_ ); - } - // ////////////////////////////////////////////////////////////////// --- 199,202 ---- *************** *** 377,402 **** { case driverMessageSetTestDescriptions: ! dispatchSimpleRemoteCall( message, impl_, &TestDriverInterface::setTestDescriptions ); break; case driverMessageSetDefaultTestPlan: ! dispatchSimpleRemoteCall( message, impl_, &TestDriverInterface::setDefaultTestPlans ); break; case driverMessageStartTesting: ! dispatchSimpleRemoteCallNoRef( message, impl_, &TestDriverInterface::startTesting ); break; case driverMessageAddResultLog: ! dispatchTestIdRemoteCall( message, impl_, &TestDriverInterface::addResultLog ); break; case driverMessageAddResultAssertion: ! dispatchTestIdRemoteCall( message, impl_, &TestDriverInterface::addResultAssertion ); break; case driverMessageSetResultInputActualOutput: ! dispatchTestIdRemoteCall( message, impl_, &TestDriverInterface::setResultInputActualOutput ); break; case driverMessageSetTestResult: ! dispatchTestIdRemoteCall( message, impl_, &TestDriverInterface::setTestResult ); break; case driverMessageTestPlanDone: ! dispatchSimpleRemoteCallNoRef( message, impl_, &TestDriverInterface::testPlanDone ); break; default: --- 373,414 ---- { case driverMessageSetTestDescriptions: ! DispatchHelper<TestDriverInterface, TestDescriptions>::simpleRemoteCall( message, ! impl_, ! &TestDriverInterface::setTestDescriptions ); break; case driverMessageSetDefaultTestPlan: ! DispatchHelper<TestDriverInterface, TestPlans>::simpleRemoteCall( message, ! impl_, ! &TestDriverInterface::setDefaultTestPlans ); break; case driverMessageStartTesting: ! DispatchHelper<TestDriverInterface, TestPlanId>::simpleRemoteCallNoRef( message, ! impl_, ! &TestDriverInterface::startTesting ); break; case driverMessageAddResultLog: ! DispatchHelper<TestDriverInterface, ResultLog>::testIdRemoteCall( message, ! impl_, ! &TestDriverInterface::addResultLog ); break; case driverMessageAddResultAssertion: ! DispatchHelper<TestDriverInterface, ResultAssertion>::testIdRemoteCall( message, ! impl_, ! &TestDriverInterface::addResultAssertion ); break; case driverMessageSetResultInputActualOutput: ! DispatchHelper<TestDriverInterface, ResultInputOutput>::testIdRemoteCall( message, ! impl_, ! &TestDriverInterface::setResultInputActualOutput ); break; case driverMessageSetTestResult: ! DispatchHelper<TestDriverInterface, ResultStatus>::testIdRemoteCall( message, ! impl_, ! &TestDriverInterface::setTestResult ); break; case driverMessageTestPlanDone: ! DispatchHelper<TestDriverInterface, TestPlanId>::simpleRemoteCallNoRef( message, ! impl_, ! &TestDriverInterface::testPlanDone ); break; default: *************** *** 454,458 **** break; case runnerMessageRunTests: ! dispatchSimpleRemoteCall( message, impl_, &TestRunnerInterface::runTests ); break; case runnerMessageStopTest: --- 466,472 ---- break; case runnerMessageRunTests: ! DispatchHelper<TestRunnerInterface, TestPlans>::simpleRemoteCall( message, ! impl_, ! &TestRunnerInterface::runTests ); break; case runnerMessageStopTest: |
From: Baptiste L. <bl...@us...> - 2006-03-06 21:57:08
|
Update of /cvsroot/cppunit/cppunit2/include/opentest In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4799/include/opentest Modified Files: texttestdriver.h Log Message: * fixed compilation issue with gcc Index: texttestdriver.h =================================================================== RCS file: /cvsroot/cppunit/cppunit2/include/opentest/texttestdriver.h,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** texttestdriver.h 11 Dec 2005 17:49:18 -0000 1.11 --- texttestdriver.h 6 Mar 2006 21:56:17 -0000 1.12 *************** *** 30,34 **** } ! void runTests() { for ( Connectors::iterator it = connectors_.begin(); --- 30,34 ---- } ! bool runTests() { for ( Connectors::iterator it = connectors_.begin(); *************** *** 53,56 **** --- 53,57 ---- } } + return 0; } |
From: Baptiste L. <bl...@us...> - 2006-03-06 21:43:12
|
Update of /cvsroot/cppunit/cppunit2 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30236 Modified Files: sconstruct Log Message: Removed compilation warning with msvc 8.0 Index: sconstruct =================================================================== RCS file: /cvsroot/cppunit/cppunit2/sconstruct,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 *** sconstruct 11 Dec 2005 17:16:08 -0000 1.23 --- sconstruct 6 Mar 2006 21:43:07 -0000 1.24 *************** *** 57,61 **** for tool in ['msvc', 'msvs', 'mslink', 'masm', 'mslib']: env.Tool( tool ) ! env['CXXFLAGS']='-GR -GX /nologo' elif platform == 'mingw': env.Tool( 'mingw' ) --- 57,61 ---- for tool in ['msvc', 'msvs', 'mslink', 'masm', 'mslib']: env.Tool( tool ) ! env['CXXFLAGS']='-GR -EHsc /nologo' elif platform == 'mingw': env.Tool( 'mingw' ) |
From: Baptiste L. <bl...@us...> - 2006-03-06 21:14:25
|
Update of /cvsroot/cppunit/cppunit2/include/opentest In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14721/include/opentest Removed Files: serializedtesttransport.h Log Message: * removed dead-code --- serializedtesttransport.h DELETED --- |
From: Baptiste L. <bl...@us...> - 2006-03-06 21:07:39
|
Update of /cvsroot/cppunit/cppunit2/include/opentest In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10398/include/opentest Modified Files: serializer.h Log Message: * fixed compilation issue with msvc6 Index: serializer.h =================================================================== RCS file: /cvsroot/cppunit/cppunit2/include/opentest/serializer.h,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** serializer.h 6 Mar 2006 08:40:49 -0000 1.12 --- serializer.h 6 Mar 2006 21:07:30 -0000 1.13 *************** *** 287,297 **** } ! template<class SequenceType, class KeyType> ! Stream &unserializeSTLMap( Stream &stream, SequenceType &sequence, KeyType &key ) { unsigned int size; stream >> size; CPPTL_TYPENAME SequenceType::iterator itWhere = sequence.begin(); ! CPPTL_TYPENAME SequenceType::mapped_type value; typedef CPPTL_TYPENAME SequenceType::value_type ValueType; while ( size-- > 0 ) --- 287,300 ---- } ! template<class SequenceType, class KeyType, class MappedType> ! Stream &unserializeSTLMap( Stream &stream, ! SequenceType &sequence, ! KeyType &key, ! CppTL::Type<MappedType> ) { unsigned int size; stream >> size; CPPTL_TYPENAME SequenceType::iterator itWhere = sequence.begin(); ! MappedType value; typedef CPPTL_TYPENAME SequenceType::value_type ValueType; while ( size-- > 0 ) |
From: Baptiste L. <bl...@us...> - 2006-03-06 21:05:12
|
Update of /cvsroot/cppunit/cppunit2/src/opentest In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8568/src/opentest Modified Files: interfaces.cpp Log Message: * fixed compilation issue with msvc6 Index: interfaces.cpp =================================================================== RCS file: /cvsroot/cppunit/cppunit2/src/opentest/interfaces.cpp,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** interfaces.cpp 11 Dec 2005 17:16:09 -0000 1.3 --- interfaces.cpp 6 Mar 2006 21:04:10 -0000 1.4 *************** *** 71,76 **** { TestId key; ! unserializeSTLMap( stream, testCases_, key ); ! return unserializeSTLMap( stream, testSuites_, key ); } --- 71,76 ---- { TestId key; ! unserializeSTLMap( stream, testCases_, key, CppTL::Type<TestCaseDescription>() ); ! return unserializeSTLMap( stream, testSuites_, key, CppTL::Type<TestSuiteDescription>() ); } |
From: Baptiste L. <bl...@us...> - 2006-03-06 21:03:47
|
Update of /cvsroot/cppunit/cppunit2/src/opentest In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8180/src/opentest Modified Files: SConscript Log Message: * added remoteinterfaces and sharedmemorytransport to scons project. Index: SConscript =================================================================== RCS file: /cvsroot/cppunit/cppunit2/src/opentest/SConscript,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** SConscript 6 Mar 2006 20:18:03 -0000 1.8 --- SConscript 6 Mar 2006 21:03:43 -0000 1.9 *************** *** 5,10 **** remoteinterfaces.cpp serializer.cpp """ ), 'opentest' ) - - # sharedmemorytransport.cpp --- 5,9 ---- remoteinterfaces.cpp serializer.cpp + sharedmemorytransport.cpp """ ), 'opentest' ) |
From: Baptiste L. <bl...@us...> - 2006-03-06 20:18:08
|
Update of /cvsroot/cppunit/cppunit2/src/opentest In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15683/src/opentest Modified Files: SConscript Added Files: obsolete_texttestdriver.cpp Removed Files: texttestdriver.cpp Log Message: obsoleted old texttestdriver implementation. Index: SConscript =================================================================== RCS file: /cvsroot/cppunit/cppunit2/src/opentest/SConscript,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** SConscript 7 Nov 2005 22:43:08 -0000 1.7 --- SConscript 6 Mar 2006 20:18:03 -0000 1.8 *************** *** 3,11 **** buildLibary( env, Split( """ interfaces.cpp serializer.cpp """ ), 'opentest' ) - # texttestdriver.cpp - # remoteinterfaces.cpp # sharedmemorytransport.cpp --- 3,10 ---- buildLibary( env, Split( """ interfaces.cpp + remoteinterfaces.cpp serializer.cpp """ ), 'opentest' ) # sharedmemorytransport.cpp --- texttestdriver.cpp DELETED --- --- NEW FILE: obsolete_texttestdriver.cpp --- #include <opentest/texttestdriver.h> #include <iostream> // for progress namespace OpenTest { // ////////////////////////////////////////////////////////////////// // ////////////////////////////////////////////////////////////////// // class TestDriverTestPlan // ////////////////////////////////////////////////////////////////// // ////////////////////////////////////////////////////////////////// TestPlanEntryPtrEnum TestDriverTestPlan::entries() const { return CppTL::Enum::anyContainer( entries_ ); } void TestDriverTestPlan::add( const TestPlanEntryPtr &entry ) { entries_.push_back( entry ); } // ////////////////////////////////////////////////////////////////// // ////////////////////////////////////////////////////////////////// // class TestResult // ////////////////////////////////////////////////////////////////// // ////////////////////////////////////////////////////////////////// TestResult::TestResult( TestPlanEntryId id, TestId test ) : id_( id ) , test_( test ) { } TestPlanEntryId TestResult::id() const { return id_; } TestId TestResult::test() const { return test_; } const Properties & TestResult::result() const { return result_; } Properties & TestResult::result() { return result_; } // ////////////////////////////////////////////////////////////////// // ////////////////////////////////////////////////////////////////// // class TestDriverTestPlanEntry // ////////////////////////////////////////////////////////////////// // ////////////////////////////////////////////////////////////////// TestDriverTestPlanEntry::TestDriverTestPlanEntry( TestPlanEntryId id, TestId test, const Properties &configuration ) : id_( id ) , test_( test ) , configuration_( configuration ) { } TestPlanEntryId TestDriverTestPlanEntry::id() const { return id_; } /// Test to run TestId TestDriverTestPlanEntry::test() const { return test_; } /// Used to pass configuration data to the test runner or the test itself const Properties & TestDriverTestPlanEntry::configuration() const { return configuration_; } // ////////////////////////////////////////////////////////////////// // ////////////////////////////////////////////////////////////////// // class TextTestDriver // ////////////////////////////////////////////////////////////////// // ////////////////////////////////////////////////////////////////// TextTestDriver::TextTestDriver( TestRunner &runner ) : runner_( runner ) , nextTestId_( 0 ) { runner_.declareTests( *this ); std::cout << "Declared suites: " << suites_.size() << "\n" << "Declared tests: " << tests_.size() << std::endl; } bool TextTestDriver::run() { if ( testsToRun_.empty() ) testsToRun_ = tests_; TestDriverTestPlan plan; Tests::const_iterator itTest = testsToRun_.begin(); unsigned int entryId = 0; for ( ; itTest != testsToRun_.end(); ++itTest ) { const InternalTestInfo &testInfo = getTestInfo( *itTest ); plan.add( TestPlanEntryPtr( new TestDriverTestPlanEntry( ++entryId, *itTest, testInfo.info_ ) ) ); } runner_.runTests( plan, *this, Properties() ); outputFailures(); return failures_.empty(); } TestId TextTestDriver::beginSuite( const CppTL::ConstString &name, const Properties &data ) { TestId id = nextTestId(); declareTestOrSuite( id, name, data ); declaratorParentSuites_.push_back( id ); suites_.insert( id ); return id; } TestId TextTestDriver::addTest( const CppTL::ConstString &name, const Properties &data ) { TestId id = nextTestId(); declareTestOrSuite( id, name, data ); tests_.insert( id ); return id; } void TextTestDriver::endSuite() { declaratorParentSuites_.pop_back(); } void TextTestDriver::declareTestOrSuite( TestId id, const CppTL::ConstString &name, const Properties &data ) { InternalTestInfo info( id, name, data, declaratorParentSuites_ ); testInfos_.insert( TestInfos::value_type( id, info ) ); if ( declaratorParentSuites_.size() > 0 ) { TestId parentId = declaratorParentSuites_.back(); getTestInfo(parentId).children_.push_back( id ); } } TestId TextTestDriver::nextTestId() { return ++nextTestId_; } void TextTestDriver::startTestRun() { results_.clear(); successes_.clear(); failures_.clear(); } void TextTestDriver::startTest( const TestPlanEntry &testEntry ) { TestResult result( testEntry.id(), testEntry.test() ); // should add descriptive test data first result.result().mergeReplacingExisting( testEntry.configuration() ); results_.push_back( result ); const unsigned int maxParent = 1; std::cout << "Testing '" << getTestPath( testEntry.test(), maxParent ) << "' : "; std::cout.flush(); } void TextTestDriver::mergeInTestResult( const TestPlanEntry &testEntry, const Properties &result ) { results_.back().result()["result"].asProperties().mergeReplacingExisting( result ); } void TextTestDriver::mergeInTestResult( const TestPlanEntry &testEntry, const PropertyPath &path, const Value &value ) { results_.back().result()["result"][path] = value; } void TextTestDriver::appendToTestResult( const TestPlanEntry &testEntry, const PropertyPath &path, const Value &value ) { results_.back().result()["result"][path].append( value ); } void TextTestDriver::endTest( const TestPlanEntry &testEntry ) { const Properties &result = results_.back().result(); PropertiesAccessor status = result.accessor()["result"]["status"]; bool succeeded = status.getValue( "success", false ).asBool(); CppTL::ConstString statusInfo = succeeded ? "OK" : "FAIL"; if ( succeeded ) successes_.push_back( results_.size() - 1 ); else failures_.push_back( results_.size() - 1 ); CppTL::ConstString resultType = status.getValue( "type", "" ).asString(); if ( !resultType.empty() ) statusInfo += " (" + resultType + ")"; std::cout << statusInfo << std::endl; std::cout.flush(); // std::cout << result.toString() << std::endl; } void TextTestDriver::endTestRun() { } bool TextTestDriver::shouldStopTestRun() { return false; } const TextTestDriver::InternalTestInfo & TextTestDriver::getTestInfo( TestId test ) const { TestInfos::const_iterator it = testInfos_.find( test ); if ( it == testInfos_.end() ) throw std::invalid_argument( "TextTestDriver::getTestInfo() : bad TestId." ); return it->second; } TextTestDriver::InternalTestInfo & TextTestDriver::getTestInfo( TestId test ) { TestInfos::iterator it = testInfos_.find( test ); if ( it == testInfos_.end() ) throw std::invalid_argument( "TextTestDriver::getTestInfo() : bad TestId." ); return it->second; } void TextTestDriver::outputFailures() { if ( failures_.empty() ) { std::cout << "All " << testsToRun_.size() << " tests passed..." << std::endl; return; } TestResultIndexes::const_iterator failuresIt = failures_.begin(); for ( ; failuresIt != failures_.end(); ++failuresIt ) { // @todo update to new result properties structure const TestResult &testResult = CPPTL_AT( results_, *failuresIt ); PropertiesAccessor info = testResult.result().accessor(); Properties::ValueEnum enumFaults = info["result/faults"].listValues(); while ( enumFaults.hasNext() ) { // @todo check is properties => schema check ? Value fault = enumFaults.next(); reportFailure( testResult, fault.asProperties(), false ); } Properties::ValueEnum enumAssertions = info["result/assertions"].listValues(); while ( enumAssertions.hasNext() ) { // @todo check is properties => schema check ? Value assertion = enumAssertions.next(); reportFailure( testResult, assertion.asProperties(), true ); } /* PropertiesAccessor locationInfo = info["result"]["status"]["location"]; if ( locationInfo.isValid() ) { std::cout << locationInfo.getValue("file").asString() << "(" << locationInfo.getValue("line").asInt() << ") : "; } else { std::cout << "Unknown failure location : "; } std::cout << getTestPath( testResult.test() ) << std::endl; CppTL::ConstString failureType = info["result"]["status"].getValue("type","").asString(); if ( !failureType.empty() ) std::cout << "Failure type : " << failureType << std::endl; CppTL::ConstString message = info["result"]["status"].getValue("message","").asString(); if ( !message.empty() ) std::cout << message << std::endl; */ std::cout << "Failures: " << failures_.size() << ", "; std::cout << "Tested: " << testsToRun_.size() << std::endl; } } void TextTestDriver::reportFailure( const TestResult &testResult, const Properties &failure, bool isAssertion ) { if ( failure.has( "location") ) { if ( failure.has("location/file") ) { std::cout << failure["location/file"].asString() << "(" << failure["location/line"].asInt() << ") "; } if ( failure.has("location/function") ) std::cout << "{" << failure["location/function"].asString() << "} "; std::cout << " : "; } std::cout << getTestPath( testResult.test() ) << std::endl; CppTL::ConstString failureType = failure.getValue( "failure_type", isAssertion ? "assertion" : "fault" ).asString(); std::cout << "Failure type : " << failureType << std::endl; Properties::ValueEnum enumMessages = failure.accessor()["messages"].listValues(); if ( enumMessages.hasNext() ) std::cout << "Messages:\n"; while ( enumMessages.hasNext() ) { // @todo check type CppTL::ConstString message = enumMessages.next().asString(); std::cout << message << std::endl; } Properties::ValueEnum enumLogs = failure.accessor()["logs"].listValues(); if ( enumLogs.hasNext() ) std::cout << "Log:\n"; while ( enumLogs.hasNext() ) { // @todo check type CppTL::ConstString log = enumLogs.next().asString(); std::cout << log << std::endl; } std::cout << "Failure tree:" << failure.toString() << std::endl; } CppTL::ConstString TextTestDriver::getTestPath( TestId test, unsigned int maxParent ) const { CppTL::ConstString path; const InternalTestInfo &info = getTestInfo( test ); path = "/" + info.name_; if ( info.parents_.empty() ) return path; bool isPartialPath = maxParent < info.parents_.size(); for ( unsigned int index = info.parents_.size()-1; index != -1 && maxParent-- >0; --index ) { const InternalTestInfo &parentInfo = getTestInfo( info.parents_[index] ); path = "/" + parentInfo.name_ + path; } if ( isPartialPath ) path = ".." + path; return path; } // Implementation of TestInfoExplorer // ////////////////////////////////////////////////////////////////// namespace Impl { struct IsTestSuiteOrTestCaseFilter { IsTestSuiteOrTestCaseFilter( bool keepSuite ) : keepSuite_( keepSuite ) { } bool operator()( const TestInfo &info ) const { return info.isTestSuite() == keepSuite_; } bool keepSuite_; }; struct TestId2TestInfoAdapator { typedef TestInfo result_type; TestId2TestInfoAdapator( const TestInfoHolder &holder ) : holder_( holder ) { } TestInfo operator()( TestId id ) const { return TestInfo( holder_, id ); } const TestInfoHolder &holder_; }; } // namespace Impl TestInfoEnumerator TextTestDriver::getAllTestCases() const { return CppTL::Enum::anyTransform( CppTL::Enum::container( tests_, CppTL::Type<TestId>() ), Impl::TestId2TestInfoAdapator( *this ) ); } TestInfoEnumerator TextTestDriver::getAllTestSuites() const { return CppTL::Enum::anyTransform( CppTL::Enum::container( suites_, CppTL::Type<TestId>() ), Impl::TestId2TestInfoAdapator( *this ) ); } TestInfo TextTestDriver::getRootTestSuite() const { TestId id; if ( !tests_.empty() ) id = *(tests_.begin()); else if ( !suites_.empty() ) id = *(suites_.begin()); else throw std::logic_error( "TextTestDriver::getRootTestSuite(): no suite defined." ); while ( !getTestInfo(id).parents_.empty() ) id = *(getTestInfo(id).parents_.begin()); return TestInfo( *this, id ); } // Implementation of TestInfoHolder // ////////////////////////////////////////////////////////////////// const String & TextTestDriver::getTestName( TestId id ) const { return getTestInfo(id).name_; } PropertiesAccessor TextTestDriver::getTestDescription( TestId id ) const { return getTestInfo(id).info_.accessor()["description"]; } PropertiesAccessor TextTestDriver::getTestInput( TestId id ) const { return getTestInfo(id).info_.accessor()["input"]; } bool TextTestDriver::isTestSuite( TestId id ) const { return suites_.count(id) > 0; } TestInfoEnumerator TextTestDriver::getTestChildren( TestId id ) const { return CppTL::Enum::anyTransform( CppTL::Enum::container( getTestInfo(id).children_ ), Impl::TestId2TestInfoAdapator( *this ) ); } TestInfoEnumerator TextTestDriver::getTestParents( TestId id ) const { return CppTL::Enum::anyTransform( CppTL::Enum::container( getTestInfo(id).parents_ ), Impl::TestId2TestInfoAdapator( *this ) ); } // ////////////////////////////////////////////////////////////////// // ////////////////////////////////////////////////////////////////// // class TestInfo // ////////////////////////////////////////////////////////////////// // ////////////////////////////////////////////////////////////////// TestInfo::TestInfo( const TestInfoHolder &holder, TestId id ) : id_( id ) , holder_( holder ) { } const String & TestInfo::getName() const { return holder_.getTestName( id_ ); } PropertiesAccessor TestInfo::getDescription() const { return holder_.getTestDescription( id_ ); } bool TestInfo::isTestSuite() const { return holder_.isTestSuite( id_ ); } bool TestInfo::isTestCase() const { return !isTestSuite(); } TestInfoEnumerator TestInfo::getParents() const { return holder_.getTestParents( id_ ); } PropertiesAccessor TestInfo::getInput() const { return holder_.getTestInput( id_ ); } TestInfoEnumerator TestInfo::getChildren() const { return holder_.getTestChildren( id_ ); } TestInfoEnumerator TestInfo::getChildTestSuites() const { return CppTL::Enum::anyFilter( getChildren(), Impl::IsTestSuiteOrTestCaseFilter(true) ); } TestInfoEnumerator TestInfo::getChildTestCases() const { return CppTL::Enum::anyFilter( getChildren(), Impl::IsTestSuiteOrTestCaseFilter(false) ); } } // namespace OpenTest |
From: Baptiste L. <bl...@us...> - 2006-03-06 08:41:39
|
Update of /cvsroot/cppunit/cppunit2/include/opentest In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7204/include/opentest Modified Files: forwards.h interfaces.h serializedtesttransport.h serializer.h Log Message: * dead-code removal, obsolescence annotiation Index: forwards.h =================================================================== RCS file: /cvsroot/cppunit/cppunit2/include/opentest/forwards.h,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** forwards.h 11 Dec 2005 17:16:08 -0000 1.9 --- forwards.h 6 Mar 2006 08:40:48 -0000 1.10 *************** *** 15,39 **** typedef CppTL::ConstString String; ! class ResourceList; ! class TestDeclarator; class TestPlan; - class TestPlanEntry; class TestPlans; ! class TestRunTracker; ! ! class RemoteMessage; ! class RemoteMessageServer; class ResultAssertion; class ResultInputOutput; - class ResultLog; class ResultStatus; - class Stream; - class TestDescriptions; - class TestPlan; - class TestRunnerInterface; - class TestDriverInterface; class Connector; typedef unsigned int TestId; --- 15,53 ---- typedef CppTL::ConstString String; ! // interfaces.h ! class Connectable; ! class TestRunnerInterface; ! class TestDriverInterface; ! class TestDescriptionCommon; ! class TestCaseDescription; ! class TestSuiteDescription; ! class TestDescriptions; class TestPlan; class TestPlans; ! class ResultLog; class ResultAssertion; class ResultInputOutput; class ResultStatus; + // remoteinterfaces.h + class RemoteMessage; + class MessageTransport; + class MessageServerProxy; + class TestDriverProxy; + class RemoteMessageServer; + class TestDriverServer; + class TestRunnerProxy; + class TestRunnerServer; + + // connector.h + class ConnectionStatusListener; class Connector; + class DirectConnector; + // serializer.h + class Packets; + class Stream; + + // forwards.h typedef unsigned int TestId; *************** *** 43,48 **** typedef CppTL::SharedPtr<RemoteMessage> RemoteMessagePtr; ! typedef CppTL::SharedPtr<TestPlanEntry> TestPlanEntryPtr; ! typedef CppTL::AnyEnumerator<TestPlanEntryPtr> TestPlanEntryPtrEnum; typedef CppTL::IntrusivePtr<Connector> ConnectorPtr; --- 57,62 ---- typedef CppTL::SharedPtr<RemoteMessage> RemoteMessagePtr; ! //typedef CppTL::SharedPtr<TestPlanEntry> TestPlanEntryPtr; ! //typedef CppTL::AnyEnumerator<TestPlanEntryPtr> TestPlanEntryPtrEnum; typedef CppTL::IntrusivePtr<Connector> ConnectorPtr; Index: serializer.h =================================================================== RCS file: /cvsroot/cppunit/cppunit2/include/opentest/serializer.h,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** serializer.h 11 Dec 2005 17:16:08 -0000 1.11 --- serializer.h 6 Mar 2006 08:40:49 -0000 1.12 *************** *** 15,19 **** typedef CppTL::LargestUnsignedInt LargestUnsignedInt; ! class Packets { friend class PacketsTest; --- 15,19 ---- typedef CppTL::LargestUnsignedInt LargestUnsignedInt; ! class OPENTEST_API Packets { friend class PacketsTest; *************** *** 177,181 **** ! class Stream { public: --- 177,181 ---- ! class OPENTEST_API Stream { public: Index: interfaces.h =================================================================== RCS file: /cvsroot/cppunit/cppunit2/include/opentest/interfaces.h,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** interfaces.h 11 Dec 2005 17:16:08 -0000 1.7 --- interfaces.h 6 Mar 2006 08:40:48 -0000 1.8 *************** *** 174,177 **** --- 174,178 ---- }; + // Currently unused... class OPENTEST_API ResultInputOutput { Index: serializedtesttransport.h =================================================================== RCS file: /cvsroot/cppunit/cppunit2/include/opentest/serializedtesttransport.h,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** serializedtesttransport.h 6 Sep 2005 07:43:48 -0000 1.1 --- serializedtesttransport.h 6 Mar 2006 08:40:48 -0000 1.2 *************** *** 2,5 **** --- 2,10 ---- # define OPENTEST_SERIALIZEDTESTTRANSPORT_H_INCLUDED + + /* Unused code, need to be updated to work with connector.h... + */ + + # include <opentest/forwards.h> # include <opentest/remoteinterfaces.h> |
From: Baptiste L. <bl...@us...> - 2006-03-06 08:40:53
|
Update of /cvsroot/cppunit/cppunit2/makefiles/vs71 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7204/makefiles/vs71 Modified Files: opentest_lib.vcproj Log Message: * dead-code removal, obsolescence annotiation Index: opentest_lib.vcproj =================================================================== RCS file: /cvsroot/cppunit/cppunit2/makefiles/vs71/opentest_lib.vcproj,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** opentest_lib.vcproj 11 Dec 2005 17:16:08 -0000 1.4 --- opentest_lib.vcproj 6 Mar 2006 08:40:49 -0000 1.5 *************** *** 148,152 **** </File> <File ! RelativePath="..\..\include\opentest\testplan.h"> </File> </Files> --- 148,152 ---- </File> <File ! RelativePath="..\..\include\opentest\texttestdriver.h"> </File> </Files> |
From: Baptiste L. <bl...@us...> - 2006-03-06 07:47:48
|
Update of /cvsroot/cppunit/cppunit2/doc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7281/doc Added Files: footer.html header.html Log Message: * added file required for doc generation. --- NEW FILE: footer.html --- <hr> <table width="100%"> <tr> <td width="10%" align="left" valign="center"> <a href="http://sourceforge.net"> <img src="http://sourceforge.net/sflogo.php?group_id=11795" width="88" height="31" border="0" alt="SourceForge Logo"></a> </td> <td width="20%" align="left" valign="center"> hosts this site. </td> <td> </td> <td align="right" valign="center"> Send comments to:<br> <a href="mailto:cpp...@li...">CppUnit Developers</a> </td> </tr> </table> </body> </html> --- NEW FILE: header.html --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>CppUnit 2: Main Page</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> <link href="tabs.css" rel="stylesheet" type="text/css"> </head><body> <table width="100%"> <tr> <td width="40%" align="left" valign="center"> <a href="http://sourceforge.net/projects/cppunit"> CppUnit project page </a> </td> <td width="40%" align="right" valign="center"> <a href="http://cppunit.sourceforge.net">CppUnit home page</a> </td> </tr> </table> <hr> |
From: Baptiste L. <bl...@us...> - 2006-03-05 10:11:44
|
Update of /cvsroot/cppunit/cppunit In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22392 Modified Files: README.sourceforge Log Message: * updated release procedure Index: README.sourceforge =================================================================== RCS file: /cvsroot/cppunit/cppunit/README.sourceforge,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** README.sourceforge 18 Jun 2004 09:27:00 -0000 1.4 --- README.sourceforge 5 Mar 2006 10:11:40 -0000 1.5 *************** *** 6,10 **** --- 6,12 ---- Bump up release version in: - include/cppunit/Portability.h + - configure.in - doc/makedox.bat + - NEWS make distcheck |
From: Baptiste L. <bl...@us...> - 2006-03-05 09:59:45
|
Update of /cvsroot/cppunit/cppunit In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13542 Modified Files: configure.in Log Message: release 1.11.6 Index: configure.in =================================================================== RCS file: /cvsroot/cppunit/cppunit/configure.in,v retrieving revision 1.83 retrieving revision 1.84 diff -C2 -d -r1.83 -r1.84 *** configure.in 4 Mar 2006 21:47:05 -0000 1.83 --- configure.in 5 Mar 2006 09:59:40 -0000 1.84 *************** *** 16,20 **** CPPUNIT_MAJOR_VERSION=1 CPPUNIT_MINOR_VERSION=11 ! CPPUNIT_MICRO_VERSION=4 CPPUNIT_INTERFACE_AGE=0 CPPUNIT_BINARY_AGE=0 --- 16,20 ---- CPPUNIT_MAJOR_VERSION=1 CPPUNIT_MINOR_VERSION=11 ! CPPUNIT_MICRO_VERSION=6 CPPUNIT_INTERFACE_AGE=0 CPPUNIT_BINARY_AGE=0 |
From: Baptiste L. <bl...@us...> - 2006-03-05 09:59:43
|
Update of /cvsroot/cppunit/cppunit/doc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13542/doc Modified Files: makedox.bat Log Message: release 1.11.6 Index: makedox.bat =================================================================== RCS file: /cvsroot/cppunit/cppunit/doc/makedox.bat,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** makedox.bat 14 Oct 2005 07:12:58 -0000 1.10 --- makedox.bat 5 Mar 2006 09:59:40 -0000 1.11 *************** *** 1,3 **** ! SET VERSION=1.11.2 doxygen CppUnit-win.dox xcopy FAQ html /Y --- 1,3 ---- ! SET VERSION=1.11.6 doxygen CppUnit-win.dox xcopy FAQ html /Y |
From: Baptiste L. <bl...@us...> - 2006-03-04 23:47:30
|
Update of /cvsroot/cppunit/cppunit2/doc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9563/doc Added Files: codeguideline.txt Log Message: * naming convention for variable, classes... --- NEW FILE: codeguideline.txt --- * Naming conventions ------------------ * Naming conventions synopsis: - macro names are in uppercase - type names start with an uppercase - expression (parameter, variable, attribute, function, method...) names start with a lowercase. * Naming conventions rationale: This naming convention helps distinguishing between macro, type/namespace and function/expression, just by looking at a given identifier This makes the code easier to read. For instance: Object // this is a type name (or a namespace name) object // this is a variable name (no verb in the name) setObject // this is a method name (could also be a variable // name) object_ // this is an attribute name OBJECT // this is a macro name This also helps avoiding conflict between type name and function/attribute name. * Naming convention common to all names: - no name starts with an underscore ('_') (this is usually a prefix reserved to compiler/library implementers). - acronym are written in the same case (AST or ast, but not Ast or ast). - abbreviation are written in the Capitalized first letter style (Ptr for Pointer). - names should not reflect how the named entity is implemented, but what the entity is. * Macro name Macros are written in uppercase, using the underscore ('_') as a word separator. They should use a (short) prefix to avoid clash with existing macro. RFTA_HAS_TEMPLATE_PARTIAL_SPECIALIZATION BOOST_REPEAT_N * Type name (and namespace) Type (struct, class, enum) and namespace names start with an uppercase and have the first letter of each word capitalised. They should not contain underscore ('_'), unless you are simulating namespace or nested scope because of platform limitation. Examples: ASTNode SourceASTNode ParseContext IfStatementParser StringList - Test fixture class name is the name of the class being tested suffixed with Test. For example, ParseContextTest is the fixture used to test ParseContext. - boost::shared_ptr<> and boost::weak_ptr<> typedef are named after the type being pointed to, suffix with Ptr and WeakPtr respectively. For example: class ASTNode; typedef boost::shared_ptr<ASTNode> ASTNodePtr; typedef boost::weak_ptr<ASTNode> ASTNodeWeakPtr; - typedef name for container should be plural and should not reflect the container type. For example: typedef std::deque<ASTNodePtr> Nodes; typedef std::map<std::string,ASTNodePtr> Properties; * Expression name (parameter, variable, attribute, function, method...) Parameter, variable, class attribute, function and method names start with a lowercase and have the first letter of each word capitalised. They should not contain underscore ('_'). - Additional convention for method names: Getter and setter methods are prefixed, usually by 'get/set' (but it may be another word). Methods name should contains a verb (isEmpty() is correct, but empty() is not). This help distinguishing between variable names and method names. - Additional convention for attributes names: Attributes names are suffixed with an underscore ('_'). Attributes names that represents a container are plural and should not reflects the container type. Example: Properties properties_; Nodes childNodes_ Example of parameter and variable names: int fieldIndex; ASTNodePtr parentNode; Example of method and function names: bool hasProperty( const std::string &propertyName ) const; SourceRange getConditionSourceRange() const; void removeAllProperties(); Example of class attribute names: ASTNodeWeakPtr parentNode_; Properties properties_; int startIndex_; * Code sample using the naming convention #ifndef RFTA_ASTNODE_H #define RFTA_ASTNODE_H #include <string> #include <boost/shared_ptr.hpp> #include <boost/utility.hpp> #include <boost/weak_ptr.hpp> namespace Refactoring { class ASTNode; typedef boost::shared_ptr<ASTNode> ASTNodePtr; typedef boost::weak_ptr<ASTNode> ASTNodeWeakPtr; /// An abstract syntax tree node. class ASTNode : public boost::noncopyable { public: static ASTNodePtr create( const ASTNodeWeakPtr &parentNode, const std::string &type, int startIndex, int length ); /// Destructor. virtual ~ASTNode(); const std::string &getType() const; void mutateType( const std::string &type ); int getStartIndex() const; int getLength() const; void setLength( int length ); const ASTNodeWeakPtr &parentNode() const; void addChild( const ASTNodePtr &child ); int getChildCount() const; const ASTNodePtr &getChildAt( int index ) const; void setPropertyNode( const std::string &propertyName, const ASTNodePtr &node ); bool hasProperty( const std::string &propertyName ) const; ASTNodePtr getProperty( const std::string &propertyName ) const; void removeProperty( const std::string &propertyName ); void removeAllProperties(); protected: /*! Constructs a ASTNode object. */ ASTNode( const ASTNodeWeakPtr &parentNode, const std::string &type, int startIndex, int length ); private: typedef std::deque<ASTNodePtr> Nodes; Nodes childNodes_; typedef std::map<std::string,ASTNodePtr> Properties; Properties properties_; ASTNodeWeakPtr parentNode_; std::string type_; int startIndex_; int length_; }; } // namespace Refactoring #endif // RFTA_ASTNODE_H -- Baptiste Lepilleur <gai...@fr...> September 2002 |
From: Baptiste L. <bl...@us...> - 2006-03-04 21:47:13
|
Update of /cvsroot/cppunit/cppunit In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12448 Modified Files: ChangeLog Makefile.am NEWS configure.in Added Files: cppunit.pc.in Log Message: * cppunit.pc.in: * configure.in: * Makefile.am: integrated patch from Rober Leight to generate pkg-config. Index: NEWS =================================================================== RCS file: /cvsroot/cppunit/cppunit/NEWS,v retrieving revision 1.94 retrieving revision 1.95 diff -C2 -d -r1.94 -r1.95 *** NEWS 4 Mar 2006 20:58:04 -0000 1.94 --- NEWS 4 Mar 2006 21:47:05 -0000 1.95 *************** *** 59,62 **** --- 59,65 ---- * Compilation: + - The standard pkg-config file is now generated on unix (contributed by + Robert Leight). + - MinGW: patch #1024428 contributed by astar, fixed compilation issue in Win32DynamicLibraryManager.cpp. Index: ChangeLog =================================================================== RCS file: /cvsroot/cppunit/cppunit/ChangeLog,v retrieving revision 1.245 retrieving revision 1.246 diff -C2 -d -r1.245 -r1.246 *** ChangeLog 4 Mar 2006 21:20:36 -0000 1.245 --- ChangeLog 4 Mar 2006 21:47:05 -0000 1.246 *************** *** 1,8 **** --- 1,14 ---- 2006-03-04 Baptiste Lepilleur <gai...@fr...> * contrib/xml-xsl/report.xsl: reported correction posted on the wiki. + * removed debian/ directory. An up to date patch can be found at: packages.debian.org. + * cppunit.spec.in: applied patch #1242905 partially (%post and %postun). + * cppunit.pc.in: + * configure.in: + * Makefile.am: integrated patch from Rober Leight to generate pkg-config. + 2006-02-04 Baptiste Lepilleur <gai...@fr...> * include/cppunit/TestListener.h: Index: Makefile.am =================================================================== RCS file: /cvsroot/cppunit/cppunit/Makefile.am,v retrieving revision 1.35 retrieving revision 1.36 diff -C2 -d -r1.35 -r1.36 *** Makefile.am 18 Feb 2004 21:36:41 -0000 1.35 --- Makefile.am 4 Mar 2006 21:47:05 -0000 1.36 *************** *** 4,7 **** --- 4,11 ---- SUBDIRS = src include examples doc + pkgconfigdatadir = $(libdir)/pkgconfig + + pkgconfigdata_DATA = cppunit.pc + bin_SCRIPTS = cppunit-config man_MANS = cppunit-config.1 --- NEW FILE: cppunit.pc.in --- prefix=@prefix@ exec_prefix=@exec_prefix@ libdir=@libdir@ includedir=@includedir@ Name: CppUnit Description: The C++ Unit Test Library Version: @CPPUNIT_VERSION@ Libs: -L${libdir} -lcppunit Libs.private: @LIBADD_DL@ Cflags: -I${includedir} Index: configure.in =================================================================== RCS file: /cvsroot/cppunit/cppunit/configure.in,v retrieving revision 1.82 retrieving revision 1.83 diff -C2 -d -r1.82 -r1.83 *** configure.in 7 Nov 2005 08:58:37 -0000 1.82 --- configure.in 4 Mar 2006 21:47:05 -0000 1.83 *************** *** 118,121 **** --- 118,122 ---- AC_OUTPUT([ Makefile + cppunit.pc cppunit.spec cppunit-config |
From: Baptiste L. <bl...@us...> - 2006-03-04 21:25:28
|
Update of /cvsroot/cppunit/cppunit/examples/qt In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1171/examples/qt Modified Files: ExampleTestCases.cpp ExampleTestCases.h Log Message: * removed divideByZero test as it cause crashes on some platforms. Index: ExampleTestCases.cpp =================================================================== RCS file: /cvsroot/cppunit/cppunit/examples/qt/ExampleTestCases.cpp,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ExampleTestCases.cpp 1 Feb 2006 21:10:59 -0000 1.2 --- ExampleTestCases.cpp 4 Mar 2006 21:25:19 -0000 1.3 *************** *** 27,36 **** } - void ExampleTestCases::testDivideByZero () - { - int zero = 0; - int result = 8 / zero; - } - void ExampleTestCases::testEquals () { --- 27,30 ---- Index: ExampleTestCases.h =================================================================== RCS file: /cvsroot/cppunit/cppunit/examples/qt/ExampleTestCases.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ExampleTestCases.h 1 Feb 2006 21:10:59 -0000 1.2 --- ExampleTestCases.h 4 Mar 2006 21:25:19 -0000 1.3 *************** *** 17,21 **** CPPUNIT_TEST( anotherExample ); CPPUNIT_TEST( testAdd ); - CPPUNIT_TEST( testDivideByZero ); CPPUNIT_TEST( testEquals ); CPPUNIT_TEST_SUITE_END(); --- 17,20 ---- *************** *** 34,38 **** void anotherExample (); void testAdd (); - void testDivideByZero (); void testEquals (); }; --- 33,36 ---- |
From: Baptiste L. <bl...@us...> - 2006-03-04 21:24:09
|
Update of /cvsroot/cppunit/cppunit/debian In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31145/debian Removed Files: .cvsignore changelog control copyright dirs doc-base.cppunit rules Log Message: * removed debian/ directory. An up to date patch can be found at: packages.debian.org. * cppunit.spec.in: applied patch #1242905 partially (%post and %postun). --- dirs DELETED --- --- control DELETED --- --- copyright DELETED --- --- changelog DELETED --- --- rules DELETED --- --- .cvsignore DELETED --- --- doc-base.cppunit DELETED --- |
From: Baptiste L. <bl...@us...> - 2006-03-04 21:20:41
|
Update of /cvsroot/cppunit/cppunit In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31145 Modified Files: ChangeLog cppunit.spec.in Log Message: * removed debian/ directory. An up to date patch can be found at: packages.debian.org. * cppunit.spec.in: applied patch #1242905 partially (%post and %postun). Index: cppunit.spec.in =================================================================== RCS file: /cvsroot/cppunit/cppunit/cppunit.spec.in,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** cppunit.spec.in 15 Jul 2005 19:03:30 -0000 1.4 --- cppunit.spec.in 4 Mar 2006 21:20:36 -0000 1.5 *************** *** 52,55 **** --- 52,59 ---- %doc AUTHORS COPYING INSTALL NEWS README THANKS ChangeLog TODO BUGS doc/FAQ + %post -p /sbin/ldconfig + + %postun -p /sbin/ldconfig + %files doc %doc doc/html/* Index: ChangeLog =================================================================== RCS file: /cvsroot/cppunit/cppunit/ChangeLog,v retrieving revision 1.244 retrieving revision 1.245 diff -C2 -d -r1.244 -r1.245 *** ChangeLog 4 Mar 2006 20:58:04 -0000 1.244 --- ChangeLog 4 Mar 2006 21:20:36 -0000 1.245 *************** *** 1,4 **** --- 1,7 ---- 2006-03-04 Baptiste Lepilleur <gai...@fr...> * contrib/xml-xsl/report.xsl: reported correction posted on the wiki. + * removed debian/ directory. An up to date patch can be found at: + packages.debian.org. + * cppunit.spec.in: applied patch #1242905 partially (%post and %postun). 2006-02-04 Baptiste Lepilleur <gai...@fr...> |