File: check_discid.sh

package info (click to toggle)
libcddb 1.3.2-6
  • links: PTS
  • area: main
  • in suites: bullseye, buster
  • size: 2,276 kB
  • sloc: sh: 10,946; ansic: 4,721; makefile: 44
file content (36 lines) | stat: -rwxr-xr-x 831 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/sh
#
# $Id: check_discid.sh,v 1.6 2004/07/18 07:15:49 airborne Exp $

. ./settings.sh

#
# Check disc ID calculation of empty disc
#
DISCID='00000000'
start_test 'Check disc ID for '${DISCID}
cddb_query calc 0 0
check_discid $? ${DISCID}

#
# Check disc ID calculation of real disc
#
DISCID='920ef00b'
start_test 'Check disc ID calculation for '${DISCID}
cddb_query calc 3826 11 150 28615 51027 75835 102620 121460 148977 \
                175697 204322 231082 268002
check_discid $? ${DISCID}

#
# Check disc ID calculation of real disc (using track timing)
#
DISCID='03100912'
start_test 'Check disc ID calculation for '${DISCID}
cddb_query -t calc 4107 18 25 391 286 337 247 221 118 267 318 285 \
                   67 313 25 342 78 206 21 560
check_discid $? ${DISCID}

#
# Print results and exit accordingly
#
finalize