With current coreutils source from git, one test fails on my machine. It is a Fedora 9 box with a few Windows filesystems mounted. Here is the tests/test- suite.log.
=========================================================== GNU coreutils 7.0.5-42df6-dirty: tests/test-suite.log =========================================================== 1 of 353 tests failed. (44 tests were not run). .. contents:: :depth: 2 FAIL: df/total-awk.log (exit: 1) ================================ + ls --version ls (GNU coreutils) 7.0.5-42df6-dirty Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by Richard M. Stallman and David MacKenzie. + . ./test-lib.sh ++ unset function_test ++ eval 'function_test() { return 11; }; function_test' +++ function_test +++ return 11 ++ test 11 '!=' 11 +++ pwd ++ test_dir_=/home/eda/git_working/coreutils/tests +++ this_test_ +++ echo ././df/total-awk +++ sed 's,.*/,,' ++ this_test=total-awk +++ /home/eda/git_working/coreutils/src/mktemp -d -- tmp=/home/eda/git_working/coreutils/tests cu-total-awk.XXXXXXXXXX ++ t_=/home/eda/git_working/coreutils/tests/cu-total-awk.gT1QMUWGvo ++ trap remove_tmp_ 0 ++ trap 'Exit $?' 1 2 13 15 ++ cd /home/eda/git_working/coreutils/tests/cu-total-awk.gT1QMUWGvo ++ diff --version ++ grep GNU + fail=0 + umask 22 + echo ' BEGIN { total = 0 used = 0 available = 0 } { if (NR==1 || $0==$1 || $0~/^total +(-?[0-9]+|-) +(-?[0-9]+|-) +(-?[0-9]+|-) +-?[0-9]+%$/) next if ($1~/^[0-9]/) { total += $1 used += $2 available += $3 } else { total += $2 used += $3 available += $4 } } END { print total print used print available } ' + echo ' /^total +(-?[0-9]+|-) +(-?[0-9]+|-) +(-?[0-9]+|-) +-?[0-9]+%$/ { print $2; print $3; print $4 } ' + df --block-size=512 --total + tee tmp Filesystem 512B-blocks Used Available Use% Mounted on /dev/mapper/VolGroup00-LogVol00 30218224 20334128 8324344 71% / /dev/sda1 202172 49990 141744 27% /boot tmpfs 2074920 96 2074824 1% /dev/shm //wcl-fp1/users 384801112 288044832 96756280 75% /mnt/users //wcl-fp1/shared 384801112 288044832 96756280 75% /mnt/shared //wcl-fp1/systems 384801112 288044832 96756280 75% /mnt/systems //wcl-fp2/research 1146724760 1054703624 92021136 92% /mnt/research //wcl-prod/wwwroot 41950520 28946968 13003552 70% /mnt/prod_wwwroot //wcl-cr/crdprodorderimport 242670232 84690984 157979248 35% /mnt/crdprodorderimport //wcl-prod/log 41950520 28946968 13003552 70% /mnt/prod_log //wcl-prod2/log 143289560 16162712 127126848 12% /mnt/prod2_log //wcl-prod-dr/log 41950520 19097328 22853192 46% /mnt/prod-dr_log //wcl-bt1/log 145195400 45603352 99592048 32% /mnt/bt1_log //wcl-ws13/log 139476264 25230736 114245528 19% /mnt/ws13_log //wcl-ws44/log 156280256 133967288 22312968 86% /mnt/ws44_log //wcl-trademanager/log 156280256 16683232 139597024 11% /mnt/trademanager_log //wcl-prod/C$ 41950520 28946968 13003552 70% /mnt/wcl-prod //wcl-prod2/C$ 143289560 16162712 127126848 12% /mnt/wcl-prod2 //wcl-prod-dr/C$ 41950520 19097328 22853192 46% /mnt/wcl-prod-dr //wcl-bt1/C$ 145195400 45603352 99592048 32% /mnt/wcl-bt1 //wcl-ws13/C$ 139476264 25230736 114245528 19% /mnt/wcl-ws13 //wcl-ws44/C$ 156280256 133967288 22312968 86% /mnt/wcl-ws44 total 4110809460 2607560286 1501678984 64% + gawk -f compute_sum.awk tmp + gawk -f parse_total.awk tmp + compare out1 out2 + diff -u out1 out2 --- out1 2008-10-10 20:22:10.000000000 +0100 +++ out2 2008-10-10 20:22:10.000000000 +0100 @@ -1,3 +1,3 @@ -4.11081e+09 -2.60756e+09 +4110809460 +2607560286 1501678984 + fail=1 + df -i --block-size=512 --total + tee tmp Filesystem Inodes IUsed IFree IUse% Mounted on /dev/mapper/VolGroup00-LogVol00 3899392 390616 3508776 11% / /dev/sda1 26104 44 26060 1% /boot tmpfs 223850 2 223848 1% /dev/shm //wcl-fp1/users 0 0 0 - /mnt/users //wcl-fp1/shared 0 0 0 - /mnt/shared //wcl-fp1/systems 0 0 0 - /mnt/systems //wcl-fp2/research 0 0 0 - /mnt/research //wcl-prod/wwwroot 0 0 0 - /mnt/prod_wwwroot //wcl-cr/crdprodorderimport 0 0 0 - /mnt/crdprodorderimport //wcl-prod/log 0 0 0 - /mnt/prod_log //wcl-prod2/log 0 0 0 - /mnt/prod2_log //wcl-prod-dr/log 0 0 0 - /mnt/prod-dr_log //wcl-bt1/log 0 0 0 - /mnt/bt1_log //wcl-ws13/log 0 0 0 - /mnt/ws13_log //wcl-ws44/log 0 0 0 - /mnt/ws44_log //wcl-trademanager/log 0 0 0 - /mnt/trademanager_log //wcl-prod/C$ 0 0 0 - /mnt/wcl-prod //wcl-prod2/C$ 0 0 0 - /mnt/wcl-prod2 //wcl-prod-dr/C$ 0 0 0 - /mnt/wcl-prod-dr //wcl-bt1/C$ 0 0 0 - /mnt/wcl-bt1 //wcl-ws13/C$ 0 0 0 - /mnt/wcl-ws13 //wcl-ws44/C$ 0 0 0 - /mnt/wcl-ws44 total 4149346 390662 3758684 10% + gawk -f compute_sum.awk tmp + gawk -f parse_total.awk tmp + compare out1 out2 + diff -u out1 out2 + Exit 1 + set +e + exit 1 + exit 1 + remove_tmp_ + __st=1 + cleanup_ + : + cd /home/eda/git_working/coreutils/tests + chmod -R u+rwx /home/eda/git_working/coreutils/tests/cu-total-awk.gT1QMUWGvo + rm -rf /home/eda/git_working/coreutils/tests/cu-total-awk.gT1QMUWGvo + exit 1 _______________________________________________ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-coreutils