[MDEV-7294] MTR does not use /dev/shm with a out-of-source build Created: 2014-12-09  Updated: 2015-01-19  Resolved: 2015-01-19

Status: Closed
Project: MariaDB Server
Component/s: Tests
Affects Version/s: 5.5, 10.0
Fix Version/s: 5.5.42, 10.0.16

Type: Bug Priority: Major
Reporter: Alexander Barkov Assignee: Sergei Golubchik
Resolution: Fixed Votes: 0
Labels: None


 Description   

I have a separate disk where I store all git and bzr trees: /media/DATA/maria-bzr/.

There is a convenience symlink from home directory:

cd ~
ln -s /media/DATA/maria-bzr/  .

Now I clone a tree:

cd maria-bzr
bzr clone bzr+ssh://bazaar.launchpad.net/~maria-captains/maria/10.0/

And compile an out-of-source build:

cd 10.0
mkdir bld
cd bld
cmake .. -DCMAKE_BUILD_TYPE=Debug
make -j8

Now I run a test:

cd mysql-test
./mtr --mem ctype_utf8

It ignores the --mem option and creates a real var subdirectory under the current directory, instead of symlinking it to a random sub directory at /dev/shm/.
As a result, the entire ./mtr runs about 4 hours instead of 20 minutes.

Note, it works as expected when I use a in-source tree:

cd ~/maria-bzr/10.0/
rm -rf bld
cmake . -DCMAKE_BUILD_TYPE=Debug
make -j8
cd mysql-test
./mtr  --mem ctype_utf8


Generated at Thu Feb 08 07:18:30 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.