You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.6 KiB

  1. # -*- cperl -*-
  2. # Copyright (c) 2007 MySQL AB
  3. # Use is subject to license terms.
  4. #
  5. # This program is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; version 2 of the License.
  8. #
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. # GNU General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program; if not, write to the Free Software
  16. # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  17. use Test::More qw(no_plan);
  18. use strict;
  19. use_ok ("My::Find");
  20. my $basedir= "../..";
  21. print "=" x 40, "\n";
  22. my $mysqld_exe= my_find_bin($basedir,
  23. ["sql", "bin"],
  24. ["mysqld", "mysqld-debug"]);
  25. print "mysqld_exe: $mysqld_exe\n";
  26. print "=" x 40, "\n";
  27. my $mysql_exe= my_find_bin($basedir,
  28. ["client", "bin"],
  29. "mysql");
  30. print "mysql_exe: $mysql_exe\n";
  31. print "=" x 40, "\n";
  32. my $mtr_build_dir= $ENV{MTR_BUILD_DIR};
  33. $ENV{MTR_BUILD_DIR}= "debug";
  34. my $mysql_exe= my_find_bin($basedir,
  35. ["client", "bin"],
  36. "mysql");
  37. print "mysql_exe: $mysql_exe\n";
  38. $ENV{MTR_BUILD_DIR}= $mtr_build_dir;
  39. print "=" x 40, "\n";
  40. my $charset_dir= my_find_dir($basedir,
  41. ["share/mysql", "sql/share", "share"],
  42. "charsets");
  43. print "charset_dir: $charset_dir\n";
  44. print "=" x 40, "\n";