VirtualBox

Changeset 1402 in kBuild for trunk/tests/inherit-bld


Ignore:
Timestamp:
Mar 16, 2008 11:32:34 PM (17 years ago)
Author:
bird
Message:

Initial testcases (two todos).

Location:
trunk/tests/inherit-bld
Files:
1 added
1 edited

Legend:

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

    r1398 r1402  
    2525#
    2626
     27
    2728DEPTH = ../..
    2829include $(PATH_KBUILD)/header.kmk
    2930
    3031
    31 # not finished...
    32 PROGRAMS += dummy1
    33 dummy1_TEMPLATE = TST
    34 dummy1_SOURCES = ../dummy.c
     32# Plain setup just for a reality check.
     33PROGRAMS += inherit-bld1
     34inherit-bld1_TEMPLATE = TST
     35inherit-bld1_DEFS = X=y
     36inherit-bld1_SOURCES = ../dummy_defined_X.c
    3537
    36 PROGRAMS += dummy2
    37 dummy2_TEMPLATE = TST
    38 dummy2_SOURCES = ../dummy.c
     38# Test that the BLD_TYPE feature works.
     39PROGRAMS += inherit-bld2
     40inherit-bld2_TEMPLATE = TST
     41inherit-bld2_BLD_TYPE = debug
     42inherit-bld2_DEFS.debug = X=y
     43inherit-bld2_SOURCES = ../dummy_defined_X.c
     44
     45# Test that an simple alternative build type works.
     46PROGRAMS += inherit-bld3
     47inherit-bld3_TEMPLATE = TST
     48inherit-bld3_BLD_TYPE = dbgbld3
     49inherit-bld3_DEFS.dbgbld3 = X=y
     50inherit-bld3_SOURCES = ../dummy_defined_X.c
     51
     52# Test that default build type inheritance works - dbgbld4 extends dbgbld3.
     53PROGRAMS += inherit-bld4
     54inherit-bld4_TEMPLATE = TST
     55inherit-bld4_BLD_TYPE = dbgbld4
     56inherit-bld4_DEFS.dbgbld3 = X=y
     57inherit-bld4_SOURCES = ../dummy_defined_X.c
     58
     59# Test that appending build type inheritance works - dbgbld5 extends dbgbld3.
     60## @todo somehow make this test the order
     61PROGRAMS += inherit-bld5
     62inherit-bld5_TEMPLATE = TST
     63inherit-bld5_BLD_TYPE = dbgbld4
     64inherit-bld5_DEFS.dbgbld3 = X=y
     65inherit-bld5_DEFS.dbgbld5 = SOMETHING
     66inherit-bld5_SOURCES = ../dummy_defined_X.c
     67
     68# Test that prepending build type inheritance works - dbgbld6 extends dbgbld3.
     69## @todo somehow make this test the order
     70PROGRAMS += inherit-bld6
     71inherit-bld6_TEMPLATE = TST
     72inherit-bld6_BLD_TYPE = dbgbld6
     73inherit-bld6_DEFS.dbgbld3 = X=y
     74inherit-bld6_DEFS.dbgbld6 = SOMETHING
     75inherit-bld6_SOURCES = ../dummy_defined_X.c
    3976
    4077
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