[go: up one dir, main page]

Menu

[f833ca]: / tests / cit-test.sh  Maximize  Restore  History

Download this file

27 lines (21 with data), 673 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh
EMACS=${EMACS:-emacs}
STYLE=$1
if [ -z $1 ]; then
STYLE=Make
fi
# Further Emacs options (like --batch)
OPTIONS=$2
cd ..
$EMACS $OPTIONS -q -l cedet-devel-load.el -l tests/cit-load.el -f toggle-debug-on-error -f toggle-debug-on-quit --eval '(setq ede-project-directories t)' -f cedet-integ-test-${STYLE}
EXITCODE=$?
if [ $EXITCODE -eq 0 ]; then
# Reverse the meaning of a 0 exit status, as the user had to quit Emacs.
exit 1
elif [ $EXITCODE -eq 1 ]; then
# On success, the program kills emacs with 1 (to be different.)
exit 0
else
# Otherwise, Emacs might have an error running in batch mode, and we return it.
exit $EXITCODE
fi