~a-roehler/python-mode/XEmacs-compat-test

« back to all changes in this revision

Viewing changes to test/python-mode-tests.sh

  • Committer: Andreas Roehler
  • Date: 2011-10-27 10:14:29 UTC
  • Revision ID: andreas.roehler@online.de-20111027101429-1f5sg5jj4ro3ar5k
Pymacs integrated

No separate install required any more, works
out-of-the-box.

Customize `py-install-directory', if Pymacs should run from
other place than default set by python-mode.el.

If `py-install-directory' is nil, python-mode assumes
 it's default directory `pymacs' beneath location where
 python-mode.el resides

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
# assumes python-mode files in current directory
26
26
 
27
27
# the path
 
28
# needs being in `test' directory
28
29
PDIR=`pwd`
29
30
 
 
31
 
30
32
# write PATH-TO-EMACS source code directory here
31
33
# EMACS_SOURCE_DIR="$HOME/emacs-20110426"
32
34
EMACS_SOURCE_DIR=
53
55
# when installed Emacs shall be used, CCCMDS must be set
54
56
# CCCMDS="${EMACS_SOURCE_DIR}/lisp/progmodes/cc-cmds.el"
55
57
 
56
 
MODEDIR=${PDIR%%/test}
57
 
echo "\$MODEDIR: $MODEDIR"
58
 
 
59
58
# ERG=$(echo $LOGNAME | sed 's/^s\(.*\)/m/')
60
59
# if [ $ERG == "m" ]; then
61
60
 
65
64
    # EMACS_SOURCE_DIR="~/emacs-20110426"
66
65
# fi
67
66
 
 
67
CLMACS="${EMACS_SOURCE_DIR}/lisp/emacs-lisp/cl-macs.el"
 
68
BYTECOMP="${EMACS_SOURCE_DIR}/lisp/emacs-lisp/bytecomp.el"
 
69
CUSTOM="${EMACS_SOURCE_DIR}/lisp/custom.el"
 
70
ANSICOLOR="${EMACS_SOURCE_DIR}/lisp/ansi-color.el"
 
71
COMINT="${EMACS_SOURCE_DIR}/lisp/comint.el"
68
72
CCCMDS="${EMACS_SOURCE_DIR}/lisp/progmodes/cc-cmds.el"
69
73
SHELL="${EMACS_SOURCE_DIR}/lisp/shell.el"
 
74
PYMACS="../pymacs/pymacs.el"
70
75
# file holding the tests
71
76
TESTFILE="py-bug-numbered-tests.el"
72
77
TESTFILE2="python-mode-test.el"
73
78
 
74
 
$EMACS -Q --batch --eval "(message (emacs-version))" --eval "(when (featurep 'python-mode)(unload-feature 'python-mode t))" --eval "(add-to-list 'load-path \"$PDIR/\")" --eval "(add-to-list 'load-path \"$MODEDIR/\")" --eval "(setq py-install-directory \"../\")" -load "$PDIR/$PYTHONMODE" -load "$PDIR/$TESTFILE" -load "$PDIR/$TESTFILE2" -load $CCCMDS -load $SHELL --eval "(quietly-read-abbrev-file (expand-file-name \"~/.abbrev_defs\"))" \
 
79
echo "\$PYMACS: $PYMACS"
 
80
 
 
81
$EMACS -Q --batch --eval "(message (emacs-version))" --eval "(when (featurep 'python-mode)(unload-feature 'python-mode t))" --eval "(add-to-list 'load-path \"$PDIR/\")" --eval "(add-to-list 'load-path \"$TESTDIR/\")" --eval "(setq py-install-directory \"..\")" -load "$PYMACS" -load $CCCMDS -load $COMINT -load $SHELL -load $ANSICOLOR -load $CLMACS -load $BYTECOMP -load $CUSTOM -load "$PDIR/$PYTHONMODE" -load "$PDIR/$TESTFILE" -load "$PDIR/$TESTFILE2" --eval "(quietly-read-abbrev-file (expand-file-name \"~/.abbrev_defs\"))" \
75
82
--funcall nested-dictionaries-indent-lp:328791-test \
76
83
--funcall triple-quoted-string-dq-lp:302834-test \
77
84
--funcall fore-00007F-breaks-indentation-lp:328788-test \