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 tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
Makefile tests: Avoid non-portable 'echo -ARG' 2017-07-11 17:45:00 +02:00
README tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
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 tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_addiv32.s tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_addm.s tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_addo.c Fix some typos found by codespell 2016-05-18 15:04:27 +03:00
check_addoq.c tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_addq.s tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_addr.s tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_addxc.s tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_addxm.s tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_addxr.s tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_andc.s tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_andm.s tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_andq.s tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_andr.s tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_asr.s tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_ba.s tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_bas.s tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_bcc.s tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_bound.c tests: cris: force inlining 2016-09-28 10:45:44 +02:00
check_boundc.s tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_boundr.s tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_btst.s tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_clearfv32.s tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_clrjmp1.s tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_cmp-2.s tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_cmpc.s tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_cmpm.s tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_cmpq.s tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_cmpr.s tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_cmpxc.s tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_cmpxm.s tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_dstep.s tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_ftag.c tests: cris: force inlining 2016-09-28 10:45:44 +02:00
check_gcctorture_pr28634-1.c tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_gcctorture_pr28634.c tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_glibc_kernelversion.c tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_hello.c tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_int64.c tests: cris: force inlining 2016-09-28 10:45:44 +02:00
check_jsr.s tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_lapc.s tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_lsl.s tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_lsr.s tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_lz.c tests: cris: force inlining 2016-09-28 10:45:44 +02:00
check_mapbrk.c tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_mcp.s tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_mmap1.c tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_mmap2.c tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_mmap3.c tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_movdelsr1.s tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_movecr.s tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_movei.s tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_movemr.s tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_movemrv32.s tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_moveq.c tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_mover.s tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_moverm.s tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_movmp.s tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_movpmv32.s tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_movpr.s tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_movprv32.s tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_movscr.s tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_movsm.s tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_movsr.s tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_movucr.s tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_movum.s tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_movur.s tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_mulv32.s tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_mulx.s tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_neg.s tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_not.s tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_openpf1.c tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_openpf2.c tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_openpf3.c tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_openpf5.c tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_orc.s tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_orm.s tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_orq.s tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_orr.s tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_ret.s tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_scc.s tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_settls1.c tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_sigalrm.c tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_stat1.c tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_stat2.c tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_stat3.c tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_stat4.c tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_subc.s tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_subm.s tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_subq.s tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_subr.s tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_swap.c tests: cris: force inlining 2016-09-28 10:45:44 +02:00
check_time2.c tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
check_xarith.s tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
crisutils.h tests: cris: force inlining 2016-09-28 10:45:44 +02:00
crt.s tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00
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 tests: mv tests/* -> tests/tcg 2012-01-12 10:03:28 -06:00

README

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