bench: benchel benchjs
benchel:
- emacs -Q -L . \
+ emacs -Q \
+ -L . \
+ -L lib/js2-mode \
-l context-coloring \
-l benchmark/context-coloring-benchmark \
-f context-coloring-benchmark-run
node_modules/.bin/matcha
compile:
- emacs -Q \
+ emacs -Q -batch \
-L lib/js2-mode \
- -batch -f batch-byte-compile *.el
+ -f batch-byte-compile *.el
clean:
rm -f *.log benchmark/*.log *.elc
test: testel testjs
testel:
- emacs -Q -batch -L . \
+ emacs -Q -batch \
+ -L . \
+ -L lib/js2-mode \
-l ert \
-l context-coloring \
-l test/context-coloring-test.el \
(context-coloring-benchmark-js-mode-teardown))
(defun context-coloring-benchmark-js2-mode-setup ()
- (add-to-list 'load-path (context-coloring-benchmark-resolve-path
- "../lib/js2-mode"))
(require 'js2-mode)
(setq js2-mode-show-parse-errors nil)
(setq js2-mode-show-strict-warnings nil)
(setq auto-mode-alist (delete '("\\.js\\'" . js2-mode)
auto-mode-alist))
(setq js2-mode-show-strict-warnings t)
- (setq js2-mode-show-parse-errors t)
- (setq load-path (delete (context-coloring-benchmark-resolve-path
- "../test/fixtures/js2-mode")
- load-path)))
+ (setq js2-mode-show-parse-errors t))
(defun context-coloring-benchmark-js2-mode-run ()
(context-coloring-benchmark-js2-mode-setup)
FIXTURE."
`(context-coloring-test-with-fixture
,fixture
- (add-to-list 'load-path (context-coloring-test-resolve-path "../lib/js2-mode"))
(require 'js2-mode)
(setq js2-mode-show-parse-errors nil)
(setq js2-mode-show-strict-warnings nil)