2007-03-22 10:30:00 -07:00
|
|
|
#
|
|
|
|
# ***** BEGIN LICENSE BLOCK *****
|
|
|
|
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
|
|
|
#
|
|
|
|
# The contents of this file are subject to the Mozilla Public License Version
|
|
|
|
# 1.1 (the "License"); you may not use this file except in compliance with
|
|
|
|
# the License. You may obtain a copy of the License at
|
|
|
|
# http://www.mozilla.org/MPL/
|
|
|
|
#
|
|
|
|
# Software distributed under the License is distributed on an "AS IS" basis,
|
|
|
|
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
|
|
# for the specific language governing rights and limitations under the
|
|
|
|
# License.
|
|
|
|
#
|
|
|
|
# The Original Code is Oracle Corporation code.
|
|
|
|
#
|
|
|
|
# The Initial Developer of the Original Code is
|
|
|
|
# Oracle Corporation
|
|
|
|
# Portions created by the Initial Developer are Copyright (C) 2004
|
|
|
|
# the Initial Developer. All Rights Reserved.
|
|
|
|
#
|
|
|
|
# Contributor(s):
|
|
|
|
# Vladimir Vukicevic <vladimir.vukicevic@oracle.com>
|
2007-06-12 09:28:27 -07:00
|
|
|
# Shawn Wilsher <me@shawnwilsher.com>
|
2007-03-22 10:30:00 -07:00
|
|
|
#
|
|
|
|
# Alternatively, the contents of this file may be used under the terms of
|
|
|
|
# either of the GNU General Public License Version 2 or later (the "GPL"),
|
|
|
|
# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
|
|
|
# in which case the provisions of the GPL or the LGPL are applicable instead
|
|
|
|
# of those above. If you wish to allow use of your version of this file only
|
|
|
|
# under the terms of either the GPL or the LGPL, and not to allow others to
|
|
|
|
# use your version of this file under the terms of the MPL, indicate your
|
|
|
|
# decision by deleting the provisions above and replace them with the notice
|
|
|
|
# and other provisions required by the GPL or the LGPL. If you do not delete
|
|
|
|
# the provisions above, a recipient may use your version of this file under
|
|
|
|
# the terms of any one of the MPL, the GPL or the LGPL.
|
|
|
|
#
|
|
|
|
# ***** END LICENSE BLOCK *****
|
|
|
|
|
|
|
|
DEPTH = ../..
|
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
2010-08-26 14:47:28 -07:00
|
|
|
relativesrcdir = storage/test
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
2007-06-12 09:28:27 -07:00
|
|
|
MODULE = test_storage
|
|
|
|
|
|
|
|
XPCSHELL_TESTS = unit
|
|
|
|
|
2009-05-13 09:53:57 -07:00
|
|
|
CPP_UNIT_TESTS = \
|
|
|
|
test_transaction_helper.cpp \
|
|
|
|
test_statement_scoper.cpp \
|
2009-07-22 15:18:33 -07:00
|
|
|
test_mutex.cpp \
|
2010-02-22 13:57:45 -08:00
|
|
|
test_binding_params.cpp \
|
2010-03-24 00:32:40 -07:00
|
|
|
test_true_async.cpp \
|
2010-06-21 14:23:00 -07:00
|
|
|
test_unlock_notify.cpp \
|
2010-07-24 11:21:17 -07:00
|
|
|
test_service_init_background_thread.cpp \
|
2010-06-21 17:01:33 -07:00
|
|
|
test_AsXXX_helpers.cpp \
|
2010-11-08 11:42:29 -08:00
|
|
|
test_StatementCache.cpp \
|
2009-05-13 09:53:57 -07:00
|
|
|
$(NULL)
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2009-07-22 15:18:33 -07:00
|
|
|
ifdef MOZ_DEBUG
|
2009-10-20 17:26:04 -07:00
|
|
|
# FIXME bug 523392: test_deadlock_detector doesn't like Windows
|
|
|
|
# FIXME bug 523378: also fails on OS X
|
|
|
|
ifneq (,$(filter-out WINNT WINCE Darwin,$(OS_ARCH)))
|
2009-07-22 15:18:33 -07:00
|
|
|
CPP_UNIT_TESTS += \
|
|
|
|
test_deadlock_detector.cpp \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2009-07-22 15:18:33 -07:00
|
|
|
LOCAL_INCLUDES = \
|
|
|
|
-I$(srcdir)/../src \
|
|
|
|
$(NULL)
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
LIBS = \
|
|
|
|
$(LIBS_DIR) \
|
2010-08-01 16:30:12 -07:00
|
|
|
$(LIBXUL_DIST)/lib/$(LIB_PREFIX)xpcomglue_s.$(LIB_SUFFIX) \
|
|
|
|
$(MOZ_COMPONENT_LIBS) \
|
2009-07-22 15:18:33 -07:00
|
|
|
$(SQLITE_LIBS) \
|
2007-03-22 10:30:00 -07:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
include $(topsrcdir)/config/rules.mk
|