文本文件  |  369行  |  7.21 KB

#------------------------------------------------------------------------------
# System data
#

# test run info
shells="/bin/sh /bin/bash /bin/dash /bin/ksh /bin/pdksh /bin/zsh"
tests=" shflags_test_defines.sh shflags_test_parsing.sh shflags_test_private.sh shflags_test_public.sh"

# system info
$ date
Fri Jul 11 21:38:16 IST 2008
$ uname -mprsv
Darwin 9.4.0 Darwin Kernel Version 9.4.0: Mon Jun  9 19:30:53 PDT 2008; root:xnu-1228.5.20~1/RELEASE_I386 i386 i386


#------------------------------------------------------------------------------
# Running the test suite with /bin/sh
#

--- Executing the 'defines' test suite ---
#
# Performing tests
#
testFlagsDefine
testBoolean
testFloat
testInteger
testString
testShortNameLength

#
# Test report
#
tests passed:    65 100%
tests failed:     0   0%
tests skipped:    0   0%
tests total:     65 100%

--- Executing the 'parsing' test suite ---
test:WARN Standard version of getopt found. Some tests will be skipped.
#
# Performing tests
#
testValidBooleanShort
testValidBooleanLong
testValidFloats
testInvalidFloats
testValidIntegers
testInvalidIntegers
testValidStrings
ASSERT:FLAGS (string with spaces) returned a non-zero result
ASSERT:string (string with spaces) test failed.string (string with spaces) test failed. expected:<string with spaces> but was:<>
flags:ERROR the available getopt does not support spaces in options
testMultipleFlags
testSingleNonFlagArg
testMultipleNonFlagArgs
testMultipleNonFlagStringArgsWithSpaces

#
# Test report
#
tests passed:    89  50%
tests failed:     2   1%
tests skipped:   88  49%
tests total:    179 100%

--- Executing the 'private' test suite ---
#
# Performing tests
#
testGetFlagInfo
testItemInList
testValidateBoolean
testValidateFloat
testValidateInteger

#
# Test report
#
tests passed:    50 100%
tests failed:     0   0%
tests skipped:    0   0%
tests total:     50 100%

--- Executing the 'public' test suite ---
#
# Performing tests
#
testHelp
testStandardHelpOutput
testEnhancedHelpOutput

#
# Test report
#
tests passed:     5  56%
tests failed:     0   0%
tests skipped:    4  44%
tests total:      9 100%


#------------------------------------------------------------------------------
# Running the test suite with /bin/bash
#

GNU bash, version 3.2.17(1)-release (i386-apple-darwin9.0)
Copyright (C) 2005 Free Software Foundation, Inc.

--- Executing the 'defines' test suite ---
#
# Performing tests
#
testFlagsDefine
testBoolean
testFloat
testInteger
testString
testShortNameLength

#
# Test report
#
tests passed:    65 100%
tests failed:     0   0%
tests skipped:    0   0%
tests total:     65 100%

--- Executing the 'parsing' test suite ---
test:WARN Standard version of getopt found. Some tests will be skipped.
#
# Performing tests
#
testValidBooleanShort
testValidBooleanLong
testValidFloats
testInvalidFloats
testValidIntegers
testInvalidIntegers
testValidStrings
ASSERT:FLAGS (string with spaces) returned a non-zero result
ASSERT:string (string with spaces) test failed.string (string with spaces) test failed. expected:<string with spaces> but was:<>
flags:ERROR the available getopt does not support spaces in options
testMultipleFlags
testSingleNonFlagArg
testMultipleNonFlagArgs
testMultipleNonFlagStringArgsWithSpaces

#
# Test report
#
tests passed:    89  50%
tests failed:     2   1%
tests skipped:   88  49%
tests total:    179 100%

--- Executing the 'private' test suite ---
#
# Performing tests
#
testGetFlagInfo
testItemInList
testValidateBoolean
testValidateFloat
testValidateInteger

#
# Test report
#
tests passed:    50 100%
tests failed:     0   0%
tests skipped:    0   0%
tests total:     50 100%

