Browse Source

Add test for profile

pull/2/head
10sr 9 years ago
parent
commit
47069ac6b0
1 changed files with 10 additions and 2 deletions
  1. +10
    -2
      Makefile

+ 10
- 2
Makefile View File

@@ -15,9 +15,12 @@ shrc_common_tpl =

emacs ?= emacs

tests = test_el test_shrc
tests = test_el test_sh
test: $(tests)

test_shs = test_shrc test_profile
test_sh: $(test_shs)

setups = setup_darwin setup_directories setup_emacs
setup: $(setups)

@@ -27,7 +30,8 @@ setup_darwin: $(setup_darwins)
setup_directories = $(localdir) $(vardir) $(bindir)
setup_directory = $(setup_directories)

.PHONY: all default test $(tests) setup $(setups) $(setup_darwins) emacs
.PHONY: all default test $(tests) $(test_shs) \
setup $(setups) $(setup_darwins) emacs

all: default

@@ -82,9 +86,13 @@ setup_emacs: emacs.el
# test
# ====

test_profile: profile
sh -exc 'for sh in $(shrc_loadables); do $$sh -n $<; done'

test_shrc: shrc
sh -exc 'for sh in $(shrc_loadables); do $$sh -n $<; done'


test_el: emacs.el
$(emacs) -q --debug-init --batch --eval "(setq debug-on-error t)" \
--load $< --kill

Loading…
Cancel
Save