"Fossies" - the Fresh Open Source Software Archive

Member "eprints3.4-3.4.4/tests/10_xml_libxml.pl" (7 Aug 2022, 1537 Bytes) of package /linux/www/eprints3.4-3.4.4.tar.gz:


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 latest Fossies "Diffs" side-by-side code changes report for "10_xml_libxml.pl": 3.4-3.4.3_vs_3.4-3.4.4.

    1 use strict;
    2 use Test::More;
    3 
    4 BEGIN {
    5     eval "require XML::LibXML;";
    6     if( $@ || XML::LibXML->VERSION lt v1.66 )
    7     {
    8         plan skip_all => "XML::LibXML 1.66+ missing";
    9     }
   10     else
   11     {
   12         plan tests => 12;
   13     }
   14 }
   15 
   16 use EPrints::SystemSettings;
   17 $EPrints::SystemSettings::conf->{enable_gdome} = 0;
   18 $EPrints::SystemSettings::conf->{enable_libxml} = 1;
   19 use_ok( "EPrints" );
   20 use_ok( "EPrints::Test" );
   21 use_ok( "EPrints::Test::XML" );
   22 $EPrints::XML::CLASS = $EPrints::XML::CLASS; # suppress used-only-once warning
   23 BAIL_OUT( "Didn't load expected XML library" )
   24     if $EPrints::XML::CLASS ne "EPrints::XML::LibXML";
   25 
   26 my $repo = EPrints::Test::get_test_repository();
   27 
   28 &EPrints::Test::XML::xml_tests( $repo );
   29 
   30 ok(1);
   31 
   32 =head1 COPYRIGHT
   33 
   34 =for COPYRIGHT BEGIN
   35 
   36 Copyright 2022 University of Southampton.
   37 EPrints 3.4 is supplied by EPrints Services.
   38 
   39 http://www.eprints.org/eprints-3.4/
   40 
   41 =for COPYRIGHT END
   42 
   43 =for LICENSE BEGIN
   44 
   45 This file is part of EPrints 3.4 L<http://www.eprints.org/>.
   46 
   47 EPrints 3.4 and this file are released under the terms of the
   48 GNU Lesser General Public License version 3 as published by
   49 the Free Software Foundation unless otherwise stated.
   50 
   51 EPrints 3.4 is distributed in the hope that it will be useful,
   52 but WITHOUT ANY WARRANTY; without even the implied warranty of
   53 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
   54 See the GNU Lesser General Public License for more details.
   55 
   56 You should have received a copy of the GNU Lesser General Public
   57 License along with EPrints 3.4.
   58 If not, see L<http://www.gnu.org/licenses/>.
   59 
   60 =for LICENSE END
   61