NAME=rz-diff -c
FILE=-
CMDS=!rz-diff -c bins/other/rz-diff/rz-diff_c_1 bins/other/rz-diff/rz-diff_c_2
EXPECT=<<EOF
1
EOF
RUN

NAME=rz-diff -a -O x86
FILE=-
CMDS=!rz-diff -a x86 -O bins/other/rz-diff/rz-diff_c_1 bins/other/rz-diff/rz-diff_c_2
EXPECT=<<EOF
0x00000000 91 => 90 0x00000000
EOF
RUN

NAME=rz-diff -g
FILE=-
CMDS=!!rz-diff -g main -m d bins/other/rz-diff/false bins/other/rz-diff/true~digrap
EXPECT=<<EOF
digraph code {
EOF
RUN

NAME=rz-diff -v~commit?"
FILE=-
CMDS=!!rz-diff -v~commit?
EXPECT=<<EOF
1
EOF
RUN

NAME=rz-diff -h~Usage?"
FILE=-
CMDS=!!rz-diff -h~Usage?
EXPECT=<<EOF
1
EOF
RUN

NAME=rz-diff string comparison
FILE=-
CMDS=!!rz-diff -z bins/elf/elf_one_symbol_shdr bins/elf/elf_one_symbol_shdr1
EXPECT=<<EOF
0x00000000 48656c6c => 41414141 0x00000000
EOF
RUN

NAME=rz-diff unified string comparison
FILE=-
CMDS=!!rz-diff -quz bins/elf/elf_one_symbol_shdr bins/elf/elf_one_symbol_shdr1
EXPECT=<<EOF
-0x00000000:48 65 6c 6c 
+0x00000000:41 41 41 41 
EOF
RUN

NAME=rz-diff gnu unified string comparison
FILE=-
BROKEN=1
CMDS=!!rz-diff -Uz bins/elf/elf_one_symbol_shdr bins/elf/elf_one_symbol_shdr1 | tail -n 2
EXPECT=<<EOF
-Hello world!
+AAAAo world!
EOF
RUN

NAME=rz-diff -AC (elf files)
FILE=-
CMDS=!!rz-diff -AC bins/other/rz-diff/true bins/other/rz-diff/false~?\(1.000000\)
EXPECT=<<EOF
54
EOF
RUN

NAME=rz-diff -AC (mach0 fat files)
FILE=-
CMDS=!!rz-diff -AC bins/other/rz-diff/hellocxx-osx-fat-intel_1 bins/other/rz-diff/hellocxx-osx-fat-intel_2~?\(1.000000\)
EXPECT=<<EOF
17
EOF
RUN

NAME=rz-diff -B (GDIFF support) #1
FILE=-
CMDS=!!rz-diff -B bins/other/rz-diff/rz-diff_c_1 bins/other/rz-diff/rz-diff_c_2 | rz-ax -S
EXPECT=<<EOF
d1ffd1ff04019000
EOF
RUN

NAME=rz-diff empty first file
FILE=-
CMDS=!rz-diff "" bins/other/rz-diff/rz-diff_c_2
EXPECT_ERR=<<EOF
Cannot open empty path
EOF
RUN

NAME=rz-diff empty second file
FILE=-
CMDS=!rz-diff bins/other/rz-diff/rz-diff_c_1 ""
EXPECT_ERR=<<EOF
Cannot open empty path
EOF
RUN
