Browse Source

fix paths for browser-tests target

Chris Jones 14 years ago
parent
commit
fe9098278d
  1. 10
      Makefile

10
Makefile

@ -1,7 +1,7 @@
REPO = git@github.com:andreasgal/pdf.js.git REPO = git@github.com:andreasgal/pdf.js.git
BUILD_DIR := build BUILD_DIR := build
DEFAULT_BROWSERS := test/resources/browser_manifests/browser_manifest.json DEFAULT_BROWSERS := resources/browser_manifests/browser_manifest.json
DEFAULT_TESTS := test/test_manifest.json DEFAULT_TESTS := test_manifest.json
# Let folks define custom rules for their clones. # Let folks define custom rules for their clones.
-include local.mk -include local.mk
@ -43,7 +43,7 @@ PDF_BROWSERS := $(DEFAULT_BROWSERS)
endif endif
browser-test: browser-test:
@if [ ! -f "$(PDF_BROWSERS)" ]; then \ @if [ ! -f "test/$(PDF_BROWSERS)" ]; then \
echo "Browser manifest file $(PDF_BROWSERS) does not exist."; \ echo "Browser manifest file $(PDF_BROWSERS) does not exist."; \
echo "Try copying one of the examples" \ echo "Try copying one of the examples" \
"in test/resources/browser_manifests/"; \ "in test/resources/browser_manifests/"; \
@ -52,8 +52,8 @@ browser-test:
cd test; \ cd test; \
python test.py --reftest \ python test.py --reftest \
--browserManifestFile=$(abspath $(PDF_BROWSERS)) \ --browserManifestFile=$(PDF_BROWSERS) \
--manifestFile=$(abspath $(PDF_TESTS)) --manifestFile=$(PDF_TESTS)
# make shell-test # make shell-test
# #

Loading…
Cancel
Save