#!/bin/sh # Test if elfu can inject a x86-32 object file into an x86-32 # executable. Since both are given, we can compare the output to a # reference file. source ./boilerplate.sh elfucli --input reference/putsmain32 \ --reladd reference/puts-alternative32.o \ --output $BUILDDIR/putsmain32-with-puts-alternative32 test_check_retval cmp reference/putsmain32-with-puts-alternative32 \ $BUILDDIR/putsmain32-with-puts-alternative32 test_check_retval