-
Notifications
You must be signed in to change notification settings - Fork 4
/
run-travis-ci.sh
executable file
·142 lines (124 loc) · 4.06 KB
/
run-travis-ci.sh
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
#!/bin/sh
# Author: Andreas Roehler <[email protected]>
# 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 <http://www.gnu.org/licenses/>.
# Commentary:
# This script tests functions from ar-mode.el.
# Code:
if [ $1 == e25 ]; then
export EMACS=$(echo $(alias $1) | sed "s,alias [^~]*.\([^ ]*\).*,$HOME\1,g")
elif
[ $1 == e26 ];then
export EMACS=$(echo $(alias $1) | sed "s,alias [^~]*.\([^ ]*\).*,$HOME\1,g")
elif
[ $1 == e27 ];then
# export EMACS="$HOME/emacs-20220306/src/emacs -Q"
export EMACS=$(echo $(alias $1) | sed "s,alias [^~]*.\([^ ]*\).*,$HOME\1,g")
elif
[ $1 == e28 ];then
export EMACS=$(echo $(alias $1) | sed "s,alias [^~]*.\([^ ]*\).*,$HOME\1,g")
elif
[ $1 == e29 ];then
export EMACS=$(echo $(alias $1) | sed "s,alias [^~]*.\([^ ]*\).*,$HOME\1,g")
else
EMACS=emacs
fi
echo "before shift \$EMACS: $EMACS"
shift
echo "\$*: $*"
PDIR=$PWD
echo "\$PWD: $PWD"
# WERKSTATT set in .bashrc, thus unset remotly
WERKSTATT=${WERKSTATT:=1}
echo "\$WERKSTATT: $WERKSTATT"
TESTDIR=$PDIR/test
export TESTDIR
SETUP=$TESTDIR/simple-paren-setup-ert-tests.el
FILE1=simple-paren.el
TEST1=$TESTDIR/simple-paren-emacs-lisp-tests.el
echo "\$EMACS: $EMACS"
h1() {
date; time -p $EMACS -Q -L . --batch \
--eval "(message (emacs-version))" \
--eval "(require 'ert)" \
--eval "(add-to-list 'load-path \"$TESTDIR/\")" \
-load $FILE1 \
-load $SETUP \
-load $TEST1 \
-f ert-run-tests-batch-and-exit
}
hier () {
$EMACS -Q --batch \
-load $FILE1 \
-load $SETUP \
-l $TEST1 \
-f ert-run-tests-batch-and-exit
}
entfernt () {
$EMACS -Q --batch \
-load $FILE1 \
-load $SETUP \
-l $TEST1 \
-f ert-run-tests-batch-and-exit
}
WERKSTATT=${WERKSTATT:-1}
echo "\$WERKSTATT: $WERKSTATT"
if [ $WERKSTATT -eq 0 ]; then
while getopts 123456789abcdefghijklmnopqrstuvx option
do
case $option in
1) echo "h1: Lade \$TEST1: \"$TEST1\"";h1;;
2) echo "h2: Lade \$TEST2: \"$TEST2\"";h2;;
3) echo "h3: Lade \$TEST3: \"$TEST3\"";h3;;
4) echo "h4: Lade \$TEST4: \"$TEST4\"";h4;;
5) echo "h5: Lade \$TEST5: \"$TEST5\"";h5;;
6) echo "h6: Lade \$TEST6: \"$TEST6\"";h6;;
7) echo "h7: Lade \$TEST7: \"$TEST7\"";h7;;
8) echo "h8: Lade \$TEST8: \"$TEST8\"";h8;;
9) echo "h9: Lade \$TEST9: \"$TEST9\"";h9;;
a) echo "h10: Lade \$TEST10: \"$TEST10\"";h10;;
b) echo "h11: Lade \$TEST11: \"$TEST11\"";h11;;
c) echo "h12: Lade \$TEST12: \"$TEST12\"";h12;;
d) echo "h13: Lade \$TEST13: \"$TEST13\"";h13;;
e) echo "h14: Lade \$TEST14: \"$TEST14\"";h14;;
f) echo "h15: Lade \$TEST15: \"$TEST15\"";h15;;
g) echo "h16: Lade \$TEST16: \"$TEST16\"";h16;;
h) echo "h17: Running python-tests.el";h17;;
i) echo "h18: Lade \$TEST18: \"$TEST18\"";h18;;
j) echo "h19: Lade \$TEST19: \"$TEST19\"";h19;;
k) echo "h20: Lade \$TEST20: \"$TEST20\"";h20;;
# l) echo "h21: Lade \$TEST21: \"$TEST21\"";h21;;
# m) echo "h22: Lade \$TEST22: \"$TEST22\"";h22;;
n) echo "Lade Testumgebung ‘hier’";hier;;
esac
shift
echo "\$*: $*"
EMACS=$1
done
else
echo "entfernt"
echo "\$WERKSTATT: $WERKSTATT"
echo "Lade testumgebung \"ENTFERNT\""
entfernt
fi
# if [ $ORT -eq 0 ]; then
# FILE1=simple-paren.el
# TEST1=test/simple-paren-setup-ert-tests.el
# TEST2=test/simple-paren-emacs-lisp-tests.el
# hier
# else
# FILE1=simple-paren.el
# TEST1=test/simple-paren-setup-ert-tests.el
# TEST2=test/simple-paren-emacs-lisp-tests.el
# echo "entfernt"
# echo "Lade testumgebung \"ENTFERNT\""
# entfernt
# fi