summaryrefslogtreecommitdiff
path: root/cpan/dist
diff options
context:
space:
mode:
authorfukachan <fukachan>2006-01-04 09:58:52 +0000
committerfukachan <fukachan>2006-01-04 09:58:52 +0000
commit9d9b0c3ac495d94ecbc0b509c43af0e86b5389b2 (patch)
treec8bd627c5613a599fc5517bcaa6527cbf72bb6e6 /cpan/dist
parent30b83896449919a93a663ca122b7dc6582ec18b1 (diff)
downloadfml8-9d9b0c3ac495d94ecbc0b509c43af0e86b5389b2.tar.gz
fml8-9d9b0c3ac495d94ecbc0b509c43af0e86b5389b2.tar.bz2
fml8-9d9b0c3ac495d94ecbc0b509c43af0e86b5389b2.zip
Initial revision
Diffstat (limited to 'cpan/dist')
-rw-r--r--cpan/dist/File-MMagic/META.yml10
-rw-r--r--cpan/dist/File-MMagic/contrib/Build.PL12
-rw-r--r--cpan/dist/File-MMagic/t/03-typecheck.t19
-rw-r--r--cpan/dist/File-MMagic/t/04-string-mod.t19
-rw-r--r--cpan/dist/File-MMagic/t/test-magic1
-rw-r--r--cpan/dist/File-MMagic/t/test.html7
6 files changed, 68 insertions, 0 deletions
diff --git a/cpan/dist/File-MMagic/META.yml b/cpan/dist/File-MMagic/META.yml
new file mode 100644
index 00000000..f87c90dd
--- /dev/null
+++ b/cpan/dist/File-MMagic/META.yml
@@ -0,0 +1,10 @@
+# http://module-build.sourceforge.net/META-spec.html
+#XXXXXXX This is a prototype!!! It will change in the future!!! XXXXX#
+name: File-MMagic
+version: 1.25
+version_from: MMagic.pm
+installdirs: site
+requires:
+
+distribution_type: module
+generated_by: ExtUtils::MakeMaker version 6.17
diff --git a/cpan/dist/File-MMagic/contrib/Build.PL b/cpan/dist/File-MMagic/contrib/Build.PL
new file mode 100644
index 00000000..fa5cfc61
--- /dev/null
+++ b/cpan/dist/File-MMagic/contrib/Build.PL
@@ -0,0 +1,12 @@
+use Module::Build;
+
+my $build = Module::Build->new
+ (
+ module_name => 'File::MMagic',
+ dist_version_from => 'MMagic.pm',
+ license => 'open_source',
+ requires => {'perl' => '5.005'},
+ pm_files => {'MMagic.pm' => 'lib/File/MMagic.pm'},
+ );
+
+$build->create_build_script;
diff --git a/cpan/dist/File-MMagic/t/03-typecheck.t b/cpan/dist/File-MMagic/t/03-typecheck.t
new file mode 100644
index 00000000..73c73e25
--- /dev/null
+++ b/cpan/dist/File-MMagic/t/03-typecheck.t
@@ -0,0 +1,19 @@
+# perl-test
+# $Id$
+
+use strict;
+use Test;
+
+BEGIN { plan tests => 2 };
+
+use File::MMagic;
+
+my $dir = -d 't' ? 't/' : '';
+
+
+my $m1 = File::MMagic->new();
+my $ret = $m1->checktype_filename($dir . 'test.html');
+ok($ret eq 'text/html');
+my $m2 = new File::MMagic;
+$ret = $m2->checktype_filename($dir . 'test.html');
+ok($ret eq 'text/html');
diff --git a/cpan/dist/File-MMagic/t/04-string-mod.t b/cpan/dist/File-MMagic/t/04-string-mod.t
new file mode 100644
index 00000000..0505cd7b
--- /dev/null
+++ b/cpan/dist/File-MMagic/t/04-string-mod.t
@@ -0,0 +1,19 @@
+# perl-test
+# $Id$
+
+use strict;
+use Test;
+
+BEGIN { plan tests => 2 };
+
+use File::MMagic;
+
+my $dir = -d 't' ? 't/' : '';
+
+
+my $m1 = File::MMagic->new($dir . 'test-magic');
+my $ret = $m1->checktype_filename($dir . 'test.html');
+ok($ret eq 'text/html');
+my $m2 = File::MMagic->new();
+$ret = $m2->checktype_filename($dir . 'test.html');
+ok($ret eq 'text/html');
diff --git a/cpan/dist/File-MMagic/t/test-magic b/cpan/dist/File-MMagic/t/test-magic
new file mode 100644
index 00000000..0fbde89b
--- /dev/null
+++ b/cpan/dist/File-MMagic/t/test-magic
@@ -0,0 +1 @@
+0 string/cB \<!DOCTYPE\ html text/html
diff --git a/cpan/dist/File-MMagic/t/test.html b/cpan/dist/File-MMagic/t/test.html
new file mode 100644
index 00000000..bd2b710e
--- /dev/null
+++ b/cpan/dist/File-MMagic/t/test.html
@@ -0,0 +1,7 @@
+<html>
+<head>
+</head>
+<body>
+A test file
+</body>
+</html>