mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-12 10:08:07 +00:00
test unicornafl: copy from build script
This commit is contained in:
11
test/test.sh
11
test/test.sh
@ -886,20 +886,13 @@ test -d ../unicorn_mode/unicornafl && {
|
|||||||
EASY_INSTALL_FOUND=0
|
EASY_INSTALL_FOUND=0
|
||||||
for PYTHON in $PYTHONS ; do
|
for PYTHON in $PYTHONS ; do
|
||||||
|
|
||||||
# work around for installs with executable easy_install
|
if $PYTHON -c "help('modules');" 2>/dev/null | grep -q easy_install ; then
|
||||||
MYPYTHONPATH=`${PYTHON} -v </dev/null 2>&1 >/dev/null | sed -n -e '/^# \/.*\/os.py/{ s/.*matches //; s/os.py$//; p;}'`
|
|
||||||
for PATHCANDIDATE in \
|
|
||||||
"dist-packages/" \
|
|
||||||
"site-packages/"
|
|
||||||
do
|
|
||||||
if [ -e "${MYPYTHONPATH}/${PATHCANDIDATE}/easy_install.py" ] ; then
|
|
||||||
|
|
||||||
EASY_INSTALL_FOUND=1
|
EASY_INSTALL_FOUND=1
|
||||||
PY=$PYTHON
|
PY=$PYTHON
|
||||||
break
|
break
|
||||||
|
|
||||||
fi
|
fi
|
||||||
done
|
|
||||||
|
|
||||||
done
|
done
|
||||||
if [ "0" = $EASY_INSTALL_FOUND ]; then
|
if [ "0" = $EASY_INSTALL_FOUND ]; then
|
||||||
|
Reference in New Issue
Block a user