mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-13 16:18:33 +00:00
d6f95d33c3
- r_util is now bindable from swig !! - Added test cases for r_util - r_flist has been mirrored in C, to keep API consistent * Rename RIO->seek into RIO->off - There's a method with the same name - Also rename list.h ->next and ->prev into ->n ->n * Apply patch from whats fixing 'r_cmd_str' EOF for stdin (Thanks!!) - Added test program to ensure stdin food works * Allow '-f -' to rasm2 (assemble file from stdin) * Added test case in python using RBin, RAsm and RCC to compile and assemble a code to be injected in the given target program
40 lines
498 B
Bash
Executable File
40 lines
498 B
Bash
Executable File
#!/bin/sh
|
|
LNG=$1
|
|
|
|
if [ -z "$LNG" ]; then
|
|
echo "Usage: do-test.sh [lang] [files]"
|
|
exit 1
|
|
fi
|
|
|
|
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
|