minidump_dump_test revision 7daf246e4baf0837e25429668cc23e92b6afe3b3
13261e8b6eac44a41341f112821482bee6c940c98mmentovai#!/bin/sh 27daf246e4baf0837e25429668cc23e92b6afe3b3mmentovai 37daf246e4baf0837e25429668cc23e92b6afe3b3mmentovai# Copyright (c) 2006, Google Inc. 47daf246e4baf0837e25429668cc23e92b6afe3b3mmentovai# All rights reserved. 57daf246e4baf0837e25429668cc23e92b6afe3b3mmentovai# 67daf246e4baf0837e25429668cc23e92b6afe3b3mmentovai# Redistribution and use in source and binary forms, with or without 77daf246e4baf0837e25429668cc23e92b6afe3b3mmentovai# modification, are permitted provided that the following conditions are 87daf246e4baf0837e25429668cc23e92b6afe3b3mmentovai# met: 97daf246e4baf0837e25429668cc23e92b6afe3b3mmentovai# 107daf246e4baf0837e25429668cc23e92b6afe3b3mmentovai# * Redistributions of source code must retain the above copyright 117daf246e4baf0837e25429668cc23e92b6afe3b3mmentovai# notice, this list of conditions and the following disclaimer. 127daf246e4baf0837e25429668cc23e92b6afe3b3mmentovai# * Redistributions in binary form must reproduce the above 137daf246e4baf0837e25429668cc23e92b6afe3b3mmentovai# copyright notice, this list of conditions and the following disclaimer 147daf246e4baf0837e25429668cc23e92b6afe3b3mmentovai# in the documentation and/or other materials provided with the 157daf246e4baf0837e25429668cc23e92b6afe3b3mmentovai# distribution. 167daf246e4baf0837e25429668cc23e92b6afe3b3mmentovai# * Neither the name of Google Inc. nor the names of its 177daf246e4baf0837e25429668cc23e92b6afe3b3mmentovai# contributors may be used to endorse or promote products derived from 187daf246e4baf0837e25429668cc23e92b6afe3b3mmentovai# this software without specific prior written permission. 197daf246e4baf0837e25429668cc23e92b6afe3b3mmentovai# 207daf246e4baf0837e25429668cc23e92b6afe3b3mmentovai# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 217daf246e4baf0837e25429668cc23e92b6afe3b3mmentovai# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 227daf246e4baf0837e25429668cc23e92b6afe3b3mmentovai# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 237daf246e4baf0837e25429668cc23e92b6afe3b3mmentovai# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 247daf246e4baf0837e25429668cc23e92b6afe3b3mmentovai# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 257daf246e4baf0837e25429668cc23e92b6afe3b3mmentovai# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 267daf246e4baf0837e25429668cc23e92b6afe3b3mmentovai# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 277daf246e4baf0837e25429668cc23e92b6afe3b3mmentovai# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 287daf246e4baf0837e25429668cc23e92b6afe3b3mmentovai# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 297daf246e4baf0837e25429668cc23e92b6afe3b3mmentovai# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 307daf246e4baf0837e25429668cc23e92b6afe3b3mmentovai# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 317daf246e4baf0837e25429668cc23e92b6afe3b3mmentovai 323261e8b6eac44a41341f112821482bee6c940c98mmentovaitestdata_dir=$srcdir/src/processor/testdata 333261e8b6eac44a41341f112821482bee6c940c98mmentovai./src/processor/minidump_dump $testdata_dir/minidump1.dmp | \ 343261e8b6eac44a41341f112821482bee6c940c98mmentovai tr -s '\015' '\012' | \ 353261e8b6eac44a41341f112821482bee6c940c98mmentovai diff -u $testdata_dir/minidump1.out - 363261e8b6eac44a41341f112821482bee6c940c98mmentovaiexit $? 37