From 1ed8df25cb58e83f7470c714062a946b8d19ae07 Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 16 Jun 2008 07:07:35 +0000 Subject: initial import... --- t/lib/test_account.pl | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 t/lib/test_account.pl (limited to 't/lib/test_account.pl') diff --git a/t/lib/test_account.pl b/t/lib/test_account.pl new file mode 100644 index 0000000..4b316db --- /dev/null +++ b/t/lib/test_account.pl @@ -0,0 +1,22 @@ +use Test::More; + +sub test_account_or_skip { + my($login, $password) = test_account(); + + unless( defined $login ) { + plan skip_all => "No test account"; + } + + return($login, $password); +} + +sub test_account { + open TEST_ACCOUNT, "t/test_account" or return; + my($login, $password) = ; + chomp $login; + chomp $password; + + return($login, $password); +} + +1; -- cgit v1.2.1