diff options
author | norly <ny-git@enpas.org> | 2013-06-24 04:07:10 +0100 |
---|---|---|
committer | norly <ny-git@enpas.org> | 2013-06-24 04:07:10 +0100 |
commit | 13880cbd8560fe9c7a93f73071d65761d68c5eea (patch) | |
tree | 699748279e36927cab3b699ab6553fef330a0ecb /tests | |
parent | 1c80cd18a94dcf58c852812e9b70098a6a87730e (diff) |
Tests for x86-64
Diffstat (limited to 'tests')
-rw-r--r-- | tests/02-noop64.test | 10 | ||||
-rw-r--r-- | tests/04-injection64.test | 11 | ||||
-rw-r--r-- | tests/reference/puts-alternative64.o | bin | 0 -> 1680 bytes | |||
-rwxr-xr-x | tests/reference/putsmain64 | bin | 0 -> 8380 bytes | |||
-rwxr-xr-x | tests/reference/putsmain64-cloned | bin | 0 -> 8384 bytes | |||
-rwxr-xr-x | tests/reference/putsmain64-with-puts-alternative64 | bin | 0 -> 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 Binary files differnew file mode 100644 index 0000000..6efb491 --- /dev/null +++ b/tests/reference/puts-alternative64.o diff --git a/tests/reference/putsmain64 b/tests/reference/putsmain64 Binary files differnew file mode 100755 index 0000000..570326a --- /dev/null +++ b/tests/reference/putsmain64 diff --git a/tests/reference/putsmain64-cloned b/tests/reference/putsmain64-cloned Binary files differnew file mode 100755 index 0000000..7a8f30a --- /dev/null +++ b/tests/reference/putsmain64-cloned diff --git a/tests/reference/putsmain64-with-puts-alternative64 b/tests/reference/putsmain64-with-puts-alternative64 Binary files differnew file mode 100755 index 0000000..778a5d3 --- /dev/null +++ b/tests/reference/putsmain64-with-puts-alternative64 |