#!/bin/bash # Author: Andreas Roehler # 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 3 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, see . # Commentary: # This script tests Emacs python-mode. # Caveats: # # needs being started in `test' directory # optional shell argument PATH/TO/EMACS-SOURCE-DIRECTORY might be given # # If testing with emacs-24 please be aware of bug 11984 [0], for the # time being the patch will need to be added manually. # # IPython 0.12 due to a bug in argparse requires a patch [1] to work. # # 0. http://debbugs.gnu.org/cgi/bugreport.cgi?bug=11984 # 1. http://bugs.python.org/issue13720 # Code: # if [ -n "$BASH" -o -n "$ZSH_VERSION" ] ; then # hash -r 2>/dev/null # fi # needs being in `test' directory # PCOT=`pwd` PCOT=$PWD # PDIR=".." PDIR=$(cd ..; pwd) # the directory that this file is in. # TESTDIR="$(dirname "$0")" # PDIR="$TESTDIR/.." # write PATH-TO-EMACS source code default directory here EMACS_DEFAULT_DIR="/usr/share/emacs/24.3" EMACS_DIR= if [ $1 ]; then echo "\$1: $1" EMACS_DIR=$1 else EMACS_DIR=$EMACS_DEFAULT_DIR fi # else # cat <