js/src/jsapi-tests/Makefile.in
author Ryan VanderMeulen <ryanvm@gmail.com>
Tue, 30 Apr 2013 21:09:41 -0400
changeset 130421 d5db4e09eeef840fd81294ab2a2a0344ea0cde96
parent 130420 c7937fb5f4bbe90cbe8fd030e40d36eeb9f34fb9
child 131410 557f1d26fb712722030373ff369d4dba8477260e
permissions -rw-r--r--
Backed out changesets c7937fb5f4bb and cf8db9b6bd61 (bug 862986) for bustage. CLOSED TREE

# -*- Mode: makefile -*-
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

DEPTH		= @DEPTH@
topsrcdir	= @top_srcdir@
srcdir		= @srcdir@
VPATH		= @srcdir@

include $(DEPTH)/config/autoconf.mk

PROGRAM         = jsapi-tests$(BIN_SUFFIX)

CPPSRCS = \
  tests.cpp \
  selfTest.cpp \
  testAddPropertyPropcache.cpp \
  testArrayBuffer.cpp \
  testArgumentsObject.cpp \
  testBindCallable.cpp \
  testBug604087.cpp \
  testCallNonGenericMethodOnProxy.cpp \
  testChromeBuffer.cpp \
  testClassGetter.cpp \
  testCloneScript.cpp \
  testConservativeGC.cpp \
  testContexts.cpp \
  testCustomIterator.cpp \
  testDebugger.cpp \
  testDeepFreeze.cpp \
  testDefineGetterSetterNonEnumerable.cpp \
  testDefineProperty.cpp \
  testEnclosingFunction.cpp \
  testErrorCopying.cpp \
  testExternalStrings.cpp \
  testFindSCCs.cpp \
  testFuncCallback.cpp \
  testFunctionProperties.cpp \
  testGCFinalizeCallback.cpp \
  testGCOutOfMemory.cpp \
  testGetPropertyDefault.cpp \
  testHashTable.cpp \
  testIndexToString.cpp \
  testIntString.cpp \
  testIntTypesABI.cpp \
  testIntern.cpp \
  testJSEvaluateScript.cpp \
  testLookup.cpp \
  testLooselyEqual.cpp \
  testNewObject.cpp \
  testObjectEmulatingUndefined.cpp \
  testOOM.cpp \
  testOps.cpp \
  testOriginPrincipals.cpp \
  testParseJSON.cpp \
  testProfileStrings.cpp \
  testPropCache.cpp \
  testRegExp.cpp \
  testResolveRecursion.cpp \
  testSameValue.cpp \
  testScriptInfo.cpp \
  testScriptObject.cpp \
  testSetProperty.cpp \
  testSourcePolicy.cpp \
  testStringBuffer.cpp \
  testTrap.cpp \
  testTypedArrays.cpp \
  testUTF8.cpp \
  testVersion.cpp \
  testXDR.cpp \
  $(NULL)

# Disabled: an entirely unrelated test seems to cause this to fail.  Moreover,
# given the test's dependence on interactions between the compiler, the GC, and
# conservative stack scanning, the fix isn't obvious: more investigation
# needed.
#CPPSRCS += \
#  testRegExpInstanceProperties.cpp \
#  $(NULL)

DEFINES         += -DEXPORT_JS_API
# Building against js_static requires that we declare mfbt sybols "exported"
# on its behalf.
DEFINES         += -DIMPL_MFBT

LIBS      = $(DEPTH)/$(LIB_PREFIX)js_static.$(LIB_SUFFIX) $(NSPR_LIBS) $(MOZ_ZLIB_LIBS)

LOCAL_INCLUDES += -I$(topsrcdir) -I..

EXTRA_LIBS += $(MOZ_FFI_LIBS)

ifdef QEMU_EXE
MOZ_POST_PROGRAM_COMMAND = $(topsrcdir)/build/qemu-wrap --qemu $(QEMU_EXE) --libdir $(CROSS_LIB)
endif

# Place a GDB Python auto-load file next to the jsapi-tests executable in
# the build directory.
PP_TARGETS += JSAPI_TESTS_AUTOLOAD
JSAPI_TESTS_AUTOLOAD := jsapi-tests-gdb.py.in
JSAPI_TESTS_AUTOLOAD_FLAGS := -Dtopsrcdir=$(abspath $(topsrcdir))

include $(topsrcdir)/config/rules.mk

check::
	$(wildcard $(RUN_TEST_PROGRAM)) $(DIST)/bin/jsapi-tests$(BIN_SUFFIX)