[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/emacsql 1b5891298a 255/427: Officially add MySQL to unit t
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/emacsql 1b5891298a 255/427: Officially add MySQL to unit testing. |
Date: |
Tue, 13 Dec 2022 02:59:49 -0500 (EST) |
branch: elpa/emacsql
commit 1b5891298ae5f9b9146ef717d9101f85879f0624
Author: Christopher Wellons <wellons@nullprogram.com>
Commit: Christopher Wellons <wellons@nullprogram.com>
Officially add MySQL to unit testing.
---
README.md | 9 +++++++--
tests/emacsql-external-tests.el | 6 +++++-
2 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md
index 28e6cdeb6c..e7381553ba 100644
--- a/README.md
+++ b/README.md
@@ -310,8 +310,13 @@ and unit testing.
make test
If the environment variable `PGDATABASE` is present then the unit
-tests will also be run with PostgreSQL in addition to SQLite. Also
-provide `PGHOST`, `PGPORT`, and `PGUSER` if needed.
+tests will also be run with PostgreSQL. Also provide `PGHOST`,
+`PGPORT`, and `PGUSER` if needed.
+
+If the environment variable `MYSQL_DBNAME` is present then the unit
+tests will also be run with MySQL in the named database. Note that
+this is not an official MySQL variable, just something made up for
+Emacsql.
### Creating a New Front-end
diff --git a/tests/emacsql-external-tests.el b/tests/emacsql-external-tests.el
index 1438a219bc..8e3ef5d793 100644
--- a/tests/emacsql-external-tests.el
+++ b/tests/emacsql-external-tests.el
@@ -12,11 +12,15 @@
(defvar emacsql-tests-connection-factories
(let ((factories ())
- (pgdatabase (getenv "PGDATABASE")))
+ (pgdatabase (getenv "PGDATABASE"))
+ (mysql-dbname (getenv "MYSQL_DBNAME")))
(push (cons "sqlite" (apply-partially #'emacsql-sqlite nil)) factories)
(when pgdatabase
(push (cons "psql" (apply-partially #'emacsql-psql pgdatabase))
factories))
+ (when mysql-dbname
+ (push (cons "mysql" (apply-partially #'emacsql-mysql mysql-dbname))
+ factories))
(nreverse factories))
"List of connection factories to use in unit tests.")
- [nongnu] elpa/emacsql 5bef799b6b 220/427: Make some tweaks to accommodate Windows., (continued)
- [nongnu] elpa/emacsql 5bef799b6b 220/427: Make some tweaks to accommodate Windows., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 0cb9e47d24 227/427: Test all available backends., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 730e4d882a 235/427: Fix up the README., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 4b45472ffa 240/427: Don't copy the binary every time., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql c89ccf82df 241/427: Make a reconnect generic method., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 159195690d 245/427: Include bin/ in the package., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql f98ee5e7cd 246/427: Use no-undo buffers., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 4b58a6717e 250/427: Don't use temporary tables in foreign key test., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 462d1f1b31 252/427: Fix stupid backslash escape mode in MySQL., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql b0f0d3085d 258/427: Get OS tuple from Emacs., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 1b5891298a 255/427: Officially add MySQL to unit testing.,
ELPA Syncer <=
- [nongnu] elpa/emacsql 127bb98df2 264/427: Set coding system to utf-8-auto for sqlite., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 933e6f109a 263/427: Clean up for easier cross-compilation., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 810243e823 290/427: Remember SQLite fetch preference in customization., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql fb2270509f 279/427: Adjust make clean., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 7e078e2b32 282/427: Change OS-detection in Makefile., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql cfde8bea56 291/427: Update README for new customization variable., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 46850a75d0 268/427: Update the README., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 3e6a24e22a 303/427: Escape identifiers that collide with keywords., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql c4036cbdc8 280/427: Move test print statement., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 1bf92bab9e 285/427: Add a special case for unary not., ELPA Syncer, 2022/12/13