summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir@cohens.org.il>2009-05-24 17:02:36 +0300
committerTzafrir Cohen <tzafrir@cohens.org.il>2009-05-24 17:02:36 +0300
commite07b80f91c00fcf5013fe2c7066008470d203d30 (patch)
tree184171ff1d0f2dfc0e2e1357b4a560d3b5ab7fe2 /t
Importing Asterisk::config 0.96 from tarball
Diffstat (limited to 't')
-rwxr-xr-xt/read.t12
-rwxr-xr-xt/test.conf25
2 files changed, 37 insertions, 0 deletions
diff --git a/t/read.t b/t/read.t
new file mode 100755
index 0000000..b267b9a
--- /dev/null
+++ b/t/read.t
@@ -0,0 +1,12 @@
+#make sample read test
+use strict;
+use Test;
+
+use lib '../lib';
+
+BEGIN { plan tests => 1 }
+
+use Asterisk::config;
+
+my $sip_conf = new Asterisk::config(file=>'t/test.conf');
+ok($sip_conf);
diff --git a/t/test.conf b/t/test.conf
new file mode 100755
index 0000000..1cfbf94
--- /dev/null
+++ b/t/test.conf
@@ -0,0 +1,25 @@
+key=value
+
+thisis=>unsection
+
+[general]
+useragent=hoowa
+disallow=all
+allow=g729
+allow=>g723 #comment
+allow=ulaw
+#include classsip.conf
+
+[usera]
+type=friend;saying
+secret=thisone
+host=>dynamic
+
+[trunka]
+type=friend
+host=192.168.0.1
+
+#include branchsip.conf
+
+[tempsection]
+delete=me