[Toybox] Test suite quandry.

Rob Landley rob at landley.net
Thu May 14 00:01:34 PDT 2020



On 5/13/20 6:30 AM, Rob Landley wrote:
> P.P.P.P.P.S. readlink -q doesn't work in debian:
> 
>   $ ln -snf link link
>   $ readlink -q link
>   link

  $ touch file
  $ readlink -m file/dir
  /home/landley/toybox/toybox/file/dir

That's not "missing".

  $ echo -e 'one\ntwo\nthree' | rev -
  rev: cannot open -: No such file or directory

Really? REALLY?

  FAIL: rm -rv dir
  echo -ne '' | rm -rv d1 | sort
  --- expected	2020-05-13 20:26:26.872254320 -0500
  +++ actual	2020-05-13 20:26:26.876254320 -0500
  @@ -1,3 +1,3 @@
  -rm 'd1/f1.txt'
  -rm 'd1/f2.txt'
  -rmdir 'd1'
  +removed 'd1/f1.txt'
  +removed 'd1/f2.txt'
  +removed directory 'd1'

Checking overly-specific output again. I suppose I can do a quick-and-dirty fix
with sed in this instance...

Rob



More information about the Toybox mailing list