Home | History | Annotate | Download | only in testcase
      1 VAR=var
      2 VARREF=VAR
      3 EMPTY=
      4 UNDEFREF=UNDEFINED
      5 
      6 RESULT=
      7 
      8 ifeq "$(VAR)" "var"
      9 RESULT += PASS
     10 else
     11 RESULT += FAIL
     12 endif
     13 ifneq 	 "$(VAR)"  "var" 
     14 RESULT += FAIL
     15 else
     16 RESULT += PASS
     17 endif
     18 
     19 ifeq '$(VAR)' "var"
     20 RESULT += PASS
     21 else
     22 RESULT += FAIL
     23 endif
     24 ifeq "$(VAR)" 'var'
     25 RESULT += PASS
     26 else
     27 RESULT += FAIL
     28 endif
     29 
     30 ifeq "$(UNDEFINED)" ""
     31 RESULT += PASS
     32 else
     33 RESULT += FAIL
     34 endif
     35 ifeq "" "$(UNDEFINED)"
     36 RESULT += PASS
     37 else
     38 RESULT += FAIL
     39 endif
     40 
     41 ifeq "var var" "$(VAR) $(VAR)"
     42 RESULT += PASS
     43 else
     44 RESULT += FAIL
     45 endif
     46 
     47 test:
     48 	echo $(RESULT)
     49