Caught by the 'sc_tests_command_subst' maintainer check.
* Several tests: Adjust. Also ...
* t/memoize.tap: ... use $((...)) instead of `expr ...` here,
and ...
* t/parallel-tests-dynamic.sh: ... add a missing quote here.
Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
$MAKE
grep_prog_out foofoofoo # Sanity check.
-EXEEXT=`$MAKE -s --no-print-directory get-exeext` \
+EXEEXT=$($MAKE -s --no-print-directory get-exeext) \
|| fatal_ "cannot get \$EXEEXT"
# Modify an header file.
$ACLOCAL
$AUTOCONF
$AUTOMAKE
-./configure --prefix "`pwd`/inst"
+./configure --prefix "$(pwd)/inst"
# Now make sure these two files are rebuilt during make install.
$MAKE install
$srcdir/configure --enable-dependency-tracking
$MAKE
- depdir=`$MAKE -s --no-print-directory get-depdir` \
+ depdir=$($MAKE -s --no-print-directory get-depdir) \
&& test -n "$depdir" \
&& test -d $depdir \
&& test -d sub/src/$depdir \
am_create_testdir=empty
. ./defs || exit 1
-ocwd=`pwd` || fatal_ "cannot get current working directory"
+ocwd=$(pwd) || fatal_ "cannot get current working directory"
mkdir src
cd src
echo good > ../filename-that-is-easy-to-grep
$MAKE distdir
-test "`cat $distdir/filename-that-is-easy-to-grep`" = good
+test "$(cat $distdir/filename-that-is-easy-to-grep)" = good
:
grep ' fake-fc .* --gby .* --@95 .* bye\.f95 ' out
grep ' fake-fc .* --gby .* --@90 .* sub/baz\.f90 ' out
-test `grep -c '.*--gby.*\.f' out` -eq 2
+test $(grep -c '.*--gby.*\.f' out) -eq 2
$EGREP 'fake-fc.*--@(95|03|08).*\.f90' out && exit 1
$EGREP 'fake-fc.*--@(90|03|08).*\.f95' out && exit 1
plan_ 17
-ocwd=`pwd` || fatal_ "couldn't get current working directory"
+ocwd=$(pwd) || fatal_ "couldn't get current working directory"
cp "$am_amdir"/header-vars.am . \
|| fatal_ "fetching makefile fragment headers-vars.am"
T ()
{
- tcount=`expr $tcount + 1`
+ tcount=$(($tcount + 1))
mkdir $tcount.d
cd $tcount.d
echo include ../defn.mk > Makefile
grep '^SKIP: mu$' stdout
$MAKE mostlyclean
-test "`find . -name *.log`" = ./config.log
+test "$(find . -name '*.log')" = ./config.log
$MAKE distcheck > stdout || { cat stdout; exit 1; }
cat stdout
grep '^XFAIL: t98S\.sh' stdout
$MAKE mostlyclean
-test "`find . -name *.log`" = ./config.log
+test "$(find . -name '*.log')" = ./config.log
$MAKE check TESTS='$(shell echo t00 | sed "s/$$/-foo/") t99'
test -f t00-foo.log
$AUTOCONF
$AUTOMAKE -a
-./configure --prefix="`pwd`/inst"
+./configure --prefix="$(pwd)/inst"
$MAKE check
ls -l # For debugging.
$MAKE
diff $srcdir/bar/one.in ./foo/one.out
diff $srcdir/two/z ./two.sh
- test `cat mu.py` = True
+ test "$(cat mu.py)" = True
cd $srcdir
done
: > pfile
mkdir pdir
$MAKE pdir pfile
-test "`cat pfile`" = bar
-test "`cat pdir/foo`" = foo
+test "$(cat pfile)" = bar
+test "$(cat pdir/foo)" = foo
$MAKE other
-test "`cat dummy`" = baz
+test "$(cat dummy)" = baz
$MAKE other
-test "`cat dummy`" = "baz${nl}baz"
+test "$(cat dummy)" = "baz${nl}baz"
echo not run > indirect
$MAKE indirect
-test "`cat indirect`" = run
-test "`cat dummy`" = "baz${nl}baz${nl}baz"
+test "$(cat indirect)" = run
+test "$(cat dummy)" = "baz${nl}baz${nl}baz"
:
. ./defs || exit 1
-ocwd=`pwd` || fatal_ "couldn't get current working directory"
+ocwd=$(pwd) || fatal_ "couldn't get current working directory"
mkdir src
cd src
AM_MAKEINFOHTMLFLAGS = --no-headers --no-split
AM_MAKEINFOFLAGS = --unsupported-option
EOF
-../configure --prefix "`pwd`"
+../configure --prefix "$(pwd)"
$MAKE html
test -f main.html
test -f sub/main2.html
grep '^xyz = \\$' Makefile.in
$EGREP 'foo|bar' Makefile.in # For debugging.
-test `grep -c '^foo +=' Makefile.in` -eq 2
-test `grep -c '^bar =' Makefile.in` -eq 3
+test $(grep -c '^foo +=' Makefile.in) -eq 2
+test $(grep -c '^bar =' Makefile.in) -eq 3
$AUTOCONF
./configure
required=cc
. ./defs || exit 1
-ocwd=`pwd` || fatal_ "couldn't get current working directory"
+ocwd=$(pwd) || fatal_ "couldn't get current working directory"
cat >> configure.ac <<'END'
AC_PROG_CC
$MAKE test-vpath
cd ..
-ocwd=`pwd` || fatal_ "couldn't get current working directory"
+ocwd=$(pwd) || fatal_ "couldn't get current working directory"
mkdir build2 build2/subbuild
cd build2/subbuild
"$ocwd"/configure