Changeset 6816 for trunk/GDE/Makefile

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/GDE/Makefile

    r5872 r6816  
    3939 
    4040# -------------------------------------------------------------------------------- 
    41 # no warnings in this subtree 
     41# modify cflags for submakefiles  
    4242 
    43 RAISE_WARNINGS=0 
     43RAISE_WARNINGS=0# no warnings in this subtree 
     44UNIT_TESTS=0# no warnings in this subtree 
     45 
     46sub_cflags:=$(cflags) 
    4447 
    4548ifeq ('$(RAISE_WARNINGS)','0') 
    46 sub_cflags:=$(subst -W -Wall,-w,$(cflags)) 
    47 else 
    48 sub_cflags:=$(cflags) 
     49sub_cflags:=$(subst -W -Wall,-w,$(sub_cflags)) 
     50endif 
     51ifeq ('$(UNIT_TESTS)','0') 
     52sub_cflags:=$(subst -DUNIT_TESTS,,$(sub_cflags)) 
    4953endif 
    5054