From 47069ac6b09fb37ae36f39aab5f287a734f3e814 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Wed, 14 Jan 2015 00:47:47 +0900 Subject: [PATCH] Add test for profile --- Makefile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 49d3dd7..9ef8e48 100644 --- a/Makefile +++ b/Makefile @@ -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