Current Path : /home/usr.opt/mysql57/mysql-test/include/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //home/usr.opt/mysql57/mysql-test/include/have_expect.inc |
############################################### # checks if the perl expect module # is installed on the system where # the test is run ############################################### --let $tmp_inc=$MYSQL_TMP_DIR/tmp.inc let inc_tmp=$tmp_inc; --perl my $tmp_inc= $ENV{'inc_tmp'} or die "tmp_inc not set"; my $is_module_present = eval { require Expect; }; open(FILE_INC, ">" , "$tmp_inc") or die("Unable to open $tmp_inc: $!\n"); print FILE_INC '--let $is_present= '.$is_module_present; close FILE_INC; EOF --source $tmp_inc if (!$is_present) { --skip Please install the perl Expect module } --remove_file $tmp_inc