aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile5
-rw-r--r--tests/Makefile2
-rw-r--r--tests/exiftool-tests.el2
3 files changed, 6 insertions, 3 deletions
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)))