mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 01:07:15 +03:00
9384ed14b8
check-code was updated and it started to fail. This diff fixes it.
22 lines
834 B
Perl
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
|