~ubuntu-branches/ubuntu/raring/babel/raring-proposed

« back to all changes in this revision

Viewing changes to regression/wrapper/runSIDL/runSIDL.sh.in

  • Committer: Bazaar Package Importer
  • Author(s): Adam C. Powell, IV
  • Date: 2008-08-01 07:56:58 UTC
  • mfrom: (3.1.2 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080801075658-9ezcrbh8dcs8lg70
Tags: 1.2.0.dfsg-6
Added libparsifal-dev as dependency to libsidl-dev (closes: #483324).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
## File:        runSIDL.sh
 
3
## Package:     Babel regression driver
 
4
## Revision:    $Revision: 4618 $
 
5
## Modified:    $Date: 2005-05-09 15:54:29 -0700 (Mon, 09 May 2005) $
 
6
## Description: regression driver for sidl generation tests
 
7
##
 
8
## Copyright (c) 2003, The Regents of the University of Calfornia.
 
9
## Produced at the Lawrence Livermore National Laboratory.
 
10
## Written by the Components Team <components@llnl.gov>
 
11
## UCRL-CODE-2002-054
 
12
## All rights reserved.
 
13
##
 
14
## This file is part of Babel. For more information, see
 
15
## http:##www.llnl.gov/CASC/components/. Please read the COPYRIGHT file
 
16
## for Our Notice and the LICENSE file for the GNU Lesser General Public
 
17
## License.
 
18
##
 
19
## This program is free software; you can redistribute it and/or modify it
 
20
## under the terms of the GNU Lesser General Public License (as published by
 
21
## the Free Software Foundation) version 2.1 dated February 1999.
 
22
##
 
23
## This program is distributed in the hope that it will be useful, but
 
24
## WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF
 
25
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and
 
26
## conditions of the GNU Lesser General Public License for more details.
 
27
##
 
28
## You should have recieved a copy of the GNU Lesser General Public License
 
29
## along with this program; if not, write to the Free Software Foundation,
 
30
## Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 
31
 
 
32
 
 
33
#
 
34
# Run the tests
 
35
#
 
36
 
 
37
echo "TEST_BEGIN 1 wrapper.sidl->sidl"
 
38
echo "PART 1"
 
39
diff ./sidl/wrapper.sidl ./xml/wrapper.sidl > /dev/null \
 
40
     && (echo "RESULT 1 PASS" && echo "TEST_RESULT PASS") \
 
41
     || (echo "RESULT 1 FAIL" && echo "TEST_RESULT FAIL") 
 
42
 
 
43
echo
 
44
echo "TEST_BEGIN 1 wrapper.Data.XML->XML"
 
45
echo "PART 1"
 
46
grep -v Metadata ./xml/wrapper.Data-*.xml > temp
 
47
grep -v Metadata ./xml2/wrapper.Data-*.xml > temp2
 
48
diff temp temp2 > /dev/null \
 
49
     && (echo "RESULT 1 PASS" && echo "TEST_RESULT PASS") \
 
50
     || (echo "RESULT 1 FAIL" && echo "TEST_RESULT FAIL") 
 
51
echo
 
52
echo "TEST_BEGIN 1 wrapper.User.XML->XML"
 
53
echo "PART 1"
 
54
grep -v Metadata ./xml/wrapper.User-*.xml > temp
 
55
grep -v Metadata ./xml2/wrapper.User-*.xml > temp2
 
56
diff temp temp2 > /dev/null \
 
57
     && (echo "RESULT 1 PASS" && echo "TEST_RESULT PASS") \
 
58
     || (echo "RESULT 1 FAIL" && echo "TEST_RESULT FAIL") 
 
59
echo
 
60
echo "TEST_BEGIN 1 wrapper.XML->XML"
 
61
echo "PART 1"
 
62
grep -v Metadata ./xml/wrapper-*.xml > temp
 
63
grep -v Metadata ./xml2/wrapper-*.xml > temp2
 
64
diff temp temp2 > /dev/null \
 
65
     && (echo "RESULT 1 PASS" && echo "TEST_RESULT PASS") \
 
66
     || (echo "RESULT 1 FAIL" && echo "TEST_RESULT FAIL") 
 
67
 
 
68
rm -f temp temp2