7 # Copyright (c) 2008-2009 knut st. osmundsen <bird-kBuild-spamix@anduin.net>
9 # This file is part of kBuild.
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 3 of the License, or
14 # (at your option) any later version.
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.
21 # You should have received a copy of the GNU General Public License
22 # along with kBuild. If not, see <http://www.gnu.org/licenses/>
26 $description = "Tests the \$(expr ) function";
28 $details = "Much of the basic testing is taken care of by features/ifcond.
29 We only make sure \$(expr ) works here).";
33 # TEST #0 - check that the feature is present.
34 # --------------------------------------------
37 $(error sub-test 0 failed)
45 # TEST #1 - basics, the $(expr test checks the rest).
46 # ---------------------------------------------------
48 ifneq ($(expr 1==1),1)
49 $(error sub-test 0 failed)
51 ifneq ($(expr 1!=1),0)
52 $(error sub-test 1 failed)
55 $(error sub-test 1 failed)
57 ifneq ($(expr 25*25),625)
58 $(error sub-test 1 failed)
71 # Indicate that we're done.