Changeset 1404 for trunk/tests
- Timestamp:
- Mar 17, 2008, 9:02:15 AM (17 years ago)
- 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 1 27 #ifndef X 2 28 # 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" 3 37 #endif 4 38 … … 7 41 return 0; 8 42 } 43 -
trunk/tests/inherit-bld/Config.kmk
r1402 r1404 46 46 BLD_TYPE_dbgbld4_EXTENDS = dbgbld3 47 47 48 # 49 # For inherit-bld5 - appending inheritance. 50 # 51 KBUILD_BLD_TYPES += dbgbld5 52 BLD_TYPE_dbgbld5_EXTENDS = dbgbld3 53 BLD_TYPE_dbgbld5_EXTENDS_BY = appending 54 55 # 56 # For inherit-bld6 - prepending inheritance. 57 # 58 KBUILD_BLD_TYPES += dbgbld6 59 BLD_TYPE_dbgbld6_EXTENDS = dbgbld3 60 BLD_TYPE_dbgbld6_EXTENDS_BY = prepending 61 62 # 63 # For inherit-bld6 - overriding inheritance. 64 # 65 KBUILD_BLD_TYPES += dbgbld7 66 BLD_TYPE_dbgbld7_EXTENDS = dbgbld3 67 BLD_TYPE_dbgbld7_EXTENDS_BY = overriding 68 -
trunk/tests/inherit-bld/Makefile.kmk
r1402 r1404 58 58 59 59 # Test that appending build type inheritance works - dbgbld5 extends dbgbld3. 60 ## @todo somehow make this test the order61 60 PROGRAMS += inherit-bld5 62 61 inherit-bld5_TEMPLATE = TST 63 62 inherit-bld5_BLD_TYPE = dbgbld4 64 inherit-bld5_DEFS.dbgbld3 = X=y 65 inherit-bld5_DEFS.dbgbld5 = SOMETHING63 inherit-bld5_DEFS.dbgbld3 = X=y y=0 64 inherit-bld5_DEFS.dbgbld5 = y=42 66 65 inherit-bld5_SOURCES = ../dummy_defined_X.c 67 66 68 67 # Test that prepending build type inheritance works - dbgbld6 extends dbgbld3. 69 ## @todo somehow make this test the order70 68 PROGRAMS += inherit-bld6 71 69 inherit-bld6_TEMPLATE = TST 72 70 inherit-bld6_BLD_TYPE = dbgbld6 73 inherit-bld 6_DEFS.dbgbld3 = X=y74 inherit-bld 6_DEFS.dbgbld6 = SOMETHING71 inherit-bld5_DEFS.dbgbld3 = X=y y=42 72 inherit-bld5_DEFS.dbgbld6 = y=0 75 73 inherit-bld6_SOURCES = ../dummy_defined_X.c 76 74
Note:
See TracChangeset
for help on using the changeset viewer.