File: test_filesize

package info (click to toggle)
mp3fs 1.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, trixie
  • size: 888 kB
  • sloc: cpp: 1,884; ansic: 564; sh: 298; makefile: 82
file content (10 lines) | stat: -rwxr-xr-x 291 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
#!/bin/bash

. "${BASH_SOURCE%/*}/funcs.sh"

# Ensure log contains file sizes, predicted and actual
cat "$DIRNAME/obama.mp3" > /dev/null
cat "$DIRNAME/ra[ven].mp3" > /dev/null

check_equal "$(stat -c %s "$DIRNAME/obama.mp3")" 106781
check_equal "$(stat -c %s "$DIRNAME/ra[ven].mp3")" 346594