Skip to content

Commit

Permalink
Merge pull request #33 from gracjan/pr-add-first-test-for-elisp
Browse files Browse the repository at this point in the history
Add first test for elisp
  • Loading branch information
alanz committed Oct 4, 2015
2 parents 6071b34 + 35e2f17 commit e83aec7
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Expand Up @@ -21,12 +21,14 @@ addons:
apt:
sources:
- hvr-ghc
- cassou-emacs
packages:
- libgmp-dev
- cabal-install-1.22
- happy-1.19.4
- alex-3.1.3
- ghc-7.10.2
- emacs24

# matrix:
# allow_failures:
Expand Down Expand Up @@ -81,6 +83,8 @@ script:
- cabal haddock
- cabal check
- cabal sdist # tests that a source-distribution can be generated
- emacs --version
- emacs -Q --batch -L elisp -l elisp/tests/hare-tests.el -f ert-run-tests-batch-and-exit

# The following scriptlet checks that the resulting source distribution can be built & installed
# - export SRC_TGZ=$(cabal info . | awk '{print $2 ".tar.gz";exit}') ;
Expand Down
25 changes: 25 additions & 0 deletions elisp/tests/hare-tests.el
@@ -0,0 +1,25 @@
;;; hare-tests.el ---

;; Copyright (c) 2015 Gracjan Polak. All rights reserved.

;; This file is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 3, or (at your option)
;; any later version.

;; This file is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.

;; You should have received a copy of the GNU General Public License
;; along with this program. If not, see <http://www.gnu.org/licenses/>.

;;; Code:

(require 'ert)
(require 'hare)

(ert-deftest loading-test ())

(provide 'hare-tests)

0 comments on commit e83aec7

Please sign in to comment.