2 # Bootstrap Samba and run a number of tests against it.
3 # Copyright (C) 2005-2007 Jelmer Vernooij <jelmer@samba.org>
4 # Published under the GNU GPL, v3 or later.
10 @EXPORT_OK = qw(setup_dir setup_pcap set_default_iface);
13 use FindBin
qw($RealBin);
17 my ($dir, $pcap) = @_;
28 $pcap_dir = $dir."/pcap";
33 mkdir($pcap_dir, 0777);
38 if (defined($pcap_dir)) {
39 $ENV{SOCKET_WRAPPER_PCAP_DIR} = $pcap_dir;
41 delete $ENV{SOCKET_WRAPPER_PCAP_DIR};
45 $ENV{SOCKET_WRAPPER_DIR} = $dir;
47 delete $ENV{SOCKET_WRAPPER_DIR};
57 $ENV{SOCKET_WRAPPER_PCAP_FILE} = $pcap_file;
60 sub set_default_iface($)
63 $ENV{SOCKET_WRAPPER_DEFAULT_IFACE} = $i;