mysql-test/mtr.out-of-source
raw| 1 | #!/usr/bin/env perl |
| 2 | # Call mtr in out-of-source build |
| 3 | |
| 4 | use Cwd qw(cwd abs_path); |
| 5 | $ENV{MTR_BINDIR} = '@CMAKE_BINARY_DIR@'; |
| 6 | my $dir= cwd(); |
| 7 | my $new_dir= abs_path('@CMAKE_SOURCE_DIR@'); |
| 8 | if ($dir eq $new_dir . '/mysql-test') |
| 9 | { |
| 10 | print stderr "Something went wrong. Do 'git checkout mysql-test/mariadb-test-run.pl' and try again"; |
| 11 | exit 1; |
| 12 | } |
| 13 | chdir('@CMAKE_SOURCE_DIR@/mysql-test'); |
| 14 | exit(system($^X, '@CMAKE_SOURCE_DIR@/mysql-test/mariadb-test-run.pl', @ARGV) >> 8); |