From: norly Date: Thu, 27 Jun 2013 00:41:31 +0000 (+0100) Subject: Move test data256mb to end and add data64kb X-Git-Url: https://git.enpas.org/?p=centaur.git;a=commitdiff_plain;h=093fbed81ea29ef23268d23f955bc87185e3c018 Move test data256mb to end and add data64kb --- diff --git a/tests/06-data256mb.test b/tests/06-data256mb.test deleted file mode 100644 index 55cfcd2..0000000 --- a/tests/06-data256mb.test +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh -source ./boilerplate.sh - -elfucli --input $BUILDDIR/putsmain \ - --reladd $BUILDDIR/data256mb.o \ - --output $BUILDDIR/putsmain-with-data256mb -test_check_retval - -$BUILDDIR/putsmain-with-data256mb | grep -q "puts() #2 called in main()" -test_check_retval diff --git a/tests/06-data64kb.test b/tests/06-data64kb.test new file mode 100644 index 0000000..ebeeff2 --- /dev/null +++ b/tests/06-data64kb.test @@ -0,0 +1,10 @@ +#!/bin/sh +source ./boilerplate.sh + +elfucli --input $BUILDDIR/putsmain \ + --reladd $BUILDDIR/data64kb.o \ + --output $BUILDDIR/putsmain-with-data64kb +test_check_retval + +$BUILDDIR/putsmain-with-data64kb | grep -q "puts() #2 called in main()" +test_check_retval diff --git a/tests/99-data256mb.test b/tests/99-data256mb.test new file mode 100644 index 0000000..55cfcd2 --- /dev/null +++ b/tests/99-data256mb.test @@ -0,0 +1,10 @@ +#!/bin/sh +source ./boilerplate.sh + +elfucli --input $BUILDDIR/putsmain \ + --reladd $BUILDDIR/data256mb.o \ + --output $BUILDDIR/putsmain-with-data256mb +test_check_retval + +$BUILDDIR/putsmain-with-data256mb | grep -q "puts() #2 called in main()" +test_check_retval diff --git a/tests/src/data64kb.c b/tests/src/data64kb.c new file mode 100644 index 0000000..b5ebec1 --- /dev/null +++ b/tests/src/data64kb.c @@ -0,0 +1,2 @@ +/* 64 KB worth of data. */ +char data64kb[64*1024] = {1};