qemu-e2k/tests/tcg/cris
Eric Blake b43671f80c tests: Avoid non-portable 'echo -ARG'
POSIX says that backslashes in the arguments to 'echo', as well as
any use of 'echo -n' and 'echo -e', are non-portable; it recommends
people should favor 'printf' instead.  This is definitely true where
we do not control which shell is running (such as in makefile snippets
or in documentation examples).  But even for scripts where we
require bash (and therefore, where echo does what we want by default),
it is still possible to use 'shopt -s xpg_echo' to change bash's
behavior of echo.  And setting a good example never hurts when we are
not sure if a snippet will be copied from a bash-only script to a
general shell script (although I don't change the use of non-portable
\e for ESC when we know the running shell is bash).

Replace 'echo -n "..."' with 'printf %s "..."', and 'echo -e "..."'
with 'printf %b "...\n"', with the optimization that the %s/%b
argument can be omitted if the string being printed is a strict
literal with no '%', '$', or '`' (we could technically also make
this optimization when there are $ or `` substitutions but where
we can prove their results will not be problematic, but proving
that such substitutions are safe makes the patch less trivial
compared to just being consistent).

In the qemu-iotests check script, fix unusual shell quoting
that would result in word-splitting if 'date' outputs a space.

In test 051, take an opportunity to shorten the line.

In test 068, get rid of a pointless second invocation of bash.

CC: qemu-trivial@nongnu.org
Signed-off-by: Eric Blake <eblake@redhat.com>
Message-id: 20170703180950.9895-1-eblake@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
2017-07-11 17:45:00 +02:00
..
.gdbinit
check_abs.c tests: cris: force inlining 2016-09-28 10:45:44 +02:00
check_addc.c tests: cris: force inlining 2016-09-28 10:45:44 +02:00
check_addcm.c tests: cris: force inlining 2016-09-28 10:45:44 +02:00
check_addcv17.s tests: cris: add v17 ADDC test 2016-09-28 11:32:06 +02:00
check_addi.s
check_addiv32.s
check_addm.s
check_addo.c
check_addoq.c
check_addq.s
check_addr.s
check_addxc.s
check_addxm.s
check_addxr.s
check_andc.s
check_andm.s
check_andq.s
check_andr.s
check_asr.s
check_ba.s
check_bas.s
check_bcc.s
check_bound.c tests: cris: force inlining 2016-09-28 10:45:44 +02:00
check_boundc.s
check_boundr.s
check_btst.s
check_clearfv32.s
check_clrjmp1.s
check_cmp-2.s
check_cmpc.s
check_cmpm.s
check_cmpq.s
check_cmpr.s
check_cmpxc.s
check_cmpxm.s
check_dstep.s
check_ftag.c tests: cris: force inlining 2016-09-28 10:45:44 +02:00
check_gcctorture_pr28634-1.c
check_gcctorture_pr28634.c
check_glibc_kernelversion.c
check_hello.c
check_int64.c tests: cris: force inlining 2016-09-28 10:45:44 +02:00
check_jsr.s
check_lapc.s
check_lsl.s
check_lsr.s
check_lz.c tests: cris: force inlining 2016-09-28 10:45:44 +02:00
check_mapbrk.c
check_mcp.s
check_mmap1.c
check_mmap2.c
check_mmap3.c
check_movdelsr1.s
check_movecr.s
check_movei.s
check_movemr.s
check_movemrv32.s
check_moveq.c
check_mover.s
check_moverm.s
check_movmp.s
check_movpmv32.s
check_movpr.s
check_movprv32.s
check_movscr.s
check_movsm.s
check_movsr.s
check_movucr.s
check_movum.s
check_movur.s
check_mulv32.s
check_mulx.s
check_neg.s
check_not.s
check_openpf1.c
check_openpf2.c
check_openpf3.c
check_openpf5.c
check_orc.s
check_orm.s
check_orq.s
check_orr.s
check_ret.s
check_scc.s
check_settls1.c
check_sigalrm.c
check_stat1.c
check_stat2.c
check_stat3.c
check_stat4.c
check_subc.s
check_subm.s
check_subq.s
check_subr.s
check_swap.c tests: cris: force inlining 2016-09-28 10:45:44 +02:00
check_time2.c
check_xarith.s
crisutils.h tests: cris: force inlining 2016-09-28 10:45:44 +02:00
crt.s
Makefile tests: Avoid non-portable 'echo -ARG' 2017-07-11 17:45:00 +02:00
README
sys.c tests: cris: fix syscall inline asm 2016-09-28 10:47:21 +02:00
sys.h tests: cris: force inlining 2016-09-28 10:45:44 +02:00
testutils.inc

Test-suite for the cris port. Heavily based on the test-suite for the CRIS port of sim by Hans-Peter Nilsson.