~ubuntu-branches/ubuntu/precise/kompozer/precise

« back to all changes in this revision

Viewing changes to mozilla/layout/html/tests/style/rtest.sh

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Yarusso
  • Date: 2007-08-27 01:11:03 UTC
  • Revision ID: james.westby@ubuntu.com-20070827011103-2jgf4s6532gqu2ka
Tags: upstream-0.7.10
ImportĀ upstreamĀ versionĀ 0.7.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
# Table regression tests.
 
4
#
 
5
# How to run:
 
6
# 1. Before you make changes, run:
 
7
#    rtest.sh baseline
 
8
# 2. Make your changes and rebuild
 
9
# 3. rtest.sh verify >outfilename
 
10
#
 
11
# This unfortunately doesn't work if you build in a separate objdir.
 
12
# If you do, you'll set the MOZILLA_FIVE_HOME variable below to point
 
13
# to your objdir.
 
14
# To fix this we'd need to make a Makefile.in for this directory
 
15
# and patch in the objdir from the build system.
 
16
#
 
17
 
 
18
dirs="base"
 
19
 
 
20
# Set a bunch of environment vars needed by runtests.sh or viewer:
 
21
MOZ_SRC=`pwd | sed "s_/mozilla/layout/html/tests/style__"`
 
22
export MOZ_SRC
 
23
 
 
24
# Insert objdir between mozilla and dist if necessary:
 
25
MOZILLA_FIVE_HOME=$MOZ_SRC/mozilla/dist/bin
 
26
export MOZILLA_FIVE_HOME
 
27
 
 
28
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$MOZILLA_FIVE_HOME
 
29
export LD_LIBRARY_PATH
 
30
 
 
31
case $1 in
 
32
  baseline|verify|clean)
 
33
    ;;
 
34
  *)
 
35
    echo "Usage: $0 baseline|verify|clean"
 
36
    exit 1
 
37
    ;;
 
38
esac
 
39
 
 
40
for i in $dirs; do
 
41
  cd $i
 
42
  echo $cmd in $i
 
43
  ../runtests.sh $1
 
44
  cd ..
 
45
done