< prev index next >

test/make/UtilsForTests.gmk

Print this page




  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any
  23 # questions.
  24 #
  25 
  26 # This file contains utilities common for multiple test makefiles.
  27 
  28 # Assert two strings are equal
  29 # 1 - Tested value
  30 # 2 - Exepected value
  31 # 3 - Error message
  32 define assert-equals
  33   ifneq ($$(strip $1),$$(strip $2))
  34     $$(error $3 - Expected >$$(strip $2)< - Got >$$(strip $1)<)
  35   endif
  36 endef
  37 
  38 # On macosx, file system timestamps only have 1 second resultion so must add
  39 # sleeps to properly test dependencies.
  40 ifeq ($(OPENJDK_BUILD_OS), macosx)
  41   SLEEP_ON_MAC := sleep 1
  42 endif


  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any
  23 # questions.
  24 #
  25 
  26 # This file contains utilities common for multiple test makefiles.
  27 
  28 # Assert two strings are equal
  29 # 1 - Tested value
  30 # 2 - Exepected value
  31 # 3 - Error message
  32 define assert-equals
  33   ifneq ($$(strip $1),$$(strip $2))
  34     $$(error $3 - Expected >$$(strip $2)< - Got >$$(strip $1)<)
  35   endif
  36 endef
  37 
  38 # On macosx, file system timestamps only have 1 second resultion so must add
  39 # sleeps to properly test dependencies.
  40 ifeq ($(call isBuildOs, macosx), true)
  41   SLEEP_ON_MAC := sleep 1
  42 endif
< prev index next >