[Pkg-jed-commit] r1048 - jed-extra/trunk/utils

Guenter Milde milde-guest at alioth.debian.org
Fri Feb 8 15:08:43 UTC 2008


Author: milde-guest
Date: 2008-02-08 15:08:43 +0000 (Fri, 08 Feb 2008)
New Revision: 1048

Added:
   jed-extra/trunk/utils/do-unittests.sh
Removed:
   jed-extra/trunk/utils/do-unittests.sl
Log:
Convert test runner to an executable shell script

Copied: jed-extra/trunk/utils/do-unittests.sh (from rev 1046, jed-extra/trunk/utils/do-unittests.sl)
===================================================================
--- jed-extra/trunk/utils/do-unittests.sh	                        (rev 0)
+++ jed-extra/trunk/utils/do-unittests.sh	2008-02-08 15:08:43 UTC (rev 1048)
@@ -0,0 +1,32 @@
+# do-unittests.sh: run jed-extra unit-tests
+              
+# Copyright (c) 2006 Günter Milde
+# Released under the terms of the GNU General Public License (ver. 2 or later)
+
+# Usage
+# -----
+  
+# run the tests with e.g. ::
+
+# Versions
+# --------
+
+# 0.1    2006-03-03  initial try
+# 0.1.1  2007-10-15  documentation and bug fixes
+# 0.2    2008-02-07  shell skript instead of S-Lang script
+
+
+# the S-Lang function for running the tests 
+# output written to testreport.txt in the pwd
+TESTFUN='test_files_and_exit("/usr/share/jed/jed-extra/tests/*.sl")'
+
+# jed (without X)
+LANG=en_US; jed -n -l extra/unittest.sl -f $TESTFUN
+
+# xjed and standard emulation (usually emacs)   
+LANG=en_US; xjed -n -l extra/unittest.sl -f $TESTFUN
+
+# unicode enabled xjed
+LANG=en_US.UTF-8; xjed -n -l extra/unittest.sl -f $TESTFUN
+
+

Deleted: jed-extra/trunk/utils/do-unittests.sl
===================================================================
--- jed-extra/trunk/utils/do-unittests.sl	2008-02-06 16:37:51 UTC (rev 1047)
+++ jed-extra/trunk/utils/do-unittests.sl	2008-02-08 15:08:43 UTC (rev 1048)
@@ -1,32 +0,0 @@
-% do-unittests.sl: run the unit-tests in the /tests/ subdir
-%               
-% Copyright (c) 2006 Günter Milde
-% Released under the terms of the GNU General Public License (ver. 2 or later)
-%
-% Usage
-% -----
-%   
-% run the tests with e.g. ::
-% 
-%     jed -n -l ./do-unittests.sl
-%     
-% or::
-% 
-%      jed -n do-unittests.sl
-%      
-%      M-x evalbuffer
-%
-% Versions
-% --------
-% 
-% 0.1    2006-03-03  initial try
-% 0.1.1  2007-10-15  documentation and bug fixes
-
-
-% eval unittest.sl from the extra section
-require("extra/unittest.sl");
-
-% ignore interactive tests
-
-% test-run the 
-test_files_and_exit("/usr/share/jed/jed-extra/tests/*.sl");




More information about the Pkg-jed-commit mailing list