From a4b865d24281507706bf1b391a308f91ac8e5e6b Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Mon, 20 May 2019 16:24:39 +0530 Subject: Move tests Makefile to top level directory. * tests/Makefile: Delete file. * Makefile: New file. --- Makefile | 5 +++++ tests/Makefile | 2 -- tests/exiftool-tests.el | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 Makefile delete mode 100644 tests/Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..eb74cad --- /dev/null +++ b/Makefile @@ -0,0 +1,5 @@ +EMACS = emacs + +.PHONY: check +check: + $(EMACS) -Q --batch -L . -l tests/exiftool-tests.el -f ert-run-tests-batch-and-exit diff --git a/tests/Makefile b/tests/Makefile deleted file mode 100644 index 1624e4b..0000000 --- a/tests/Makefile +++ /dev/null @@ -1,2 +0,0 @@ -check: - emacs -batch -l ../exiftool.el -l exiftool-tests.el -f ert-run-tests-batch-and-exit diff --git a/tests/exiftool-tests.el b/tests/exiftool-tests.el index 0ef5fa2..8ed4f1c 100644 --- a/tests/exiftool-tests.el +++ b/tests/exiftool-tests.el @@ -52,7 +52,7 @@ (declare (indent defun)) `(let ((,temp-file (make-temp-file "exiftool-" nil (concat "-" ,test-file)))) - (copy-file ,test-file ,temp-file t) + (copy-file ,(expand-file-name test-file "tests") ,temp-file t) ,@body (delete-file ,temp-file))) -- cgit v1.2.3