sapling/tests/test-cstore.t
Stanislau Hlebik 9384ed14b8 fix tests
check-code was updated and it started to fail. This diff fixes it.
2017-06-22 00:33:08 -07:00

22 lines
834 B
Perl

Get build path for native extensions
- Do this as a separate script so we can eat the ls errors
$ cat >> $TESTTMP/getbuildpath.sh <<EOF
> BUILD_PATH="`ls -d $TESTDIR/`"
> BUILD_PATH="\$BUILD_PATH:`ls -d $TESTDIR/../build/lib* 2> /dev/null`"
> BUILD_PATH="\$BUILD_PATH:`ls -d $TESTDIR/../../rpmbuild/BUILD/fb-mercurial-ext-*/build/lib.*/ 2> /dev/null`"
> echo "\$BUILD_PATH"
> EOF
$ chmod a+x $TESTTMP/getbuildpath.sh
$ BUILD_PATH="`$TESTTMP/getbuildpath.sh`"
$ LD_LIBRARY_PATH="$BUILD_PATH"
$ export LD_LIBRARY_PATH
$ PYTHONPATH="$BUILD_PATH:$PYTHONPATH"
$ export PYTHONPATH
$ $PYTHON $TESTDIR/remotefilelog-datapack.py
$ $PYTHON $TESTDIR/remotefilelog-histpack.py
$ $PYTHON $TESTDIR/cstore-datapackstore.py
$ $PYTHON $TESTDIR/cstore-treemanifest.py
$ $PYTHON $TESTDIR/cstore-uniondatapackstore.py