mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 06:44:16 +01:00
change stress test script to save libutil.so and to recreate the paths for the libraries we need (gdb has trouble otherwise)
git-svn-id: file:///svn/toku/tokudb@50462 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
7962622c05
commit
2fd87df7ab
1 changed files with 7 additions and 2 deletions
|
@ -199,8 +199,13 @@ class TestRunnerBase(object):
|
|||
copy(f, targetfor(f))
|
||||
fullexecf = os.path.join(self.builddir, 'src', 'tests', self.execf)
|
||||
copy(fullexecf, targetfor(fullexecf))
|
||||
for lib in glob(os.path.join(self.installdir, 'lib', '*.so')):
|
||||
copy(lib, targetfor(lib))
|
||||
for libname in ['util/libutil.so', 'portability/libtokuportability.so', 'src/libtokudb.so']:
|
||||
fulllibpath = os.path.join(self.builddir, libname)
|
||||
targetpath = os.path.join(savedir, fulllibpath)
|
||||
targetdir = os.path.dirname(targetpath)
|
||||
if not os.path.exists(targetdir):
|
||||
os.makedirs(targetdir)
|
||||
copy(fulllibpath, targetpath)
|
||||
|
||||
tarfile = '%s.tar' % savedir
|
||||
r = call(['tar', 'cf', os.path.basename(tarfile), os.path.basename(savedir)], cwd=os.path.dirname(savedir))
|
||||
|
|
Loading…
Add table
Reference in a new issue