Show
Ignore:
Timestamp:
09/09/10 22:40:57 (21 months ago)
Author:
westram
Message:
  • unit-test improvements (merged [6757] [6758] [6759] [6760] [6761] [6762] [6764] [6791] [6795] [6798] [6799] [6800] [6801] [6802] [6809] [6810])
    • moved file compare to test_unit.h
    • fake report for skipped tests
    • added templates for char compare
    • perform minihexdump
    • flush output
    • added
      • TEST_ASSERT_FILES_EQUAL__BROKEN
      • TEST_ASSERT_ZERO_OR_SHOW_ERRNO
    • create a fake.patch if there are no changes
    • all code affecting assertions in UNIT_TESTS-mode went to test_global.h
      • overwrites arb_assert()
    • undefine UNIT_TESTS for GDE submakefiles (foreign code there)
    • arb_test::FlushedOutput::errorf raises assertion itself
    • test against I/O errors
    • moved test code
    • refactored message printing
    • unit-tester switches to run directory itself
      • eliminates path hack for valgrind
    • control leak-check by variable
    • added global test-environment (does nothing yet)
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/SOURCE_TOOLS/arb_create_patch.sh

    r6718 r6816  
    1717            PATCHNAME=${NAME}_$DATE 
    1818            PATCH=$PATCHDIR/$PATCHNAME.patch 
     19            FAKEPATCH=$PATCHDIR/fake.patch 
     20            RECENT_PATCH=$ARBHOME/latest.patch 
    1921 
    2022            cd $ARBHOME 
     
    2426                if [ ! -s $PATCH ]; then 
    2527                    rm $PATCH 
     28                    if [ ! -e $FAKEPATCH ]; then 
     29                        echo "Index: No changes" > $FAKEPATCH 
     30                        echo "===================================================================" >> $FAKEPATCH 
     31                    fi 
     32                    ln --force $FAKEPATCH $RECENT_PATCH 
     33                    touch $FAKEPATCH 
    2634                    echo "No patch generated (no diff)" 
    2735                else 
    28                     RECENT_PATCH=$ARBHOME/latest.patch 
    2936                    ln --force $PATCH $RECENT_PATCH 
    3037                    ls -alh $PATCH $RECENT_PATCH