diff options
Diffstat (limited to 'test/test_by_xed.sh')
-rwxr-xr-x | test/test_by_xed.sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/test_by_xed.sh b/test/test_by_xed.sh new file mode 100755 index 0000000..6d820bd --- /dev/null +++ b/test/test_by_xed.sh @@ -0,0 +1,23 @@ +#!/bin/sh + +set -e +XED=${XED:=xed} +CXX=${CXX:=g++} +PYTHON=${PYTHON:=python3} + +if [ $# -ne 1 ]; then + echo "./test_by_xed.sh <xbyak-cpp>" + exit 1 +fi + +TARGET=$1 + +CFLAGS="-Wall -Wextra -I ../" + +echo "test:" $TARGET +cp $TARGET cpp.txt +$CXX $CFLAGS test_by_xed.cpp -o test_by_xed +./test_by_xed +$XED -64 -ir bin > out.txt +$PYTHON test_by_xed.py cpp.txt out.txt + |