--- Executing the 'public' test suite ---
#
# Performing tests
#
testHelp
testStandardHelpOutput
testEnhancedHelpOutput

#
# Test report
#
tests passed:     5  56%
tests failed:     0   0%
tests skipped:    4  44%
tests total:      9 100%

test:WARN unable to run tests with the /bin/dash shell


#------------------------------------------------------------------------------
# Running the test suite with /bin/ksh
#

  version         sh (AT&T Research) 1993-12-28 s+

--- Executing the 'defines' test suite ---
#
# Performing tests
#
testFlagsDefine
testBoolean
testFloat
testInteger
testString
testShortNameLength

#
# Test report
#
tests passed:    65 100%
tests failed:     0   0%
tests skipped:    0   0%
tests total:     65 100%

--- Executing the 'parsing' test suite ---
test:WARN Standard version of getopt found. Some tests will be skipped.
#
# Performing tests
#
testValidBooleanShort
testValidBooleanLong
testValidFloats
testInvalidFloats
testValidIntegers
testInvalidIntegers
testValidStrings
ASSERT:FLAGS (string with spaces) returned a non-zero result
ASSERT:string (string with spaces) test failed.string (string with spaces) test failed. expected:<string with spaces> but was:<>
flags:ERROR the available getopt does not support spaces in options
testMultipleFlags
testSingleNonFlagArg
testMultipleNonFlagArgs
testMultipleNonFlagStringArgsWithSpaces

#
# Test report
#
tests passed:    89  50%
tests failed:     2   1%
tests skipped:   88  49%
tests total:    179 100%

--- Executing the 'private' test suite ---
#
# Performing tests
#
testGetFlagInfo
testItemInList
testValidateBoolean
testValidateFloat
testValidateInteger

#
# Test report
#
tests passed:    50 100%
tests failed:     0   0%
tests skipped:    0   0%
tests total:     50 100%

--- Executing the 'public' test suite ---
#
# Performing tests
#
testHelp
testStandardHelpOutput
testEnhancedHelpOutput

#
# Test report
#
tests passed:     5  56%
tests failed:     0   0%
tests skipped:    4  44%
tests total:      9 100%

test:WARN unable to run tests with the /bin/pdksh shell


#------------------------------------------------------------------------------
# Running the test suite with /bin/zsh
#

version: 4.3.4

--- Executing the 'defines' test suite ---
#
# Performing tests
#
testFlagsDefine
testBoolean
testFloat
testInteger
testString
testShortNameLength

#
# Test report
#
tests passed:    65 100%
tests failed:     0   0%
tests skipped:    0   0%
tests total:     65 100%

--- Executing the 'parsing' test suite ---
test:WARN Standard version of getopt found. Some tests will be skipped.
#
# Performing tests
#
testValidBooleanShort
testValidBooleanLong
testValidFloats
testInvalidFloats
testValidIntegers
testInvalidIntegers
testValidStrings
ASSERT:FLAGS (string with spaces) returned a non-zero result
ASSERT:string (string with spaces) test failed.string (string with spaces) test failed. expected:<string with spaces> but was:<>
flags:ERROR the available getopt does not support spaces in options
testMultipleFlags
testSingleNonFlagArg
testMultipleNonFlagArgs
testMultipleNonFlagStringArgsWithSpaces

#
# Test report
#
tests passed:    89  50%
tests failed:     2   1%
tests skipped:   88  49%
tests total:    179 100%

--- Executing the 'private' test suite ---
#
# Performing tests
#
testGetFlagInfo
testItemInList
testValidateBoolean
testValidateFloat
testValidateInteger

#
# Test report
#
tests passed:    50 100%
tests failed:     0   0%
tests skipped:    0   0%
tests total:     50 100%

--- Executing the 'public' test suite ---
#
# Performing tests
#
testHelp
testStandardHelpOutput
testEnhancedHelpOutput

#
# Test report
#
tests passed:     5  56%
tests failed:     0   0%
tests skipped:    4  44%
tests total:      9 100%