Merge commit '0a097849af1bcd979ff4b430a03971f16822cbcb' as 'external/xbyak'
This commit is contained in:
26
external/xbyak/test/test_by_xed.sh
vendored
Executable file
26
external/xbyak/test/test_by_xed.sh
vendored
Executable file
@@ -0,0 +1,26 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
XED=${XED:=xed}
|
||||
CXX=${CXX:=g++}
|
||||
CFLAGS_USER=${CFLAGS}
|
||||
CFLAGS_WARN="$(cat CFLAGS_WARN.cfg)"
|
||||
PYTHON=${PYTHON:=python3}
|
||||
echo $XED
|
||||
|
||||
if [ $# -ne 1 ]; then
|
||||
echo "./test_by_xed.sh <xbyak-cpp>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
TARGET=$1
|
||||
|
||||
CFLAGS="$CFLAGS_USER $CFLAGS_WARN -I ../"
|
||||
|
||||
echo "test:" $TARGET
|
||||
cp $TARGET tmp.cpp
|
||||
$CXX $CFLAGS test_by_xed.cpp -o test_by_xed
|
||||
./test_by_xed
|
||||
$XED -64 -ir bin > out.txt
|
||||
$PYTHON test_by_xed.py $TARGET out.txt
|
||||
|
||||
Reference in New Issue
Block a user