~ubuntu-branches/ubuntu/trusty/erlang/trusty

« back to all changes in this revision

Viewing changes to lib/mnesia/test/mt

  • Committer: Bazaar Package Importer
  • Author(s): Clint Byrum
  • Date: 2011-05-05 15:48:43 UTC
  • mfrom: (3.5.13 sid)
  • Revision ID: james.westby@ubuntu.com-20110505154843-0om6ekzg6m7ugj27
Tags: 1:14.b.2-dfsg-3ubuntu1
* Merge from debian unstable.  Remaining changes:
  - Drop libwxgtk2.8-dev build dependency. Wx isn't in main, and not
    supposed to.
  - Drop erlang-wx binary.
  - Drop erlang-wx dependency from -megaco, -common-test, and -reltool, they
    do not really need wx. Also drop it from -debugger; the GUI needs wx,
    but it apparently has CLI bits as well, and is also needed by -megaco,
    so let's keep the package for now.
  - debian/patches/series: Do what I meant, and enable build-options.patch
    instead.
* Additional changes:
  - Drop erlang-wx from -et
* Dropped Changes:
  - patches/pcre-crash.patch: CVE-2008-2371: outer level option with
    alternatives caused crash. (Applied Upstream)
  - fix for ssl certificate verification in newSSL: 
    ssl_cacertfile_fix.patch (Applied Upstream)
  - debian/patches/series: Enable native.patch again, to get stripped beam
    files and reduce the package size again. (build-options is what
    actually accomplished this)
  - Remove build-options.patch on advice from upstream and because it caused
    odd build failures.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh -f
 
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/.
 
7
 
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
 
11
# under the License.
 
12
 
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.''
 
16
 
17
#     $Id$
 
18
#
 
19
#
 
20
# Author: Hakan Mattsson <hakan@erix.ericsson.se>
 
21
# Purpose: Simplified execution of the test suite
 
22
#    
 
23
# Usage: mt <args to erlang startup script>
 
24
 
 
25
#top=".."
 
26
top="$ERL_TOP/lib/mnesia"
 
27
h=`hostname`
 
28
p="-pa $top/examples -pa $top/ebin -pa $top/test -mnesia_test_verbose true"
 
29
log=test_log$$
 
30
latest=test_log_latest
 
31
args=${1+"$@"}
 
32
erlcmd="erl -sname a $p $args -mnesia_test_timeout"
 
33
erlcmd1="erl -sname a1 $p $args"
 
34
erlcmd2="erl -sname a2 $p $args"
 
35
 
 
36
xterm -geometry 70x20+0+550 -T a1 -e $erlcmd1 &
 
37
xterm -geometry 70x20+450+550 -T a2 -e $erlcmd2 &
 
38
 
 
39
rm "$latest" 2>/dev/null
 
40
ln -s "$log" "$latest"
 
41
touch "$log"
 
42
 
 
43
echo "$erlcmd1"
 
44
echo ""
 
45
echo "$erlcmd2"
 
46
echo ""
 
47
echo "$erlcmd"
 
48
echo ""
 
49
echo "Give the following command in order to see the outcome from node a@$h"":"
 
50
echo ""
 
51
echo "  less test_log$$"
 
52
 
 
53
ostype=`uname -s`
 
54
if [ "$ostype" = "SunOS" ] ; then 
 
55
  /usr/openwin/bin/xterm -geometry 145x40+0+0 -T a -l -lf "$log" -e $erlcmd &
 
56
else
 
57
  xterm -geometry 145x40+0+0 -T a -e script -f -c "$erlcmd" "$log"  &
 
58
fi
 
59
tail -f "$log" | egrep 'Eval|<>ERROR|NYI'
 
60