2
# ``The contents of this file are subject to the Erlang Public License,
3
# Version 1.1, (the "License"); you may not use this file except in
4
# compliance with the License. You should have received a copy of the
5
# Erlang Public License along with this software. If not, it can be
6
# retrieved via the world wide web at http://www.erlang.org/.
8
# Software distributed under the License is distributed on an "AS IS"
9
# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
10
# the License for the specific language governing rights and limitations
13
# The Initial Developer of the Original Code is Ericsson Utvecklings AB.
14
# Portions created by Ericsson are Copyright 1999, Ericsson Utvecklings
15
# AB. All Rights Reserved.''
20
# Author: Hakan Mattsson <hakan@erix.ericsson.se>
21
# Purpose: Simplified execution of the test suite
23
# Usage: mt <args to erlang startup script>
26
top="$ERL_TOP/lib/mnesia"
28
p="-pa $top/examples -pa $top/ebin -pa $top/test -mnesia_test_verbose true"
30
latest=test_log_latest
32
erlcmd="erl -sname a $p $args -mnesia_test_timeout"
33
erlcmd1="erl -sname a1 $p $args"
34
erlcmd2="erl -sname a2 $p $args"
36
xterm -geometry 70x20+0+550 -T a1 -e $erlcmd1 &
37
xterm -geometry 70x20+450+550 -T a2 -e $erlcmd2 &
39
rm "$latest" 2>/dev/null
40
ln -s "$log" "$latest"
49
echo "Give the following command in order to see the outcome from node a@$h"":"
51
echo " less test_log$$"
54
if [ "$ostype" = "SunOS" ] ; then
55
/usr/openwin/bin/xterm -geometry 145x40+0+0 -T a -l -lf "$log" -e $erlcmd &
57
xterm -geometry 145x40+0+0 -T a -e script -f -c "$erlcmd" "$log" &
59
tail -f "$log" | egrep 'Eval|<>ERROR|NYI'