summaryrefslogtreecommitdiff
path: root/test.pl
diff options
context:
space:
mode:
authorhansp <hansp>2001-05-16 07:39:24 +0000
committerhansp <hansp>2001-05-16 07:39:24 +0000
commit8565afcb5604c73ca52bb9fbb25a2e509aa41cda (patch)
treea79e056e899db3e33c57161087eb93b23e3af68a /test.pl
parent165b7ff5975f8ae2222d3934b75fc3604b336684 (diff)
2001-05-16 Hans Petter Jansson <hpj@ximian.com>
* share.pl.in (xst_share_smb_info_get_name): Implement. (xst_share_smb_info_set_name): Implement. (xst_share_smb_table_find): Implement. (xst_share_parse_smb_conf): Set share name as well. (xst_share_replace_smb_conf): Implement. (xst_share_replace_nfs_exports): Cosmetic fix. * replace.pl.in (xst_replace_ini): Change so that blank value will remove the variable altogether. (xst_replace_remove_ini_section): Implement. (xst_replace_remove_ini_var): Implement. * test.pl: Test cases for my personal enjoyment tomorrow.
Diffstat (limited to 'test.pl')
-rwxr-xr-xtest.pl10
1 files changed, 7 insertions, 3 deletions
diff --git a/test.pl b/test.pl
index 0049f19..2353150 100755
--- a/test.pl
+++ b/test.pl
@@ -5,9 +5,10 @@ require "network.pl";
require "parse.pl";
require "debug.pl";
require "filesys.pl";
+require "share.pl";
-@platforms = ( "redhat-6.2", "redhat-7.0" );
+@platforms = ( "redhat-6.2", "redhat-7.0", "debian-2.2" );
&xst_init ("test", "0.0.0", "Test script.", @ARGV);
@@ -94,13 +95,16 @@ sub test_interfaces
# ---
#$arr = &xst_filesys_parse_fstab ("/etc/fstab");
-$arr = &xst_filesys_parse_mtab ("/etc/mtab");
+#$arr = &xst_filesys_parse_mtab ("/etc/mtab");
# print @arr[0] . "\n";
# &xst_filesys_table_remove ($arr, &xst_filesys_table_find ($arr, "point", "/"));
# &xst_filesys_table_remove ($arr, &xst_filesys_table_find ($arr, "point", "/mnt/floppy"));
-&xst_debug_print_struct ($arr);
+#&xst_debug_print_struct ($arr);
+
+$table = &xst_share_parse_smb_conf ("/etc/samba/smb.conf");
+&xst_share_replace_smb_conf ("/etc/samba/smb.conf.test", $table);
# &test_interfaces();
# &test_media();