[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/emacsql e9fbc4a913 061/427: Fill out a Makefile.
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/emacsql e9fbc4a913 061/427: Fill out a Makefile. |
Date: |
Tue, 13 Dec 2022 02:59:28 -0500 (EST) |
branch: elpa/emacsql
commit e9fbc4a913497d1036415bef1f8c2e69f788faea
Author: Christopher Wellons <wellons@nullprogram.com>
Commit: Christopher Wellons <wellons@nullprogram.com>
Fill out a Makefile.
---
Makefile | 25 +++++++++++++++++++++++++
emacsql-tests.el | 9 +++++++++
2 files changed, 34 insertions(+)
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000000..8f4579f75b
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,25 @@
+PACKAGE = emacsql
+
+EMACS ?= emacs
+BATCH := $(EMACS) -batch -Q -L .
+COMPILE := $(BATCH) -f batch-byte-compile
+TEST := $(BATCH) -l $(PACKAGE)-tests.elc -f ert-run-tests-batch
+
+EL = $(PACKAGE).el $(PACKAGE)-tests.el
+
+ELC = $(EL:.el=.elc)
+
+.PHONY : all compile test clean
+
+all : test
+
+compile: $(ELC)
+
+test: compile
+ $(TEST)
+
+clean:
+ $(RM) *.elc
+
+%.elc: %.el
+ @$(COMPILE) $<
diff --git a/emacsql-tests.el b/emacsql-tests.el
index 63ba565522..38fc5e0300 100644
--- a/emacsql-tests.el
+++ b/emacsql-tests.el
@@ -1,4 +1,9 @@
+;;; emacsql-tests.el --- tests for emacsql
+
+;;; Code:
+
(require 'ert)
+(require 'emacsql)
(ert-deftest emacsql-escape ()
(should (string= (emacsql-escape "foo") "foo"))
@@ -53,3 +58,7 @@
"CREATE TABLE foo (a, b, c);")
(emacsql-tests-query [:drop-table $1] '(foo)
"DROP TABLE foo;"))
+
+(provide 'emacsql-tests)
+
+;;; emacsql-tests.el ends here
- [nongnu] elpa/emacsql 223db2d397 141/427: Add quote operator., (continued)
- [nongnu] elpa/emacsql 223db2d397 141/427: Add quote operator., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 8951084b40 143/427: Add variable escaping., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 19a65f390e 147/427: Add ignored features section to README., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 530b0ad98c 151/427: Allow arbitrary sub-statements., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 3012f5b725 154/427: Fix typo., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 301e2ff4b6 175/427: Drop "simple" from helper method names., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 578a71d2d8 157/427: Re-order some definitions to group them., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 935cca89a9 176/427: Add updated information about Windows., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql b3aea1e6af 055/427: Oops, fix >= back., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql c4396ec5e6 057/427: Fix a bunch of warnings., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql e9fbc4a913 061/427: Fill out a Makefile.,
ELPA Syncer <=
- [nongnu] elpa/emacsql 829298d5a7 063/427: Add dependency listing., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 231ec586ca 088/427: Drop forced process coding system., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql eba26bead6 102/427: Add emacsql-compile function for debugging., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql d5cfaee783 158/427: Be more precise about error messages., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql f512300aba 054/427: Fix a few things in emacsql-expr., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql e900f99091 075/427: Update examples., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 1116a0873e 163/427: Turn everything into generic functions., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 47d9476a02 142/427: Add tests for quote operator., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql cd5e856ea6 150/427: Add :autoincrement., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql f31120edb6 155/427: Fix up documentation headers., ELPA Syncer, 2022/12/13