Skip to content

Commit

Permalink
Add script for starting a vanilla emacs with el-get loaded
Browse files Browse the repository at this point in the history
Unlike the other test scripts, this doesn't run a test or install a
recipe or anything. It just opens up emacs with el-get ready to go so
you can do manual testing.
  • Loading branch information
DarwinAwardWinner committed May 6, 2012
1 parent 3b7777b commit 4b86f11
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions test/test-interactive.sh
@@ -0,0 +1,19 @@
#!/bin/sh

set_default () {
eval "
if [ -z \$$1 ]; then
$1=$2
fi
"
}

set_default EL_GET_LIB_DIR "$(dirname "$(dirname "$(readlink -f "$0")")")"
set_default TMPDIR "$(dirname "$(mktemp --dry-run)")"
set_default TEST_HOME "$TMPDIR/el-get-test-home"
set_default EMACS "$(which emacs)"

mkdir -p "$TEST_HOME"/.emacs.d
rm -rf "$TEST_HOME"/.emacs.d/el-get/
HOME="$TEST_HOME" "$EMACS" -Q -L "$EL_GET_LIB_DIR" \
-l "$EL_GET_LIB_DIR/el-get.el" -l "$EL_GET_LIB_DIR/test/test-setup.el"

0 comments on commit 4b86f11

Please sign in to comment.