mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-13 16:18:33 +00:00
ba0fcc1d03
* Add perl backend bindings for swig/ * Add minimal (one test) test suite for py/pl --HG-- rename : swig/t.py => swig/test/python/num.py
35 lines
420 B
Bash
Executable File
35 lines
420 B
Bash
Executable File
#!/bin/sh
|
|
LNG=$1
|
|
|
|
if [ ! -d "test/${LNG}" ]; then
|
|
echo "Cannot find ${LNG} test suite"
|
|
exit 1
|
|
fi
|
|
|
|
case ${LNG} in
|
|
"python")
|
|
LD_LIBRARY_PATH=$PWD/python
|
|
PYTHONPATH=$PWD/python
|
|
export LD_LIBRARY_PATH PYTHONPATH
|
|
;;
|
|
"perl")
|
|
# TODO
|
|
;;
|
|
esac
|
|
|
|
cd test/${LNG}
|
|
|
|
shift
|
|
if [ -n "$@" ]; then
|
|
while [ -n "$1" ]; do
|
|
echo $a
|
|
${LNG} $1
|
|
shift
|
|
done
|
|
else
|
|
for a in * ; do
|
|
echo $a
|
|
${LNG} $a
|
|
done
|
|
fi
|