Skip to content

Commit

Permalink
more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
deadc0de6 committed Feb 15, 2024
1 parent b1e1466 commit 5098e5b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests-ng/test-du.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ echo "--- 2 ---"
du -c --block=1 "${cur}/../cmd/gocatcli"
echo "--- 3 ---"
du -c --apparent-size "${cur}/../cmd/gocatcli"
echo "--- 4 ---"
du -c "${cur}/../cmd/gocatcli"
echo "--- 5 ---"
ls -lah "${cur}/../cmd/gocatcli"
expected=$(du -c --block=1 --apparent-size "${cur}/../cmd/gocatcli" | tail -1 | awk '{print $1}')
size=$(grep '^.* *gocatcli/cmd/gocatcli$' "${out}" | awk '{print $1}')
echo "size:${size} VS exp:${expected}"
Expand Down

0 comments on commit 5098e5b

Please sign in to comment.