script/moses-cache-tester.pl untested

filter: Statementstmt 0.0% 0 / 34 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 9 Podpod n/a totaltotal 0.0% 0 / 45 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 #!/usr/local/bin/perl -w
2 #
3 # Print the current status of configuration and logging files.
4 #
5 # $Id: moses-cache-tester.pl,v 1.3 2008/02/21 00:12:55 kawas Exp $
6 # Contact: Martin Senger <martin.senger@gmail.com>
7 # -----------------------------------------------------------
8  
9 # some command-line options
10 use Getopt::Std;
11 use vars qw/ $opt_h $opt_d $opt_e $opt_s $opt_m $opt_v /;
12 getopt;
13  
14 # usage
15 if ($opt_h) {
16 print STDOUT <<'END_OF_USAGE';
17 Generate/Update your cache
18 Usage: [-vdesm] [-u registry_url -n registry_uri]
19  
20 It also needs those configuration files it reports on
21 (but if they do not exists it will be reported, as well).
22  
23 -v ... verbose
24 -d ... create/overwrite datatype cache
25 -e ... update datatype cache
26 -s ... create/overwrite service cache
27 -m ... update service cache
28 -h ... help
29 END_OF_USAGE
30 exit (0);
31 }
32 # -----------------------------------------------------------
33  
34 use File::HomeDir;
35 use MOSES::MOBY::Cache::Central;
36 use MOSES::MOBY::Base;
37 use Data::Dumper;
38 use MOSES::MOBY::Generators::GenTypes;
39 use strict;
40 use warnings;
41  
42 my $cache = MOSES::MOBY::Cache::Central->new (
43 cachedir => $MOBYCFG::CACHEDIR,
44 registry => $MOBYCFG::REGISTRY);
45  
46 print Dumper($cache);
47 print Dumper(MOSES::MOBY::Generators::GenTypes->new);
48 #$cache->update_service_cache();
49 #$cache->create_service_cache();
50  
51 __END__