Mercurial > ~dholland > hg > tradcpp > index.cgi
comparison tests/tradcpp.sh @ 51:bec1eb5ac326
Use -x + '' to get the output redirection to work correctly.
author | Joerg Sonnenberger <joerg@bec.de> |
---|---|
date | Sun, 31 Mar 2013 06:07:32 +0200 |
parents | ce9347338583 |
children | 937d310debaa |
comparison
equal
deleted
inserted
replaced
50:ce9347338583 | 51:bec1eb5ac326 |
---|---|
16 local options_file="$(atf_get_srcdir)/${name}.cmdline" | 16 local options_file="$(atf_get_srcdir)/${name}.cmdline" |
17 if [ -e ${options_file} ]; then | 17 if [ -e ${options_file} ]; then |
18 options=$(cat ${options_file}) | 18 options=$(cat ${options_file}) |
19 fi | 19 fi |
20 eval "${name}_body() { \ | 20 eval "${name}_body() { \ |
21 atf_check -s eq:0 -o ${stdout} "${tradcpp} ${options} ${source} 2\>\&1"; \ | 21 atf_check -s eq:0 -o ${stdout} -x '${tradcpp} ${options} ${source} 2>&1'; \ |
22 }" | 22 }" |
23 } | 23 } |
24 | 24 |
25 atf_init_test_cases() { | 25 atf_init_test_cases() { |
26 local tradcpp=$(make -V .OBJDIR -C $(atf_get_srcdir)/..)/tradcpp | 26 local tradcpp=$(make -V .OBJDIR -C $(atf_get_srcdir)/..)/tradcpp |