From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martyn Jago Subject: [patch] Add test-run capability to Makefile Date: Wed, 04 Jan 2012 14:35:20 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([140.186.70.92]:51415) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RiRwI-0005st-Qp for emacs-orgmode@gnu.org; Wed, 04 Jan 2012 09:35:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RiRwH-0005hb-LW for emacs-orgmode@gnu.org; Wed, 04 Jan 2012 09:35:38 -0500 Received: from lo.gmane.org ([80.91.229.12]:49775) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RiRwH-0005hV-Al for emacs-orgmode@gnu.org; Wed, 04 Jan 2012 09:35:37 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RiRwG-00005B-HN for emacs-orgmode@gnu.org; Wed, 04 Jan 2012 15:35:36 +0100 Received: from 88-96-171-138.dsl.zen.co.uk ([88.96.171.138]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 04 Jan 2012 15:35:36 +0100 Received: from martyn.jago by 88-96-171-138.dsl.zen.co.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 04 Jan 2012 15:35:36 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Since the Makefile is currently getting a refresh I thought it would be very useful to allow running of the regression test suite directly from make using `make test'. The following patch achieves this and allows a user to run the regression test suite on the their system following installation. This makes it super-easy for a user to validate their latest org-mode installation. HTH Best, Martyn --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Add-test-command-to-Makefile.patch Content-Description: add-test-run-capability-to-makefile >From f025591e918d8921eaea0188da0b0da806c8b6f6 Mon Sep 17 00:00:00 2001 From: Martyn Jago Date: Wed, 4 Jan 2012 14:24:27 +0000 Subject: [PATCH] Add test command to Makefile * Makefile: This patch enables `make test' to run the regression tests on the user's system following installation. This makes it super-easy for a user to validate their system. --- Makefile | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/Makefile b/Makefile index 520b0fd..491d761 100644 --- a/Makefile +++ b/Makefile @@ -36,6 +36,9 @@ infodir = $(prefix)/share/info BATCH=$(EMACS) -batch -q -no-site-file -eval \ "(setq load-path (cons (expand-file-name \"./lisp/\") (cons \"$(lispdir)\" load-path)))" $(BATCH_EXTRA) +BATCHTEST=$(EMACS) -Q -batch -l testing/org-test.el \ + -eval "(setq org-confirm-babel-evaluate nil)" -f org-test-run-batch-tests + # Specify the byte-compiler for compiling org-mode files ELC= $(BATCH) -f batch-byte-compile @@ -496,6 +499,9 @@ pushreleasetag: git tag -m "Adding release tag" -a release_$(TAG) git push orgmode@orgmode.org:org-mode.git release_$(TAG) +test: + $(BATCHTEST) + # Dependencies lisp/org.elc: lisp/org-macs.el lisp/org-compat.el lisp/org-faces.el -- 1.7.3.4 --=-=-=--