Changeset 1404 for trunk/tests


Ignore:
Timestamp:
Mar 17, 2008, 9:02:15 AM (17 years ago)
Author:
bird
Message:

test case fixes.

Location:
trunk/tests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/dummy_defined_X.c

    r1398 r1404  
     1/* $Id$ */
     2/** @file
     3 * Tests - Dummy test program checking that X == 42, possibly doing this via y.
     4 */
     5
     6/*
     7 * Copyright (c) 2008 knut st. osmundsen <bird-src-spam@anduin.net>
     8 *
     9 * This file is part of kBuild.
     10 *
     11 * kBuild is free software; you can redistribute it and/or modify
     12 * it under the terms of the GNU General Public License as published by
     13 * the Free Software Foundation; either version 2 of the License, or
     14 * (at your option) any later version.
     15 *
     16 * kBuild is distributed in the hope that it will be useful,
     17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     19 * GNU General Public License for more details.
     20 *
     21 * You should have received a copy of the GNU General Public License
     22 * along with kBuild; if not, write to the Free Software
     23 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
     24 *
     25 */
     26
    127#ifndef X
    228# error "X isn't defined, test the is busted."
     29#endif
     30
     31#ifndef y
     32# define y 42
     33#endif
     34
     35#if X != 42
     36# error "X != 42"
    337#endif
    438
     
    741    return 0;
    842}
     43
  • trunk/tests/inherit-bld/Config.kmk

    r1402 r1404  
    4646BLD_TYPE_dbgbld4_EXTENDS = dbgbld3
    4747
     48#
     49# For inherit-bld5 - appending inheritance.
     50#
     51KBUILD_BLD_TYPES += dbgbld5
     52BLD_TYPE_dbgbld5_EXTENDS = dbgbld3
     53BLD_TYPE_dbgbld5_EXTENDS_BY = appending
     54
     55#
     56# For inherit-bld6 - prepending inheritance.
     57#
     58KBUILD_BLD_TYPES += dbgbld6
     59BLD_TYPE_dbgbld6_EXTENDS = dbgbld3
     60BLD_TYPE_dbgbld6_EXTENDS_BY = prepending
     61
     62#
     63# For inherit-bld6 - overriding inheritance.
     64#
     65KBUILD_BLD_TYPES += dbgbld7
     66BLD_TYPE_dbgbld7_EXTENDS = dbgbld3
     67BLD_TYPE_dbgbld7_EXTENDS_BY = overriding
     68
  • trunk/tests/inherit-bld/Makefile.kmk

    r1402 r1404  
    5858
    5959# Test that appending build type inheritance works - dbgbld5 extends dbgbld3.
    60 ## @todo somehow make this test the order
    6160PROGRAMS += inherit-bld5
    6261inherit-bld5_TEMPLATE = TST
    6362inherit-bld5_BLD_TYPE = dbgbld4
    64 inherit-bld5_DEFS.dbgbld3 = X=y
    65 inherit-bld5_DEFS.dbgbld5 = SOMETHING
     63inherit-bld5_DEFS.dbgbld3 = X=y y=0
     64inherit-bld5_DEFS.dbgbld5 = y=42
    6665inherit-bld5_SOURCES = ../dummy_defined_X.c
    6766
    6867# Test that prepending build type inheritance works - dbgbld6 extends dbgbld3.
    69 ## @todo somehow make this test the order
    7068PROGRAMS += inherit-bld6
    7169inherit-bld6_TEMPLATE = TST
    7270inherit-bld6_BLD_TYPE = dbgbld6
    73 inherit-bld6_DEFS.dbgbld3 = X=y
    74 inherit-bld6_DEFS.dbgbld6 = SOMETHING
     71inherit-bld5_DEFS.dbgbld3 = X=y y=42
     72inherit-bld5_DEFS.dbgbld6 = y=0
    7573inherit-bld6_SOURCES = ../dummy_defined_X.c
    7674
Note: See TracChangeset for help on using the changeset viewer.