summaryrefslogtreecommitdiff
path: root/t/lib
diff options
context:
space:
mode:
authorivan <ivan>2008-06-16 07:07:35 +0000
committerivan <ivan>2008-06-16 07:07:35 +0000
commit1ed8df25cb58e83f7470c714062a946b8d19ae07 (patch)
treeedbcbf0b6d9d12f69fc3fb77753bd713d98c5cc9 /t/lib
initial import...START
Diffstat (limited to 't/lib')
-rw-r--r--t/lib/test_account.pl22
1 files changed, 22 insertions, 0 deletions
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) = <TEST_ACCOUNT>;
+ chomp $login;
+ chomp $password;
+
+ return($login, $password);
+}
+
+1;