diff options
author | Jim Meyering <jim@meyering.net> | 2003-03-08 09:48:27 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-03-08 09:48:27 +0000 |
commit | 3ba019fec53fec5f7631a3fb60c5a1c740025cb6 (patch) | |
tree | 180dced6c9c3e472e2b925d8712aa95da5cbc643 /src/du-tests | |
parent | 5fb608bc08d2d59ad252ed4d17d5e9374b7b3d7e (diff) | |
download | coreutils-3ba019fec53fec5f7631a3fb60c5a1c740025cb6.tar.xz |
.
Diffstat (limited to 'src/du-tests')
-rwxr-xr-x | src/du-tests | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/du-tests b/src/du-tests new file mode 100755 index 000000000..bfffbc96a --- /dev/null +++ b/src/du-tests @@ -0,0 +1,25 @@ +#!/bin/bash +test -x "$DU1" || { echo DU1 envvar not set; exit 1; } +test -x "$DU2" || { echo DU2 envvar not set; exit 1; } +# Expects $DU1 and $DU2 to be the binaries to compare. +d1=$(mktemp -d) +cp -a $DU1 $d1/du +d2=$(mktemp -d) +cp -a $DU2 $d2/du + +for args in \ + '-Sa .' \ + '-Sa ../..' \ + '-Sa a' \ + '-a a' \ + '-ca .' \ + '-ca ..' \ + '-ca ../..' \ + '-ca /tmp' \ + '-ca a' \ + ; do + echo Args: $args ====================== + diff -u --label=$DU1 --label=$DU2 \ + <(PATH=$d1 du $args 2>&1) <(PATH=$d2 du $args 2>&1) +done +rm -rf $d1 $d2 |