diff options
author | Romain d'Alverny <rda@mageia.org> | 2012-02-17 17:54:36 +0000 |
---|---|---|
committer | Romain d'Alverny <rda@mageia.org> | 2012-02-17 17:54:36 +0000 |
commit | 7a5cac718aa056abe96eafe8e910ec256dd3793d (patch) | |
tree | 3be419acbcd840864d045826ae6e33904e0785bc /image_tests/install_iso/012_check_ids.t | |
parent | 10afa7f61593c6ee82f7256c5dfa29104ba19e52 (diff) | |
download | isocheck-7a5cac718aa056abe96eafe8e910ec256dd3793d.tar isocheck-7a5cac718aa056abe96eafe8e910ec256dd3793d.tar.gz isocheck-7a5cac718aa056abe96eafe8e910ec256dd3793d.tar.bz2 isocheck-7a5cac718aa056abe96eafe8e910ec256dd3793d.tar.xz isocheck-7a5cac718aa056abe96eafe8e910ec256dd3793d.zip |
Move all image-related tests in a separate place.
Diffstat (limited to 'image_tests/install_iso/012_check_ids.t')
-rw-r--r-- | image_tests/install_iso/012_check_ids.t | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/image_tests/install_iso/012_check_ids.t b/image_tests/install_iso/012_check_ids.t new file mode 100644 index 0000000..56eed85 --- /dev/null +++ b/image_tests/install_iso/012_check_ids.t @@ -0,0 +1,41 @@ +# This file is part of the Mageia project +# Copyright (C) 2011 Damien Lallement <dams@mageia.org> +# (C) 2011 Romain D'Alverny <rda@mageia.org> +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Library General Public +# License as published by the Free Software Foundation; either +# version 2 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Library General Public License for more details. +# +# You should have received a copy of the GNU Library General Public License +# along with this library; see the file COPYING.LIB. If not, write to +# the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +# Boston, MA 02110-1301, USA. +# +# +# Check if PCI ids are on the ISO +# + +use Test::Most tests => 1; +use File::Basename; + +my ($image_path) = @ARGV; + +bail_on_fail; + +my $valid; +my $valid2; + +$valid = -r "/media/iso_check/i586/isolinux/pci.ids" if -r "/media/iso_check/i586"; +$valid2 = -r "/media/iso_check/x86_64/isolinux/pci.ids" if -r "/media/iso_check/x86_64"; +$valid &= $valid2 if -r "/media/iso_check/x86_64" && -r "/media/iso_check/i586"; +$valid = $valid2 if -r "/media/iso_check/x86_64" && !$valid; + +ok($valid, 'HDT can find pci.ids.'); + +done_testing(); |