2012-05-21 04:12:37 -07:00
|
|
|
# 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/.
|
2011-11-16 08:58:30 -08:00
|
|
|
|
2012-08-04 11:26:44 -07:00
|
|
|
DEPTH = @DEPTH@
|
2011-11-16 08:58:30 -08:00
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
2011-11-29 08:43:15 -08:00
|
|
|
PEPTEST_HARNESS = \
|
|
|
|
peptest \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
PEPTEST_EXTRAS = \
|
|
|
|
setup.py \
|
2011-12-06 06:26:24 -08:00
|
|
|
runtests.py \
|
2011-11-29 08:43:15 -08:00
|
|
|
MANIFEST.in \
|
|
|
|
README.md \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
PEPTEST_TESTS = \
|
2011-11-16 08:58:30 -08:00
|
|
|
tests \
|
|
|
|
$(NULL)
|
|
|
|
|
2011-12-06 06:26:24 -08:00
|
|
|
_DEST_DIR = $(DEPTH)/_tests/peptest
|
|
|
|
libs:: $(PEPTEST_HARNESS)
|
|
|
|
$(PYTHON) $(topsrcdir)/config/nsinstall.py $^ $(_DEST_DIR)
|
|
|
|
libs:: $(PEPTEST_EXTRAS)
|
|
|
|
$(PYTHON) $(topsrcdir)/config/nsinstall.py $^ $(_DEST_DIR)
|
|
|
|
libs:: $(PEPTEST_TESTS)
|
|
|
|
$(PYTHON) $(topsrcdir)/config/nsinstall.py $^ $(_DEST_DIR)
|
|
|
|
|
2011-11-16 08:58:30 -08:00
|
|
|
stage-package: PKG_STAGE = $(DIST)/test-package-stage
|
|
|
|
stage-package:
|
|
|
|
$(NSINSTALL) -D $(PKG_STAGE)/peptest
|
2011-11-29 08:43:15 -08:00
|
|
|
@(cd $(srcdir) && tar $(TAR_CREATE_FLAGS) - $(PEPTEST_HARNESS)) | (cd $(PKG_STAGE)/peptest && tar -xf -)
|
|
|
|
@(cd $(srcdir) && tar $(TAR_CREATE_FLAGS) - $(PEPTEST_EXTRAS)) | (cd $(PKG_STAGE)/peptest && tar -xf -)
|
|
|
|
@(cd $(srcdir) && tar $(TAR_CREATE_FLAGS) - $(PEPTEST_TESTS)) | (cd $(PKG_STAGE)/peptest && tar -xf -)
|