Skip to content

Commit

Permalink
A loadability test to prevent fuckups
Browse files Browse the repository at this point in the history
  • Loading branch information
espenhw committed Mar 20, 2009
1 parent b1845f2 commit ed198d2
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
16 changes: 16 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,22 @@
</arguments>
</configuration>
</execution>
<execution>
<id>run-loadability-test</id>
<phase>test</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>emacs</executable>
<arguments>
<argument>-Q</argument>
<argument>--batch</argument>
<argument>-l</argument>
<argument>src/test/lisp/load-all.el</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
Expand Down
24 changes: 24 additions & 0 deletions src/test/lisp/load-all.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
;; Copyright (c) 2009 Espen Wiborg <espenhw@grumblesmurf.org>
;;
;; This program 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 2 of the
;; License, or (at your option) any later version.
;;
;; This program 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, write to the Free Software
;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
;; 02110-1301 USA.
;;
(when load-file-name
(add-to-list 'load-path (replace-regexp-in-string "test" "main"
(file-name-directory load-file-name)
t t)))

(require 'cedet)
(require 'malabar-mode)

0 comments on commit ed198d2

Please sign in to comment.