VirtualBox

Changeset 1412 in kBuild for trunk/tests


Ignore:
Timestamp:
Mar 18, 2008 9:20:30 PM (17 years ago)
Author:
bird
Message:

More tests.

Location:
trunk/tests/inherit-bld
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/inherit-bld/Config.kmk

    r1404 r1412  
    6161
    6262#
    63 # For inherit-bld6 - overriding inheritance.
     63# For inherit-bld7 - overriding inheritance.
    6464#
    6565KBUILD_BLD_TYPES += dbgbld7
     
    6767BLD_TYPE_dbgbld7_EXTENDS_BY = overriding
    6868
     69#
     70# For inherit-bld10 thru 19 - overriding inheritance.
     71#
     72KBUILD_BLD_TYPES += dbgbld10 dbgbld11
     73BLD_TYPE_dbgbld11_EXTENDS = dbgbld10
     74
     75#
     76# For inherit-bld20 thru 29 - prepending inheritance.
     77#
     78KBUILD_BLD_TYPES += dbgbld20 dbgbld21
     79BLD_TYPE_dbgbld21_EXTENDS = dbgbld20
     80BLD_TYPE_dbgbld21_EXTENDS_BY = prepending
     81
  • trunk/tests/inherit-bld/Makefile.kmk

    r1405 r1412  
    5555inherit-bld4_BLD_TYPE = dbgbld4
    5656inherit-bld4_DEFS.dbgbld3 = X=y
    57 inherit-bld4_DEFS.dbgbld4 = $(inherit-bld4_DEFS.dbgbld3)        # remove me
    5857inherit-bld4_SOURCES = ../dummy_defined_X.c
    5958
     
    6362inherit-bld5_BLD_TYPE = dbgbld5
    6463inherit-bld5_DEFS.dbgbld3 = X=y y=0
    65 #inherit-bld5_DEFS.dbgbld5 = y=42
    66 inherit-bld5_DEFS.dbgbld5 = $(inherit-bld5_DEFS.dbgbld3) y=42   # remove me
     64inherit-bld5_DEFS.dbgbld5 = y=42
    6765inherit-bld5_SOURCES = ../dummy_defined_X.c
    6866
     
    7270inherit-bld6_BLD_TYPE = dbgbld6
    7371inherit-bld6_DEFS.dbgbld3 = X=y y=42
    74 #inherit-bld6_DEFS.dbgbld6 = y=0
    75 inherit-bld6_DEFS.dbgbld6 = y=0 $(inherit-bld6_DEFS.dbgbld3)    # remove me
     72inherit-bld6_DEFS.dbgbld6 = y=0
    7673inherit-bld6_SOURCES = ../dummy_defined_X.c
     74
     75
     76#
     77# Tests where we inherit from a target and force build type which
     78# relies on inheritance. These are the fine points...
     79#
     80PROGRAMS += inherit-bld10
     81inherit-bld10_TEMPLATE = TST
     82inherit-bld10_BLD_TYPE = dbgbld11
     83inherit-bld10_DEFS = X=y
     84inherit-bld10_DEFS.dbgbld10 = y=42
     85inherit-bld10_SOURCES = ../dummy_defined_X.c
     86
     87# Tests that target and build inheriting works together.
     88PROGRAMS += inherit-bld11
     89inherit-bld11_EXTENDS = inherit-bld10
     90
     91# Tests that dbgbld11 is picked from the target rather than the parent.
     92PROGRAMS += inherit-bld12
     93inherit-bld12_EXTENDS = inherit-bld10
     94inherit-bld12_DEFS = y=0
     95inherit-bld12_DEFS.dbgbld11 = X=z z=42
     96
     97# Tests that prepending works.
     98PROGRAMS += inherit-bld20
     99inherit-bld20_TEMPLATE = TST
     100inherit-bld20_BLD_TYPE = dbgbld21
     101inherit-bld20_DEFS = X=y
     102inherit-bld20_DEFS.dbgbld20 = y=42
     103inherit-bld20_DEFS.dbgbld21 = y=0
     104#inherit-bld20_DEFS.dbgbld21 = y=0 y=42 <-- expected result.
     105inherit-bld20_SOURCES = ../dummy_defined_X.c
     106
     107# Tests that prepending + target inheritance works as expected. funky!
     108PROGRAMS += inherit-bld21
     109inherit-bld21_EXTENDS = inherit-bld20
     110inherit-bld21_DEFS.dbgbld20 = Y=y
     111#inherit-bld21_DEFS.dbgbld21 = y=0 y=42 Y=y <-- expected result; dbgbld21 from parent + our dbgbld20.
     112inherit-bld21_SOURCES = ../dummy_defined_Y.c
    77113
    78114
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette