File: check_parse.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 (22 lines) | stat: -rwxr-xr-x 630 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
#!/bin/sh
#
# $Id: check_parse.sh,v 1.6 2003/05/25 13:14:34 airborne Exp $

. ./settings.sh

# Test parsing of some locally cached entries.  These entries are
# designed to test the parsing of all supported fields.  Mutli-line
# fields are also tested in every possible way.

for id in 12345674 12345675 12345676 12345677 \
          12345678 12345679 1234567a 1234567b 1234567c 1234567d \
          1234567e 1234567f 12345680 12345681 12345682 12345683 ; do
    start_test 'Check parsing for '${id}
    cddb_query -c only -D $CDDB_CACHE read misc $id
    check_read $? $id
done

#
# Print results and exit accordingly
#
finalize