NAME=stripped check 0
FILE=bins/mach0/aout-notstripped
CMDS=<<EOF
i~^stripp
i~^uncaps
EOF
EXPECT=<<EOF
stripped false
uncaps   true
EOF
RUN

NAME=stripped check 1
FILE=bins/mach0/aout-stripped
CMDS=<<EOF
i~^stripp
i~^uncaps
EOF
EXPECT=<<EOF
stripped true
uncaps   false
EOF
RUN

NAME=stripped check 2
FILE=bins/mach0/aout-notstripped
CMDS=<<EOF
%RABIN2_MACHO_NOFUNCSTARTS=0
!!rabin2 -I bins/mach0/aout-notstripped~^strip
!!rabin2 -I bins/mach0/aout-notstripped~^uncaps
EOF
EXPECT=<<EOF
stripped false
uncaps   true
EOF
RUN

NAME=stripped check 3
FILE=bins/mach0/aout-stripped
CMDS=<<EOF
%RABIN2_MACHO_NOFUNCSTARTS=0
!!rabin2 -I bins/mach0/aout-stripped~^strip
!!rabin2 -I bins/mach0/aout-stripped~^uncaps
EOF
EXPECT=<<EOF
stripped true
uncaps   false
EOF
RUN

NAME=stripped check 4
FILE=bins/mach0/aout-notstripped
CMDS=<<EOF
%RABIN2_MACHO_NOFUNCSTARTS=1
!!rabin2 -I bins/mach0/aout-notstripped~^strip
!!rabin2 -I bins/mach0/aout-notstripped~^uncaps
EOF
EXPECT=<<EOF
stripped false
uncaps   true
EOF
RUN

NAME=stripped check 5
FILE=bins/mach0/aout-stripped
CMDS=<<EOF
%RABIN2_MACHO_NOFUNCSTARTS=1
!!rabin2 -I bins/mach0/aout-stripped~^strip
!!rabin2 -I bins/mach0/aout-stripped~^uncaps
EOF
EXPECT=<<EOF
stripped true
uncaps   false
EOF
RUN

NAME=stripped check 6
FILE=bins/mach0/hello-osx-x86_64
CMDS=<<EOF
i~^stripp
i~^uncaps
EOF
EXPECT=<<EOF
stripped true
uncaps   true
EOF
RUN

NAME=stripped check 7
FILE=bins/mach0/Alamofire-stripped
CMDS=<<EOF
i~^stripp
i~^uncaps
EOF
EXPECT=<<EOF
stripped true
uncaps   false
EOF
RUN
