emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Fix for ob-sqlite tests
@ 2018-09-09 12:31 Robert Klein
  2018-09-13 21:06 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Robert Klein @ 2018-09-09 12:31 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 326 bytes --]

Hi,

the tests for sqlite don't work because

1. the executable is sqlite3, not sqlite anymore for current software
(and obsqlite uses “sqlite3”, too)

2. the test doesn't have ob-sqlite loaded.


Please advice, if the “(require 'obsqlite)” is offensive.


Patch is attached.



Best regards
Robert

[-- Attachment #2: 0001-Fix-tests-for-sqlite.patch --]
[-- Type: text/x-patch, Size: 861 bytes --]

From c48a90b94bc7f0a86c7dd3b4747c893e64ec2e31 Mon Sep 17 00:00:00 2001
From: Robert Klein <roklein@roklein.de>
Date: Sun, 9 Sep 2018 14:27:20 +0200
Subject: [PATCH] Fix tests for sqlite

- sqlite executable used by ob-sqlite is 'sqlite3'
- require ob-sqlite for test
---
 testing/lisp/test-ob-sqlite.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/testing/lisp/test-ob-sqlite.el b/testing/lisp/test-ob-sqlite.el
index f73251534..0cf68fabc 100644
--- a/testing/lisp/test-ob-sqlite.el
+++ b/testing/lisp/test-ob-sqlite.el
@@ -19,7 +19,8 @@
 ;; along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 ;;; Code:
-(org-test-for-executable "sqlite")
+(org-test-for-executable "sqlite3")
+(require 'ob-sqlite)
 (unless (featurep 'ob-sqlite)
   (signal 'missing-test-dependency "Support for sqlite code blocks"))
 
-- 
2.16.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: Fix for ob-sqlite tests
  2018-09-09 12:31 Fix for ob-sqlite tests Robert Klein
@ 2018-09-13 21:06 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2018-09-13 21:06 UTC (permalink / raw)
  To: Robert Klein; +Cc: emacs-orgmode

Hello,

Robert Klein <roklein@roklein.de> writes:

> the tests for sqlite don't work because
>
> 1. the executable is sqlite3, not sqlite anymore for current software
> (and obsqlite uses “sqlite3”, too)
>
> 2. the test doesn't have ob-sqlite loaded.
>
> Please advice, if the “(require 'obsqlite)” is offensive.
>
>
> Patch is attached.

Applied. Thank you.

Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-09-13 21:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-09 12:31 Fix for ob-sqlite tests Robert Klein
2018-09-13 21:06 ` Nicolas Goaziou

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).