"Fossies" - the Fresh Open Source Software Archive

Member "libzip-1.5.2/regress/runtest.in" (12 Mar 2019, 2269 Bytes) of package /linux/misc/libzip-1.5.2.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Perl source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "runtest.in": 1.3.2_vs_1.4.0.

    1 #!/usr/bin/env perl
    2 
    3 #  runtest -- run regression tests
    4 #  Copyright (C) 2002-2014 Dieter Baron and Thomas Klausner
    5 #
    6 #  This file is part of ckmame, a program to check rom sets for MAME.
    7 #  The authors can be contacted at <ckmame@nih.at>
    8 #
    9 #  Redistribution and use in source and binary forms, with or without
   10 #  modification, are permitted provided that the following conditions
   11 #  are met:
   12 #  1. Redistributions of source code must retain the above copyright
   13 #     notice, this list of conditions and the following disclaimer.
   14 #  2. Redistributions in binary form must reproduce the above copyright
   15 #     notice, this list of conditions and the following disclaimer in
   16 #     the documentation and/or other materials provided with the
   17 #     distribution.
   18 #  3. The names of the authors may not be used to endorse or promote
   19 #     products derived from this software without specific prior
   20 #     written permission.
   21 # 
   22 #  THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
   23 #  OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
   24 #  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   25 #  ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
   26 #  DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   27 #  DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
   28 #  GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   29 #  INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
   30 #  IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
   31 #  OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
   32 #  IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   33 
   34 
   35 use strict;
   36 
   37 BEGIN { push @INC, '@abs_srcdir@'; }
   38 
   39 use NiHTest;
   40 
   41 my $test = NiHTest::new({ default_program => 'ziptool_regress', srcdir => '@srcdir@', top_builddir => '@top_builddir@', zipcmp => '../../src/zipcmp', zipcmp_flags => '-p' });
   42 
   43 sub mangle_test {
   44     my ($test, $variant) = @_;
   45 
   46     if (defined($test->{test}->{preload})) {
   47         if (!defined($test->{test}->{features})) {
   48             $test->{test}->{features} = [];
   49         }
   50         push @{$test->{test}->{features}}, 'SHARED';
   51     }
   52 
   53     return 1;
   54 }
   55 
   56 
   57 $test->add_comparator('zip/zip', \&NiHTest::comparator_zip);
   58 $test->add_hook('post_parse', \&mangle_test);
   59 
   60 $test->run(@ARGV);