You can subscribe to this list here.
2005 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(3) |
Dec
(23) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
(14) |
Feb
|
Mar
(19) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2007 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2008 |
Jan
|
Feb
|
Mar
(26) |
Apr
|
May
(3) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(7) |
Dec
|
From: lacton <la...@us...> - 2008-03-19 20:53:15
|
Update of /cvsroot/shunit/ShUnit In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv1050 Modified Files: autoSuiteUnitTest shUnit Log Message: [add] Error message if the auto-suite feature does not find any function at all. Index: autoSuiteUnitTest =================================================================== RCS file: /cvsroot/shunit/ShUnit/autoSuiteUnitTest,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** autoSuiteUnitTest 17 Mar 2008 06:43:51 -0000 1.3 --- autoSuiteUnitTest 19 Mar 2008 20:53:08 -0000 1.4 *************** *** 94,103 **** } ! tests="`shuGetDeclaredFunctions`" ! ! shuDeny "shuGetDeclaredFunctions" $? ! test -z "$tests" ! shuAssert "shuGetDeclaredFunctions returns null" $? } --- 94,104 ---- } ! functions="`shuGetDeclaredFunctions 2>/dev/null`" ! stderr="`shuGetDeclaredFunctions 2>&1 >/dev/null`" ! test -z "$functions" ! shuAssert "shuGetDeclaredFunctions returns no functions" $? ! test "ShUnit did not detect any function. Use the shuRegTest function to register all test functions." = "$stderr" ! shuAssert "shuGetDeclaredFunctions returns a warning message" $? } Index: shUnit =================================================================== RCS file: /cvsroot/shunit/ShUnit/shUnit,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** shUnit 17 Mar 2008 06:44:45 -0000 1.21 --- shUnit 19 Mar 2008 20:53:08 -0000 1.22 *************** *** 54,58 **** if [ -z "$declarations" ] then ! return 1 fi --- 54,58 ---- if [ -z "$declarations" ] then ! echo "ShUnit did not detect any function. Use the shuRegTest function to register all test functions." >&2 fi |
From: lacton <la...@us...> - 2008-03-17 06:44:48
|
Update of /cvsroot/shunit/ShUnit In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv7896 Modified Files: shUnit Log Message: [fix] TestGetDeclaredFunctionsWhenNeitherDeclareNorTypesetWorks was failing. Index: shUnit =================================================================== RCS file: /cvsroot/shunit/ShUnit/shUnit,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** shUnit 17 Mar 2008 06:43:51 -0000 1.20 --- shUnit 17 Mar 2008 06:44:45 -0000 1.21 *************** *** 52,56 **** shuGetDeclaredFunctions() { declarations="`declare -F 2>/dev/null || typeset +f 2>/dev/null`" ! if [ -z declarations ] then return 1 --- 52,56 ---- shuGetDeclaredFunctions() { declarations="`declare -F 2>/dev/null || typeset +f 2>/dev/null`" ! if [ -z "$declarations" ] then return 1 |
From: lacton <la...@us...> - 2008-03-17 06:43:57
|
Update of /cvsroot/shunit/ShUnit In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv7514 Modified Files: autoSuiteUnitTest shUnit Log Message: [refactor] Prefixed the new ShUnit function with 'shu'. Index: autoSuiteUnitTest =================================================================== RCS file: /cvsroot/shunit/ShUnit/autoSuiteUnitTest,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** autoSuiteUnitTest 16 Mar 2008 22:57:19 -0000 1.2 --- autoSuiteUnitTest 17 Mar 2008 06:43:51 -0000 1.3 *************** *** 34,41 **** } ! tests="`getDeclaredFunctions`" test "$tests" = "`echo "func1"; echo "func2"`" ! shuAssert "getDeclaredFunctions returns the two functions seen by 'declare -F'" $? } --- 34,41 ---- } ! tests="`shuGetDeclaredFunctions`" test "$tests" = "`echo "func1"; echo "func2"`" ! shuAssert "shuGetDeclaredFunctions returns the two functions seen by 'declare -F'" $? } *************** *** 55,62 **** } ! tests="`getDeclaredFunctions`" test "$tests" = "`echo "func3"; echo "func4"`" ! shuAssert "getDeclaredFunctions returns the two functions seen by 'typeset +f'" $? } --- 55,62 ---- } ! tests="`shuGetDeclaredFunctions`" test "$tests" = "`echo "func3"; echo "func4"`" ! shuAssert "shuGetDeclaredFunctions returns the two functions seen by 'typeset +f'" $? } *************** *** 76,83 **** } ! tests="`getDeclaredFunctions`" test "$tests" = "`echo "func5"; echo "func6"`" ! shuAssert "getDeclaredFunctions returns the two functions seen by 'typeset +f'" $? } --- 76,83 ---- } ! tests="`shuGetDeclaredFunctions`" test "$tests" = "`echo "func5"; echo "func6"`" ! shuAssert "shuGetDeclaredFunctions returns the two functions seen by 'typeset +f'" $? } *************** *** 94,103 **** } ! tests="`getDeclaredFunctions`" ! shuDeny "getDeclaredFunctions" $? test -z "$tests" ! shuAssert "getDeclaredFunctions returns null" $? } --- 94,103 ---- } ! tests="`shuGetDeclaredFunctions`" ! shuDeny "shuGetDeclaredFunctions" $? test -z "$tests" ! shuAssert "shuGetDeclaredFunctions returns null" $? } Index: shUnit =================================================================== RCS file: /cvsroot/shunit/ShUnit/shUnit,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** shUnit 17 Mar 2008 06:33:23 -0000 1.19 --- shUnit 17 Mar 2008 06:43:51 -0000 1.20 *************** *** 50,54 **** } ! getDeclaredFunctions() { declarations="`declare -F 2>/dev/null || typeset +f 2>/dev/null`" if [ -z declarations ] --- 50,54 ---- } ! shuGetDeclaredFunctions() { declarations="`declare -F 2>/dev/null || typeset +f 2>/dev/null`" if [ -z declarations ] *************** *** 108,112 **** eval ${strInitFunction} else ! for test_function in `getDeclaredFunctions | grep "^Test"` do shuRegTest "$test_function" --- 108,112 ---- eval ${strInitFunction} else ! for test_function in `shuGetDeclaredFunctions | grep "^Test"` do shuRegTest "$test_function" |
From: lacton <la...@us...> - 2008-03-17 06:42:58
|
Update of /cvsroot/shunit/ShUnit In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv6662 Modified Files: autoSuiteTest Log Message: [add] Added an explicit error message if NotATest is (wrongly) called. Index: autoSuiteTest =================================================================== RCS file: /cvsroot/shunit/ShUnit/autoSuiteTest,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** autoSuiteTest 16 Mar 2008 22:25:54 -0000 1.2 --- autoSuiteTest 17 Mar 2008 06:42:55 -0000 1.3 *************** *** 18,22 **** NotATest() { ! : } --- 18,22 ---- NotATest() { ! shuDeny "Never executed" 0 } |
From: lacton <la...@us...> - 2008-03-17 06:33:28
|
Update of /cvsroot/shunit/ShUnit In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv2971 Modified Files: shUnit Log Message: [refactor] Replaced 'if/then' branching by a simple '||' operator. Index: shUnit =================================================================== RCS file: /cvsroot/shunit/ShUnit/shUnit,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** shUnit 16 Mar 2008 22:57:19 -0000 1.18 --- shUnit 17 Mar 2008 06:33:23 -0000 1.19 *************** *** 51,69 **** getDeclaredFunctions() { ! declarations="`declare -F 2>/dev/null`" ! if [ $? -eq 0 ] then ! echo "$declarations" | sed -n 's/declare -f //p' ! return 0 fi ! declarations="`typeset +f 2>/dev/null`" ! if [ $? -eq 0 ] ! then ! echo "$declarations" | sed 's/^\([^ ]*\)() .*$/\1/' ! return 0 ! fi ! ! return 1 } --- 51,61 ---- getDeclaredFunctions() { ! declarations="`declare -F 2>/dev/null || typeset +f 2>/dev/null`" ! if [ -z declarations ] then ! return 1 fi ! echo "$declarations" | sed 's/declare -f //' | sed 's/^\([^ ]*\)() .*$/\1/' } |
From: lacton <la...@us...> - 2008-03-16 22:57:28
|
Update of /cvsroot/shunit/ShUnit In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv22752 Modified Files: autoSuiteUnitTest shUnit Log Message: [fix] Auto-suite detection now works with pdksh. Index: autoSuiteUnitTest =================================================================== RCS file: /cvsroot/shunit/ShUnit/autoSuiteUnitTest,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** autoSuiteUnitTest 16 Mar 2008 22:29:45 -0000 1.1 --- autoSuiteUnitTest 16 Mar 2008 22:57:19 -0000 1.2 *************** *** 20,24 **** # ! TestGetDeclaredFunctionsWhenDeclareWorks() { declare() { --- 20,24 ---- # ! TestGetDeclaredFunctionsWithBash_v3_2() { declare() { *************** *** 40,44 **** } ! TestGetDeclaredFunctionsWhenDeclareDoesNotWorkButTypesetDoes() { declare() { --- 40,44 ---- } ! TestGetDeclaredFunctionsWithKsh93() { declare() { *************** *** 61,64 **** --- 61,85 ---- } + TestGetDeclaredFunctionsWithPdksh_v5_2() { + + declare() { + echo "declare: not found" >&2 + return 127 + } + + typeset() { + if [ "$1" = "+f" ] + then + echo "func5" + echo "func6" + fi + } + + tests="`getDeclaredFunctions`" + + test "$tests" = "`echo "func5"; echo "func6"`" + shuAssert "getDeclaredFunctions returns the two functions seen by 'typeset +f'" $? + } + TestGetDeclaredFunctionsWhenNeitherDeclareNorTypesetWorks() { *************** *** 75,79 **** tests="`getDeclaredFunctions`" ! shuDeny "getDeclaredFunctions ends in error" $? test -z "$tests" --- 96,100 ---- tests="`getDeclaredFunctions`" ! shuDeny "getDeclaredFunctions" $? test -z "$tests" *************** *** 82,87 **** Suite() { ! shuRegTest TestGetDeclaredFunctionsWhenDeclareWorks ! shuRegTest TestGetDeclaredFunctionsWhenDeclareDoesNotWorkButTypesetDoes shuRegTest TestGetDeclaredFunctionsWhenNeitherDeclareNorTypesetWorks } --- 103,109 ---- Suite() { ! shuRegTest TestGetDeclaredFunctionsWithBash_v3_2 ! shuRegTest TestGetDeclaredFunctionsWithKsh93 ! shuRegTest TestGetDeclaredFunctionsWithPdksh_v5_2 shuRegTest TestGetDeclaredFunctionsWhenNeitherDeclareNorTypesetWorks } Index: shUnit =================================================================== RCS file: /cvsroot/shunit/ShUnit/shUnit,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** shUnit 16 Mar 2008 22:29:45 -0000 1.17 --- shUnit 16 Mar 2008 22:57:19 -0000 1.18 *************** *** 61,65 **** if [ $? -eq 0 ] then ! echo "$declarations" | sed -n 's/^\([^ ]*\)() .*$/\1/p' return 0 fi --- 61,65 ---- if [ $? -eq 0 ] then ! echo "$declarations" | sed 's/^\([^ ]*\)() .*$/\1/' return 0 fi |
From: lacton <la...@us...> - 2008-03-16 22:29:49
|
Update of /cvsroot/shunit/ShUnit In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv12333 Modified Files: shUnit Added Files: autoSuiteUnitTest Log Message: [fix] If 'declare' builtin is not available, try to use 'typeset' to get the list of declared functions. 'declare' is available only in bash. 'typeset' is available in both bash and ksh, but its behavior is different. This patch should handle both cases gracefuly. --- NEW FILE: autoSuiteUnitTest --- #! /usr/bin/env sh # # Test the test suite auto-detection feature. # # # find the shUnit file using the command as a reference # inherit() { d=`expr ${0} : '\([a-zA-Z/._-]*\/\)'` test `expr "$d" : '[./]'` -eq 0 && d="./$d" . ${d}${1} } inherit shUnit # # Test cases # TestGetDeclaredFunctionsWhenDeclareWorks() { declare() { if [ "$1" = "-F" ] then echo "declare -f func1" echo "declare -f func2" fi } typeset() { echo "...something hard to parse..." } tests="`getDeclaredFunctions`" test "$tests" = "`echo "func1"; echo "func2"`" shuAssert "getDeclaredFunctions returns the two functions seen by 'declare -F'" $? } TestGetDeclaredFunctionsWhenDeclareDoesNotWorkButTypesetDoes() { declare() { echo "declare: not found" >&2 return 127 } typeset() { if [ "$1" = "+f" ] then echo "func3() #line 1 /path/to/script" echo "func4() #line 2 /path/to/script" fi } tests="`getDeclaredFunctions`" test "$tests" = "`echo "func3"; echo "func4"`" shuAssert "getDeclaredFunctions returns the two functions seen by 'typeset +f'" $? } TestGetDeclaredFunctionsWhenNeitherDeclareNorTypesetWorks() { declare() { echo "declare: not found" >&2 return 127 } typeset() { echo "typeset: unknown option" >&2 return 1 } tests="`getDeclaredFunctions`" shuDeny "getDeclaredFunctions ends in error" $? test -z "$tests" shuAssert "getDeclaredFunctions returns null" $? } Suite() { shuRegTest TestGetDeclaredFunctionsWhenDeclareWorks shuRegTest TestGetDeclaredFunctionsWhenDeclareDoesNotWorkButTypesetDoes shuRegTest TestGetDeclaredFunctionsWhenNeitherDeclareNorTypesetWorks } ### Main shuStart Suite Index: shUnit =================================================================== RCS file: /cvsroot/shunit/ShUnit/shUnit,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** shUnit 16 Mar 2008 17:20:05 -0000 1.16 --- shUnit 16 Mar 2008 22:29:45 -0000 1.17 *************** *** 50,53 **** --- 50,71 ---- } + getDeclaredFunctions() { + declarations="`declare -F 2>/dev/null`" + if [ $? -eq 0 ] + then + echo "$declarations" | sed -n 's/declare -f //p' + return 0 + fi + + declarations="`typeset +f 2>/dev/null`" + if [ $? -eq 0 ] + then + echo "$declarations" | sed -n 's/^\([^ ]*\)() .*$/\1/p' + return 0 + fi + + return 1 + } + shuRunOneTest() { strTestToRun=${1} *************** *** 98,102 **** eval ${strInitFunction} else ! for test_function in `declare -F | sed -n 's/declare -f Test/Test/p'` do shuRegTest "$test_function" --- 116,120 ---- eval ${strInitFunction} else ! for test_function in `getDeclaredFunctions | grep "^Test"` do shuRegTest "$test_function" |
From: lacton <la...@us...> - 2008-03-16 22:26:02
|
Update of /cvsroot/shunit/ShUnit In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv11543 Modified Files: autoSuiteTest Log Message: [refactor] Indentation. Index: autoSuiteTest =================================================================== RCS file: /cvsroot/shunit/ShUnit/autoSuiteTest,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** autoSuiteTest 16 Mar 2008 15:44:50 -0000 1.1 --- autoSuiteTest 16 Mar 2008 22:25:54 -0000 1.2 *************** *** 18,26 **** NotATest() { ! : } Test1() { ! shuAssert "Always true" 0 } --- 18,26 ---- NotATest() { ! : } Test1() { ! shuAssert "Always true" 0 } |
From: lacton <la...@us...> - 2008-03-16 19:15:32
|
Update of /cvsroot/shunit/ShUnit In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv2806 Modified Files: shUnitTest Log Message: [refactor] Test ordering. Index: shUnitTest =================================================================== RCS file: /cvsroot/shunit/ShUnit/shUnitTest,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** shUnitTest 16 Mar 2008 17:20:05 -0000 1.18 --- shUnitTest 16 Mar 2008 19:15:29 -0000 1.19 *************** *** 128,139 **** } - TestAutoSuite() { - std_output=`./autoSuiteTest` - echo "$std_output" | grep -q 'NotATest' - shuDeny "Auto-detected suite should not include NotATest" $? - echo "$std_output" | grep -q 'Test1' - shuAssert "Auto-detected suite should include Test1" $? - } - TestOneAssertFailureAndOneAssertSuccessMeanFailure() { shuAssert "This test failed intentionally" ${SHU_FALSE} --- 128,131 ---- *************** *** 162,165 **** --- 154,165 ---- } + TestAutoSuite() { + std_output=`./autoSuiteTest` + echo "$std_output" | grep -q 'NotATest' + shuDeny "Auto-detected suite should not include NotATest" $? + echo "$std_output" | grep -q 'Test1' + shuAssert "Auto-detected suite should include Test1" $? + } + InitFunction() { shuRegTest TestIntentionalFailure |
From: lacton <la...@us...> - 2008-03-16 18:16:44
|
Update of /cvsroot/shunit/ShUnit In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv12603 Removed Files: cronjob test_in_compile_farm Log Message: [remove] Code related to the SourceForge compile farm is no longer relevant because it has been discontinued. See https://sourceforge.net/forum/forum.php?forum_id=665363%29. --- cronjob DELETED --- --- test_in_compile_farm DELETED --- |
From: lacton <la...@us...> - 2008-03-16 17:20:08
|
Update of /cvsroot/shunit/ShUnit In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv23240 Modified Files: shUnit shUnitTest Log Message: [fix] Issue 1910597 "Test with both failures and successes should fail" Index: shUnitTest =================================================================== RCS file: /cvsroot/shunit/ShUnit/shUnitTest,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** shUnitTest 16 Mar 2008 15:44:50 -0000 1.17 --- shUnitTest 16 Mar 2008 17:20:05 -0000 1.18 *************** *** 38,44 **** --- 38,50 ---- shuRunOneTest "nonExistantFunction" > /dev/null 2>&1 after="${shuTestNbr}" + test_succeeded_flag_after="${SHU_TEST_SUCCEEDED}" + SHU_TEST_SUCCEEDED=${SHU_TRUE} + [ $before -eq $after ] shuAssert "shuTestNbr increased after running non-existant test" $? + [ $test_succeeded_flag_after -eq ${SHU_FALSE} ] + shuAssert "SHU_TEST_SUCCEEDED not set to false after running non-existant test" $? + shuTestNbr=${orig_total_nr_run} SHU_TOTAL_NR_SUCCEEDED=${orig_total_nr_succeeded} *************** *** 130,133 **** --- 136,165 ---- } + TestOneAssertFailureAndOneAssertSuccessMeanFailure() { + shuAssert "This test failed intentionally" ${SHU_FALSE} + shuAssert "This test succeeded intentionally" ${SHU_TRUE} + + if test ${SHU_TEST_SUCCEEDED} -eq ${SHU_FALSE} + then + SHU_TEST_SUCCEEDED=${SHU_TRUE} + else + SHU_TEST_SUCCEEDED=${SHU_FALSE} + fi + shuAssert "1 assertion failure + 1 assertion success => test failure" ${SHU_TEST_SUCCEEDED} + } + + TestOneDenyFailureAndOneDenySuccessMeanFailure() { + shuDeny "This test failed intentionally" ${SHU_TRUE} + shuDeny "This test succeeded intentionally" ${SHU_FALSE} + + if test ${SHU_TEST_SUCCEEDED} -eq ${SHU_FALSE} + then + SHU_TEST_SUCCEEDED=${SHU_TRUE} + else + SHU_TEST_SUCCEEDED=${SHU_FALSE} + fi + shuAssert "1 deny failure + 1 deny success => test failure" ${SHU_TEST_SUCCEEDED} + } + InitFunction() { shuRegTest TestIntentionalFailure *************** *** 139,142 **** --- 171,176 ---- shuRegTest TestSetupCalledCorrectly shuRegTest TestShuFmtNbrTests + shuRegTest TestOneAssertFailureAndOneAssertSuccessMeanFailure + shuRegTest TestOneDenyFailureAndOneDenySuccessMeanFailure shuRegTest TestAutoSuite } Index: shUnit =================================================================== RCS file: /cvsroot/shunit/ShUnit/shUnit,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** shUnit 16 Mar 2008 15:44:50 -0000 1.15 --- shUnit 16 Mar 2008 17:20:05 -0000 1.16 *************** *** 52,56 **** shuRunOneTest() { strTestToRun=${1} ! SHU_TEST_SUCCEEDED=${SHU_FALSE} if type shuSetUp > /dev/null 2>&1 --- 52,56 ---- shuRunOneTest() { strTestToRun=${1} ! SHU_TEST_SUCCEEDED=${SHU_TRUE} if type shuSetUp > /dev/null 2>&1 *************** *** 166,170 **** else printf "." - SHU_TEST_SUCCEEDED=${SHU_TRUE} fi } --- 166,169 ---- *************** *** 180,184 **** else printf "." - SHU_TEST_SUCCEEDED=${SHU_TRUE} fi } --- 179,182 ---- |
From: lacton <la...@us...> - 2008-03-16 15:44:55
|
Update of /cvsroot/shunit/ShUnit In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv21883 Modified Files: shUnit shUnitTest Added Files: autoSuiteTest Log Message: [add] Auto-detection of all test functions that begin with 'Test'. Index: shUnitTest =================================================================== RCS file: /cvsroot/shunit/ShUnit/shUnitTest,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** shUnitTest 31 Dec 2005 06:35:29 -0000 1.16 --- shUnitTest 16 Mar 2008 15:44:50 -0000 1.17 *************** *** 122,125 **** --- 122,133 ---- } + TestAutoSuite() { + std_output=`./autoSuiteTest` + echo "$std_output" | grep -q 'NotATest' + shuDeny "Auto-detected suite should not include NotATest" $? + echo "$std_output" | grep -q 'Test1' + shuAssert "Auto-detected suite should include Test1" $? + } + InitFunction() { shuRegTest TestIntentionalFailure *************** *** 131,134 **** --- 139,143 ---- shuRegTest TestSetupCalledCorrectly shuRegTest TestShuFmtNbrTests + shuRegTest TestAutoSuite } Index: shUnit =================================================================== RCS file: /cvsroot/shunit/ShUnit/shUnit,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** shUnit 18 Mar 2006 04:53:18 -0000 1.14 --- shUnit 16 Mar 2008 15:44:50 -0000 1.15 *************** *** 26,33 **** # in which your test will be run # 4. Again in the 'main', call the shuStart function with the name of the initialization ! # function as an argument. # 5. For each testfunction, perform these steps: # 5.1. Add a line to the initialization function to register the testfunction. This ! # will look like: shuRegTest NameOfTestFunction # 5.2. Create a function NameOfTestFuction that # 5.2.1. executes whatever you wish to test --- 26,35 ---- # in which your test will be run # 4. Again in the 'main', call the shuStart function with the name of the initialization ! # function as an argument, or no argument at all if all your test functions ! # begin with 'Test'. # 5. For each testfunction, perform these steps: # 5.1. Add a line to the initialization function to register the testfunction. This ! # will look like: shuRegTest NameOfTestFunction. Skip this step if all ! # your test functions begin with 'Test'. # 5.2. Create a function NameOfTestFuction that # 5.2.1. executes whatever you wish to test *************** *** 92,96 **** strInitFunction="${1}" ! eval ${strInitFunction} printf "\n****** `basename ${0}` ******\n" --- 94,106 ---- strInitFunction="${1}" ! if [ $# -eq 1 ] ! then ! eval ${strInitFunction} ! else ! for test_function in `declare -F | sed -n 's/declare -f Test/Test/p'` ! do ! shuRegTest "$test_function" ! done ! fi printf "\n****** `basename ${0}` ******\n" --- NEW FILE: autoSuiteTest --- #! /usr/bin/env sh # # This dummy test script illustrates how to use the test suite auto-detection features. # It is called by shUnitTest as part of the framework's regression test. # # # find the shUnit file using the command as a reference # inherit() { d=`expr ${0} : '\([a-zA-Z/._-]*\/\)'` test `expr "$d" : '[./]'` -eq 0 && d="./$d" . ${d}${1} } inherit shUnit NotATest() { : } Test1() { shuAssert "Always true" 0 } ### Main shuStart |
From: Bobby N. <bob...@us...> - 2007-01-23 05:18:00
|
Update of /cvsroot/shunit/ShUnit In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv31226 Modified Files: cronjob Log Message: whoops, they haven't changed the compile farm name after all Index: cronjob =================================================================== RCS file: /cvsroot/shunit/ShUnit/cronjob,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** cronjob 23 Jan 2007 02:07:29 -0000 1.11 --- cronjob 23 Jan 2007 05:17:55 -0000 1.12 *************** *** 155,159 **** SF_CVS_REPOSITORY_PATH="/cvsroot/shunit" ! COMPILE_FARM_SERVER="shell.sourceforge.net" SF_USER_HOME_DIR="/home/users/`expr "${SF_USER}" : '\(.\)'`" SF_USER_HOME_DIR="${SF_USER_HOME_DIR}/`expr "${SF_USER}" : '\(..\)'`" --- 155,159 ---- SF_CVS_REPOSITORY_PATH="/cvsroot/shunit" ! COMPILE_FARM_SERVER="cf-shell.sourceforge.net" SF_USER_HOME_DIR="/home/users/`expr "${SF_USER}" : '\(.\)'`" SF_USER_HOME_DIR="${SF_USER_HOME_DIR}/`expr "${SF_USER}" : '\(..\)'`" |
From: Bobby N. <bob...@us...> - 2007-01-23 02:07:33
|
Update of /cvsroot/shunit/ShUnit In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv23796 Modified Files: cronjob Log Message: it would appear that the sourceforge folks changed the name of their shell access server ... sigh Index: cronjob =================================================================== RCS file: /cvsroot/shunit/ShUnit/cronjob,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** cronjob 20 Aug 2006 06:27:02 -0000 1.10 --- cronjob 23 Jan 2007 02:07:29 -0000 1.11 *************** *** 155,159 **** SF_CVS_REPOSITORY_PATH="/cvsroot/shunit" ! COMPILE_FARM_SERVER="cf-shell.sourceforge.net" SF_USER_HOME_DIR="/home/users/`expr "${SF_USER}" : '\(.\)'`" SF_USER_HOME_DIR="${SF_USER_HOME_DIR}/`expr "${SF_USER}" : '\(..\)'`" --- 155,159 ---- SF_CVS_REPOSITORY_PATH="/cvsroot/shunit" ! COMPILE_FARM_SERVER="shell.sourceforge.net" SF_USER_HOME_DIR="/home/users/`expr "${SF_USER}" : '\(.\)'`" SF_USER_HOME_DIR="${SF_USER_HOME_DIR}/`expr "${SF_USER}" : '\(..\)'`" |
From: Bobby N. <bob...@us...> - 2006-08-20 06:27:08
|
Update of /cvsroot/shunit/ShUnit In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv31091 Modified Files: cronjob Log Message: whoops, sourceforge moved their CVS server without telling me ... bad, bad sf Index: cronjob =================================================================== RCS file: /cvsroot/shunit/ShUnit/cronjob,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** cronjob 18 Mar 2006 06:14:12 -0000 1.9 --- cronjob 20 Aug 2006 06:27:02 -0000 1.10 *************** *** 152,156 **** log DEBUG "\$@=[$@]" ! SF_CVS_SERVER="cvs.sourceforge.net" SF_CVS_REPOSITORY_PATH="/cvsroot/shunit" --- 152,156 ---- log DEBUG "\$@=[$@]" ! SF_CVS_SERVER="ShUnit.cvs.sourceforge.net" SF_CVS_REPOSITORY_PATH="/cvsroot/shunit" |
From: Bobby N. <bob...@us...> - 2006-03-18 08:05:31
|
Update of /cvsroot/shunit/website In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30320 Modified Files: bottom.html Log Message: not *all* of the anchor tags need to be super-sized :-) Index: bottom.html =================================================================== RCS file: /cvsroot/shunit/website/bottom.html,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** bottom.html 5 Jan 2005 05:56:14 -0000 1.1 --- bottom.html 18 Mar 2006 08:05:28 -0000 1.2 *************** *** 9,13 **** <span class="doNotPrint"> For comments or questions about this website, please ! <a href="mailto:bob...@us..." title="Webmaster's Email Address">email the Webmaster</a><br /> </span> </div> --- 9,13 ---- <span class="doNotPrint"> For comments or questions about this website, please ! <a href="mailto:bob...@us..." title="Webmaster's Email Address" style="font-size:100%;">email the Webmaster</a><br /> </span> </div> |
From: Bobby N. <bob...@us...> - 2006-03-18 07:55:06
|
Update of /cvsroot/shunit/ShUnit In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24056 Modified Files: test_in_compile_farm Log Message: switched to a simple if/then block and added debug statements Index: test_in_compile_farm =================================================================== RCS file: /cvsroot/shunit/ShUnit/test_in_compile_farm,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** test_in_compile_farm 18 Mar 2006 07:39:13 -0000 1.20 --- test_in_compile_farm 18 Mar 2006 07:55:02 -0000 1.21 *************** *** 185,193 **** | sed -e 's/^ *\([NnOo0-9]*\).*/\1/' \ | sed -e '/[Nn][Oo]/d' | wc -l` - test $nbr_failed_tests -eq 0 -a -n "${arch}" \ - && show_results="" \ - || show_results="style=\"display:block\"" ! echo " <div id='${cfserver}' ${show_results} class='machine-result'>" >> ${web_page} cat out.$$ >> ${web_page} echo " </div>" >> ${web_page} --- 185,199 ---- | sed -e 's/^ *\([NnOo0-9]*\).*/\1/' \ | sed -e '/[Nn][Oo]/d' | wc -l` ! ! log DEBUG "nbr_failed_tests=[${nbr_failed_tests}]" ! ! if test ${nbr_failed_tests} -eq 0 -a -n "${arch}" ! then ! echo " <div id='${cfserver}' class='machine-result'>" >> ${web_page} ! else ! echo " <div id='${cfserver}' style='display:block' class='machine-result'>" >> ${web_page} ! fi ! cat out.$$ >> ${web_page} echo " </div>" >> ${web_page} |
From: Bobby N. <bob...@us...> - 2006-03-18 07:39:23
|
Update of /cvsroot/shunit/ShUnit In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18260 Modified Files: test_in_compile_farm Log Message: doh! gotta get better at boolean expressions Index: test_in_compile_farm =================================================================== RCS file: /cvsroot/shunit/ShUnit/test_in_compile_farm,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** test_in_compile_farm 18 Mar 2006 07:30:54 -0000 1.19 --- test_in_compile_farm 18 Mar 2006 07:39:13 -0000 1.20 *************** *** 185,189 **** | sed -e 's/^ *\([NnOo0-9]*\).*/\1/' \ | sed -e '/[Nn][Oo]/d' | wc -l` ! test $nbr_failed_tests -eq 0 -o "${arch}" = "" \ && show_results="" \ || show_results="style=\"display:block\"" --- 185,189 ---- | sed -e 's/^ *\([NnOo0-9]*\).*/\1/' \ | sed -e '/[Nn][Oo]/d' | wc -l` ! test $nbr_failed_tests -eq 0 -a -n "${arch}" \ && show_results="" \ || show_results="style=\"display:block\"" |
From: Bobby N. <bob...@us...> - 2006-03-18 07:30:58
|
Update of /cvsroot/shunit/ShUnit In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15114 Modified Files: test_in_compile_farm Log Message: consider inability to log into a box as a failure condition Index: test_in_compile_farm =================================================================== RCS file: /cvsroot/shunit/ShUnit/test_in_compile_farm,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** test_in_compile_farm 18 Mar 2006 07:19:43 -0000 1.18 --- test_in_compile_farm 18 Mar 2006 07:30:54 -0000 1.19 *************** *** 185,193 **** | sed -e 's/^ *\([NnOo0-9]*\).*/\1/' \ | sed -e '/[Nn][Oo]/d' | wc -l` ! test $nbr_failed_tests -eq 0 \ && show_results="" \ || show_results="style=\"display:block\"" - echo " <div id=\"${cfserver}\" $show_results class='machine-result'>" >> ${web_page} cat out.$$ >> ${web_page} echo " </div>" >> ${web_page} --- 185,193 ---- | sed -e 's/^ *\([NnOo0-9]*\).*/\1/' \ | sed -e '/[Nn][Oo]/d' | wc -l` ! test $nbr_failed_tests -eq 0 -o "${arch}" = "" \ && show_results="" \ || show_results="style=\"display:block\"" + echo " <div id='${cfserver}' ${show_results} class='machine-result'>" >> ${web_page} cat out.$$ >> ${web_page} echo " </div>" >> ${web_page} |
From: Bobby N. <bob...@us...> - 2006-03-18 07:19:50
|
Update of /cvsroot/shunit/ShUnit In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10912 Modified Files: test_in_compile_farm Log Message: okay, this is getting *really* old Index: test_in_compile_farm =================================================================== RCS file: /cvsroot/shunit/ShUnit/test_in_compile_farm,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** test_in_compile_farm 18 Mar 2006 07:08:44 -0000 1.17 --- test_in_compile_farm 18 Mar 2006 07:19:43 -0000 1.18 *************** *** 171,175 **** echo " <br /> " >> ${web_page} echo " <a name=\"${cfserver}\"/>" >> ${web_page} ! echo " <a href=\"#${cfserver}\" onclick=\"toggleVisibility(‘${cfserver}’);return false;\">${cfserver} (${arch})</a>" >> ${web_page} test $EXECUTE -eq $TRUE && \ --- 171,175 ---- echo " <br /> " >> ${web_page} echo " <a name=\"${cfserver}\"/>" >> ${web_page} ! echo " <a href='#${cfserver}' onclick='toggleVisibility(\"${cfserver}\");return false;'>${cfserver} (${arch})</a>" >> ${web_page} test $EXECUTE -eq $TRUE && \ *************** *** 188,195 **** && show_results="" \ || show_results="style=\"display:block\"" ! echo " <div id=\"${cfserver}\" $show_results class='machine-result'>" >> ${web_page} cat out.$$ >> ${web_page} ! echo " </div>" >> ${web_page} done --- 188,195 ---- && show_results="" \ || show_results="style=\"display:block\"" ! echo " <div id=\"${cfserver}\" $show_results class='machine-result'>" >> ${web_page} cat out.$$ >> ${web_page} ! echo " </div>" >> ${web_page} done |
From: Bobby N. <bob...@us...> - 2006-03-18 07:08:50
|
Update of /cvsroot/shunit/ShUnit In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6860 Modified Files: test_in_compile_farm Log Message: okay, the error turned out to be in the 'top.html' file, so this is just a formatting thing Index: test_in_compile_farm =================================================================== RCS file: /cvsroot/shunit/ShUnit/test_in_compile_farm,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** test_in_compile_farm 18 Mar 2006 07:01:13 -0000 1.16 --- test_in_compile_farm 18 Mar 2006 07:08:44 -0000 1.17 *************** *** 169,175 **** log DEBUG "arch=[${arch}]" echo " <a name=\"${cfserver}\"/>" >> ${web_page} echo " <a href=\"#${cfserver}\" onclick=\"toggleVisibility(‘${cfserver}’);return false;\">${cfserver} (${arch})</a>" >> ${web_page} - echo " <p> " >> ${web_page} test $EXECUTE -eq $TRUE && \ --- 169,175 ---- log DEBUG "arch=[${arch}]" + echo " <br /> " >> ${web_page} echo " <a name=\"${cfserver}\"/>" >> ${web_page} echo " <a href=\"#${cfserver}\" onclick=\"toggleVisibility(‘${cfserver}’);return false;\">${cfserver} (${arch})</a>" >> ${web_page} test $EXECUTE -eq $TRUE && \ *************** *** 192,196 **** cat out.$$ >> ${web_page} echo " </div>" >> ${web_page} - echo " </p>" >> ${web_page} done --- 192,195 ---- |
From: Bobby N. <bob...@us...> - 2006-03-18 07:01:18
|
Update of /cvsroot/shunit/ShUnit In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3733 Modified Files: test_in_compile_farm Log Message: getting desparate now Index: test_in_compile_farm =================================================================== RCS file: /cvsroot/shunit/ShUnit/test_in_compile_farm,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** test_in_compile_farm 18 Mar 2006 06:45:52 -0000 1.15 --- test_in_compile_farm 18 Mar 2006 07:01:13 -0000 1.16 *************** *** 170,174 **** echo " <a name=\"${cfserver}\"/>" >> ${web_page} ! echo " <a href=\"#${cfserver}\" onclick=\"toggleVisibility('${cfserver}');return false;\">${cfserver} (${arch})</a>" >> ${web_page} echo " <p> " >> ${web_page} --- 170,174 ---- echo " <a name=\"${cfserver}\"/>" >> ${web_page} ! echo " <a href=\"#${cfserver}\" onclick=\"toggleVisibility(‘${cfserver}’);return false;\">${cfserver} (${arch})</a>" >> ${web_page} echo " <p> " >> ${web_page} |
From: Bobby N. <bob...@us...> - 2006-03-18 06:45:54
|
Update of /cvsroot/shunit/ShUnit In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30109 Modified Files: test_in_compile_farm Log Message: the javascript function isn't working, and I think it's because the quotes are getting scrubbed somewhere Index: test_in_compile_farm =================================================================== RCS file: /cvsroot/shunit/ShUnit/test_in_compile_farm,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** test_in_compile_farm 18 Mar 2006 06:41:29 -0000 1.14 --- test_in_compile_farm 18 Mar 2006 06:45:52 -0000 1.15 *************** *** 170,174 **** echo " <a name=\"${cfserver}\"/>" >> ${web_page} ! echo " <a href=\"#${cfserver}\" onclick=\"toggleVisibility(\'${cfserver}\');return false;\">${cfserver} (${arch})</a>" >> ${web_page} echo " <p> " >> ${web_page} --- 170,174 ---- echo " <a name=\"${cfserver}\"/>" >> ${web_page} ! echo " <a href=\"#${cfserver}\" onclick=\"toggleVisibility('${cfserver}');return false;\">${cfserver} (${arch})</a>" >> ${web_page} echo " <p> " >> ${web_page} |
From: Bobby N. <bob...@us...> - 2006-03-18 06:41:32
|
Update of /cvsroot/shunit/ShUnit In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28715 Modified Files: test_in_compile_farm Log Message: the javascript function isn't working, and I think it's because the quotes are getting scrubbed somewhere Index: test_in_compile_farm =================================================================== RCS file: /cvsroot/shunit/ShUnit/test_in_compile_farm,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** test_in_compile_farm 18 Mar 2006 06:38:17 -0000 1.13 --- test_in_compile_farm 18 Mar 2006 06:41:29 -0000 1.14 *************** *** 170,174 **** echo " <a name=\"${cfserver}\"/>" >> ${web_page} ! echo " <a href=\"#${cfserver}\" onclick=\"toggleVisibility(\\\"${cfserver}\\\");return false;\">${cfserver} (${arch})</a>" >> ${web_page} echo " <p> " >> ${web_page} --- 170,174 ---- echo " <a name=\"${cfserver}\"/>" >> ${web_page} ! echo " <a href=\"#${cfserver}\" onclick=\"toggleVisibility(\'${cfserver}\');return false;\">${cfserver} (${arch})</a>" >> ${web_page} echo " <p> " >> ${web_page} |
From: Bobby N. <bob...@us...> - 2006-03-18 06:38:20
|
Update of /cvsroot/shunit/ShUnit In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27452 Modified Files: test_in_compile_farm Log Message: the javascript function isn't working, and I think it's because the quotes are getting scrubbed somewhere Index: test_in_compile_farm =================================================================== RCS file: /cvsroot/shunit/ShUnit/test_in_compile_farm,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** test_in_compile_farm 18 Mar 2006 06:33:30 -0000 1.12 --- test_in_compile_farm 18 Mar 2006 06:38:17 -0000 1.13 *************** *** 170,174 **** echo " <a name=\"${cfserver}\"/>" >> ${web_page} ! echo " <a href=\"#${cfserver}\" onclick=\"toggleVisibility(\\"${cfserver}\\");return false;\">${cfserver} (${arch})</a>" >> ${web_page} echo " <p> " >> ${web_page} --- 170,174 ---- echo " <a name=\"${cfserver}\"/>" >> ${web_page} ! echo " <a href=\"#${cfserver}\" onclick=\"toggleVisibility(\\\"${cfserver}\\\");return false;\">${cfserver} (${arch})</a>" >> ${web_page} echo " <p> " >> ${web_page} |