summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/02-noop64.test10
-rw-r--r--tests/04-injection64.test11
-rw-r--r--tests/reference/puts-alternative64.obin0 -> 1680 bytes
-rwxr-xr-xtests/reference/putsmain64bin0 -> 8380 bytes
-rwxr-xr-xtests/reference/putsmain64-clonedbin0 -> 8384 bytes
-rwxr-xr-xtests/reference/putsmain64-with-puts-alternative64bin0 -> 2106144 bytes
6 files changed, 21 insertions, 0 deletions
diff --git a/tests/02-noop64.test b/tests/02-noop64.test
new file mode 100644
index 0000000..d519c55
--- /dev/null
+++ b/tests/02-noop64.test
@@ -0,0 +1,10 @@
+#!/bin/sh
+source ./boilerplate.sh
+
+elfucli --input reference/putsmain64 \
+ --output $BUILDDIR/putsmain64-cloned
+test_check_retval
+
+cmp reference/putsmain64-cloned \
+ $BUILDDIR/putsmain64-cloned
+test_check_retval
diff --git a/tests/04-injection64.test b/tests/04-injection64.test
new file mode 100644
index 0000000..5ca6237
--- /dev/null
+++ b/tests/04-injection64.test
@@ -0,0 +1,11 @@
+#!/bin/sh
+source ./boilerplate.sh
+
+elfucli --input reference/putsmain64 \
+ --reladd reference/puts-alternative64.o \
+ --output $BUILDDIR/putsmain64-with-puts-alternative64
+test_check_retval
+
+cmp reference/putsmain64-with-puts-alternative64 \
+ $BUILDDIR/putsmain64-with-puts-alternative64
+test_check_retval
diff --git a/tests/reference/puts-alternative64.o b/tests/reference/puts-alternative64.o
new file mode 100644
index 0000000..6efb491
--- /dev/null
+++ b/tests/reference/puts-alternative64.o
Binary files differ
diff --git a/tests/reference/putsmain64 b/tests/reference/putsmain64
new file mode 100755
index 0000000..570326a
--- /dev/null
+++ b/tests/reference/putsmain64
Binary files differ
diff --git a/tests/reference/putsmain64-cloned b/tests/reference/putsmain64-cloned
new file mode 100755
index 0000000..7a8f30a
--- /dev/null
+++ b/tests/reference/putsmain64-cloned
Binary files differ
diff --git a/tests/reference/putsmain64-with-puts-alternative64 b/tests/reference/putsmain64-with-puts-alternative64
new file mode 100755
index 0000000..778a5d3
--- /dev/null
+++ b/tests/reference/putsmain64-with-puts-alternative64
Binary files differ