@@ -25,13 +25,13 @@ my $modules = $test_dir->child('modules');
25
25
26
26
my @files = qw<
27
27
00whois.xml
28
- 02packages.details.txt
28
+ 02packages.details.txt.gz
29
29
06perms.txt
30
30
> ;
31
31
32
32
subtest ' Check Files' => sub {
33
33
ok( $authors -> child(' 00whois.xml' ), " Found 00whois.xml" );
34
- ok( $modules -> child(' 02packages.details.txt' ), " Found 02packages.details.txt" );
34
+ ok( $modules -> child(' 02packages.details.txt.gz ' ), " Found 02packages.details.txt.gz " );
35
35
ok( $modules -> child(' 06perms.txt' ), " Found 06perms.txt" );
36
36
};
37
37
@@ -82,6 +82,16 @@ subtest 'Author Indexing' => sub {
82
82
ok( $es_author -> exists ( index => ' author' , id => ' OALDERS' ), " Found author OALDERS" );
83
83
};
84
84
85
+ # run the package indexing script in test mode
86
+ my $package_script = $bin -> child(' package.pl' );
87
+ my $package_file = $modules -> child(' 02packages.details.txt.gz' );
88
+ ` perl $package_script -package_file $package_file --mode test` ;
89
+
90
+ subtest ' Package Indexing' => sub {
91
+ my $es_package = MetaCPAN::ES-> new( index => ' package' , mode => ' test' );
92
+ ok( $es_package -> exists ( index => ' package' , id => ' LWP' ), " Found package LWP" );
93
+ };
94
+
85
95
# run the permission indexing script in test mode
86
96
my $perms_script = $bin -> child(' permission.pl' );
87
97
my $perms_file = $modules -> child(' 06perms.txt' );
0 commit comments