diff options
author | Romain d'Alverny <rda@mageia.org> | 2012-02-17 17:58:35 +0000 |
---|---|---|
committer | Romain d'Alverny <rda@mageia.org> | 2012-02-17 17:58:35 +0000 |
commit | 9e4bd485b397e7ff07d9023ef49dc977f97b2b12 (patch) | |
tree | b20ed1a618379d114495f72f239b94bfef34bee7 | |
parent | 948c8aee6d39393232da08e97d66a50de4355092 (diff) | |
download | isocheck-9e4bd485b397e7ff07d9023ef49dc977f97b2b12.tar isocheck-9e4bd485b397e7ff07d9023ef49dc977f97b2b12.tar.gz isocheck-9e4bd485b397e7ff07d9023ef49dc977f97b2b12.tar.bz2 isocheck-9e4bd485b397e7ff07d9023ef49dc977f97b2b12.tar.xz isocheck-9e4bd485b397e7ff07d9023ef49dc977f97b2b12.zip |
rename to isocheck.pl + updated TODO + obsolete Tools.pm
-rw-r--r-- | README.txt | 8 | ||||
-rw-r--r-- | Tools.pm | 58 | ||||
-rw-r--r-- | isocheck.pl (renamed from test_iso.pl) | 0 |
3 files changed, 8 insertions, 58 deletions
@@ -62,6 +62,14 @@ TODO * separate tests that are generic from those that are Mageia-specific * move specific tests into t/{name}/*.t - script should be run by a non-root user that can sudo mount + - check all RPM from list are on the ISO + - check all excluded RPMS are not on the ISO + - check pubkey on each media + - check the Theme available on the ISO + - check the mandriva-release version on the ISO + - check DKMS are sync with kernel on ISO + - check product.id on the ISO (vendor=Mandriva,distribution=Mandriva Linux,type=basic,version=Mandriva,branch=official,release=0.1,arch=x86_64,product=public + - check releases_notes on the ISO Style diff --git a/Tools.pm b/Tools.pm deleted file mode 100644 index 43ebeaa..0000000 --- a/Tools.pm +++ /dev/null @@ -1,58 +0,0 @@ -# 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. -# -# -# - -package Tools; - -use strict; -use warnings; - -our $VERSION = '0.1'; - -use base 'Exporter'; - -our @EXPORT = qw(parse_mageia_iso_name); - -# Check image filename if it is valid (see https://wiki.mageia.org/en/Product_naming) -# -# In: filename -# Out: populated hash if valid, empty hash otherwise. -# -sub parse_mageia_iso_name { - my ($name) = @_; - my %info; - - if ($name =~ m/^(Mageia)-(\d+)(-((nightly|alpha|beta|RC)\d*))?(-(.*))?-(i586|x86_64|dual)?(-(CD|DVD|BR))?(-(build_\w+))?\.(.*)$/) { - $info{full} = `echo $name | sed 's/.iso//g' | tr -d '\n'`; - $info{name} = $1 if defined $1; - $info{version} = $2 if defined $2; - $info{release} = $4 if defined $4; - $info{variant} = $7 if defined $7; - $info{arch} = $8 if defined $8; - $info{medium} = $10 if defined $10; - $info{build} = $12 if defined $12; - $info{ext} = $13 if defined $13; - } - - return %info; -} - -1; diff --git a/test_iso.pl b/isocheck.pl index 446b5ad..446b5ad 100644 --- a/test_iso.pl +++ b/isocheck.pl |