#!/usr/bin/perl -w

use strict;
use Test::Repocop::Options;
use Test::Repocop::Common;
use Test::Repocop::TestDB;
Getopt::Long::Configure ("pass_through");

&Test::Repocop::Options::get_common_options();
&Test::Repocop::Common::mkdir_test_environment('');
&Test::Repocop::TestDB->new()->setup_environment();
print "REPOCOP_TEST_OUTPUTDIR=$ENV{'REPOCOP_TEST_OUTPUTDIR'}\n";
print "REPOCOP_STATEDIR=$ENV{'REPOCOP_STATEDIR'}\n";
print "REPOCOP_TEST_DBDIR=$ENV{'REPOCOP_TEST_DBDIR'}\n";
print "PATH=$ENV{'PATH'}\n";
print "export REPOCOP_TEST_OUTPUTDIR REPOCOP_STATEDIR REPOCOP_TEST_DBDIR PATH\n";

=head1	NAME

repocop-export-environment-for-external-tests - prepares environment for external tests.

=head1	SYNOPSIS

B<discards cached results for given tests>
[-c I<dir>]

=head1	DESCRIPTION

B<repocop-export-environment-for-external-tests>
prepares environment for external tests.

=head1	OPTIONS

=over

=item	B<-c,--cachedir> I<dir>

Provides alternative location for cachedir. 
Repocop cachedir is a place where test results and 
packages metadata information are stored.


=item	B<-h, --help>

Display this help and exit.

=back

=head1	AUTHOR

Written by Igor Vlasenko <viy@altlinux.org>.

=head1	ACKNOWLEGEMENTS

To Alexey Torbin <at@altlinux.org>, whose qa-robot package
had a strong influence on repocop. 

=head1	COPYING

Copyright (c) 2010 Igor Vlasenko, ALT Linux Team.

This is free software; you can redistribute it and/or modify it under the terms
of the GNU General Public License as published by the Free Software Foundation;
either version 2 of the License, or (at your option) any later version.

=cut

