annotate efrtest/Makefile @ 585:3c6bf0d26ee7 default tip

TW-TS-005 reader: fix maximum line length bug TW-TS-005 section 4.1 states: The maximum allowed length of each line is 80 characters, not including the OS-specific newline encoding. The implementation of this line length limit in the TW-TS-005 hex file reader function in the present suite was wrong, such that lines of the full maximum length could not be read. Fix it. Note that this bug affects comment lines too, not just actual RTP payloads. Neither Annex A nor Annex B features an RTP payload format that goes to the maximum of 40 bytes, but if a comment line goes to the maximum allowed length of 80 characters not including the terminating newline, the bug will be triggered, necessitating the present fix.
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 25 Feb 2025 07:49:28 +0000
parents 583dc4cbee95
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
239
b8e095a9e360 efrtest: new program gsmefr-cod2gsmx
Mychaela Falconia <falcon@freecalypso.org>
parents: 164
diff changeset
1 PROGS= gsmefr-cod-parse gsmefr-cod2gsmx gsmefr-dec-parse gsmefr-decode \
548
583dc4cbee95 efrtest: new program gsmefr-decode-tw5-r
Mychaela Falconia <falcon@freecalypso.org>
parents: 547
diff changeset
2 gsmefr-decode-r gsmefr-decode-tw5 gsmefr-decode-tw5-r gsmefr-dlcap-dec \
583dc4cbee95 efrtest: new program gsmefr-decode-tw5-r
Mychaela Falconia <falcon@freecalypso.org>
parents: 547
diff changeset
3 gsmefr-dlcap-gsmx gsmefr-dlcap-parse gsmefr-dlcap-sync gsmefr-encode \
583dc4cbee95 efrtest: new program gsmefr-decode-tw5-r
Mychaela Falconia <falcon@freecalypso.org>
parents: 547
diff changeset
4 gsmefr-encode-r gsmefr-etsi-dec gsmefr-etsi-enc gsmefr-rec2etsi
47
89945a3b576e gsmefr-rec2etsi test program added
Mychaela Falconia <falcon@freecalypso.org>
parents: 29
diff changeset
5 LIBEFR= ../libgsmefr/libgsmefr.a
14
69ed7af28473 gsmfr-encode test program written
Mychaela Falconia <falcon@freecalypso.org>
parents: 12
diff changeset
6 LIBTEST=../libtest/libtest.a
453
19f1aa01ea10 new approach to config & build for ThemWi software
Mychaela Falconia <falcon@freecalypso.org>
parents: 436
diff changeset
7
19f1aa01ea10 new approach to config & build for ThemWi software
Mychaela Falconia <falcon@freecalypso.org>
parents: 436
diff changeset
8 include ../config.defs
12
f88817a233fb gsmfr-decode test program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
9
27
896ce7f1d271 frtest: cn-debug is now gsmfr-max-out
Mychaela Falconia <falcon@freecalypso.org>
parents: 26
diff changeset
10 all: ${PROGS}
12
f88817a233fb gsmfr-decode test program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
11
147
90b9c7c3fa3b gsmefr-cod-parse: use factored-out ETSI bit reader
Mychaela Falconia <falcon@freecalypso.org>
parents: 146
diff changeset
12 gsmefr-cod-parse: cod-parse.o etsi-bit-rd.o ${LIBEFR}
436
e80632ccb745 simplify test program Makefiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 435
diff changeset
13 ${CC} ${CFLAGS} -o $@ $^
115
5a63294fa321 gsmefr-cod-parse test program written
Mychaela Falconia <falcon@freecalypso.org>
parents: 114
diff changeset
14
239
b8e095a9e360 efrtest: new program gsmefr-cod2gsmx
Mychaela Falconia <falcon@freecalypso.org>
parents: 164
diff changeset
15 gsmefr-cod2gsmx: cod2gsmx.o etsi-bit-rd.o
436
e80632ccb745 simplify test program Makefiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 435
diff changeset
16 ${CC} ${CFLAGS} -o $@ $^
239
b8e095a9e360 efrtest: new program gsmefr-cod2gsmx
Mychaela Falconia <falcon@freecalypso.org>
parents: 164
diff changeset
17
146
0fa0cd251a31 gsmefr-dec-parse: use factored-out ETSI bit reader
Mychaela Falconia <falcon@freecalypso.org>
parents: 145
diff changeset
18 gsmefr-dec-parse: dec-parse.o etsi-bit-rd.o ${LIBEFR}
436
e80632ccb745 simplify test program Makefiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 435
diff changeset
19 ${CC} ${CFLAGS} -o $@ $^
131
615f144b52c6 gsmefr-dec-parse utility written
Mychaela Falconia <falcon@freecalypso.org>
parents: 121
diff changeset
20
100
d5bab777865a gsmefr-decode utility written
Mychaela Falconia <falcon@freecalypso.org>
parents: 96
diff changeset
21 gsmefr-decode: decode.o ${LIBTEST} ${LIBEFR}
436
e80632ccb745 simplify test program Makefiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 435
diff changeset
22 ${CC} ${CFLAGS} -o $@ $^
100
d5bab777865a gsmefr-decode utility written
Mychaela Falconia <falcon@freecalypso.org>
parents: 96
diff changeset
23
154
01ce75ea1c8e gsmefr-decode-r utility put together
Mychaela Falconia <falcon@freecalypso.org>
parents: 147
diff changeset
24 gsmefr-decode-r: decode-r.o ${LIBTEST} ${LIBEFR}
436
e80632ccb745 simplify test program Makefiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 435
diff changeset
25 ${CC} ${CFLAGS} -o $@ $^
154
01ce75ea1c8e gsmefr-decode-r utility put together
Mychaela Falconia <falcon@freecalypso.org>
parents: 147
diff changeset
26
547
f9535c1fbf70 efrtest: new program gsmefr-decode-tw5
Mychaela Falconia <falcon@freecalypso.org>
parents: 472
diff changeset
27 gsmefr-decode-tw5: decode-tw5.o ${LIBTEST} ${LIBEFR}
f9535c1fbf70 efrtest: new program gsmefr-decode-tw5
Mychaela Falconia <falcon@freecalypso.org>
parents: 472
diff changeset
28 ${CC} ${CFLAGS} -o $@ $^
f9535c1fbf70 efrtest: new program gsmefr-decode-tw5
Mychaela Falconia <falcon@freecalypso.org>
parents: 472
diff changeset
29
548
583dc4cbee95 efrtest: new program gsmefr-decode-tw5-r
Mychaela Falconia <falcon@freecalypso.org>
parents: 547
diff changeset
30 gsmefr-decode-tw5-r: decode-tw5-r.o ${LIBTEST} ${LIBEFR}
583dc4cbee95 efrtest: new program gsmefr-decode-tw5-r
Mychaela Falconia <falcon@freecalypso.org>
parents: 547
diff changeset
31 ${CC} ${CFLAGS} -o $@ $^
583dc4cbee95 efrtest: new program gsmefr-decode-tw5-r
Mychaela Falconia <falcon@freecalypso.org>
parents: 547
diff changeset
32
164
5f23cb3f0f8d gsmefr-dlcap-dec program written
Mychaela Falconia <falcon@freecalypso.org>
parents: 162
diff changeset
33 gsmefr-dlcap-dec: dlcap-dec.o tidsp.o ${LIBTEST} ${LIBEFR}
436
e80632ccb745 simplify test program Makefiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 435
diff changeset
34 ${CC} ${CFLAGS} -o $@ $^
164
5f23cb3f0f8d gsmefr-dlcap-dec program written
Mychaela Falconia <falcon@freecalypso.org>
parents: 162
diff changeset
35
140
5efc377326da gsmefr-dlcap-gsmx: EFR counterpart to gsmfr-cvt-dlcap
Mychaela Falconia <falcon@freecalypso.org>
parents: 131
diff changeset
36 gsmefr-dlcap-gsmx: dlcap-gsmx.o tidsp.o ${LIBTEST}
436
e80632ccb745 simplify test program Makefiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 435
diff changeset
37 ${CC} ${CFLAGS} -o $@ $^
140
5efc377326da gsmefr-dlcap-gsmx: EFR counterpart to gsmfr-cvt-dlcap
Mychaela Falconia <falcon@freecalypso.org>
parents: 131
diff changeset
38
162
b98aebd94d1f gsmefr-dlcap-parse utility written
Mychaela Falconia <falcon@freecalypso.org>
parents: 156
diff changeset
39 gsmefr-dlcap-parse: dlcap-parse.o tidsp.o ${LIBTEST} ${LIBEFR}
436
e80632ccb745 simplify test program Makefiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 435
diff changeset
40 ${CC} ${CFLAGS} -o $@ $^
162
b98aebd94d1f gsmefr-dlcap-parse utility written
Mychaela Falconia <falcon@freecalypso.org>
parents: 156
diff changeset
41
468
4104b0390fab efrtest: new program gsmefr-dlcap-sync
Mychaela Falconia <falcon@freecalypso.org>
parents: 460
diff changeset
42 gsmefr-dlcap-sync: dlcap-sync.o sync-from-pcma.o sync-from-pcmu.o tidsp.o \
472
d80ccb3c3970 gsmefr-dlcap-sync: use DHF datum in the library
Mychaela Falconia <falcon@freecalypso.org>
parents: 468
diff changeset
43 ${LIBTEST} ${LIBEFR}
468
4104b0390fab efrtest: new program gsmefr-dlcap-sync
Mychaela Falconia <falcon@freecalypso.org>
parents: 460
diff changeset
44 ${CC} ${CFLAGS} -o $@ $^
4104b0390fab efrtest: new program gsmefr-dlcap-sync
Mychaela Falconia <falcon@freecalypso.org>
parents: 460
diff changeset
45
121
b51295fcbbae gsmefr-encode utility written
Mychaela Falconia <falcon@freecalypso.org>
parents: 115
diff changeset
46 gsmefr-encode: encode.o ${LIBTEST} ${LIBEFR}
436
e80632ccb745 simplify test program Makefiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 435
diff changeset
47 ${CC} ${CFLAGS} -o $@ $^
121
b51295fcbbae gsmefr-encode utility written
Mychaela Falconia <falcon@freecalypso.org>
parents: 115
diff changeset
48
156
3f3674c27840 gsmefr-encode-r utility put together
Mychaela Falconia <falcon@freecalypso.org>
parents: 154
diff changeset
49 gsmefr-encode-r: encode-r.o ${LIBTEST} ${LIBEFR}
436
e80632ccb745 simplify test program Makefiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 435
diff changeset
50 ${CC} ${CFLAGS} -o $@ $^
156
3f3674c27840 gsmefr-encode-r utility put together
Mychaela Falconia <falcon@freecalypso.org>
parents: 154
diff changeset
51
435
9f354d2aea13 efrtest: split etsi-dec.c for code reuse
Mychaela Falconia <falcon@freecalypso.org>
parents: 433
diff changeset
52 gsmefr-etsi-dec: etsi-dec.o etsi-bit-rd.o etsi-pcm-out.o ${LIBEFR}
436
e80632ccb745 simplify test program Makefiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 435
diff changeset
53 ${CC} ${CFLAGS} -o $@ $^
96
9cf1355bc071 gsmefr-etsi-dec test program written
Mychaela Falconia <falcon@freecalypso.org>
parents: 47
diff changeset
54
433
51678b070c7a efrtest: split etsi-enc.c for code reuse
Mychaela Falconia <falcon@freecalypso.org>
parents: 239
diff changeset
55 gsmefr-etsi-enc: etsi-enc.o etsi-enc-common.o ${LIBEFR}
436
e80632ccb745 simplify test program Makefiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 435
diff changeset
56 ${CC} ${CFLAGS} -o $@ $^
114
ff0372186b59 gsmefr-etsi-enc test program written
Mychaela Falconia <falcon@freecalypso.org>
parents: 100
diff changeset
57
47
89945a3b576e gsmefr-rec2etsi test program added
Mychaela Falconia <falcon@freecalypso.org>
parents: 29
diff changeset
58 gsmefr-rec2etsi: rec2etsi.o ${LIBTEST} ${LIBEFR}
436
e80632ccb745 simplify test program Makefiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 435
diff changeset
59 ${CC} ${CFLAGS} -o $@ $^
24
94f18b720f1e new debug utility gsmfr-preproc
Mychaela Falconia <falcon@freecalypso.org>
parents: 19
diff changeset
60
17
68a7e86c9868 frtest/Makefile: add install
Mychaela Falconia <falcon@freecalypso.org>
parents: 14
diff changeset
61 install:
460
cb1d1ea7f2c5 new build system: accept more directory options
Mychaela Falconia <falcon@freecalypso.org>
parents: 453
diff changeset
62 mkdir -p ${DESTDIR}${bindir}
cb1d1ea7f2c5 new build system: accept more directory options
Mychaela Falconia <falcon@freecalypso.org>
parents: 453
diff changeset
63 install -c ${PROGS} ${DESTDIR}${bindir}
17
68a7e86c9868 frtest/Makefile: add install
Mychaela Falconia <falcon@freecalypso.org>
parents: 14
diff changeset
64
12
f88817a233fb gsmfr-decode test program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
65 clean:
27
896ce7f1d271 frtest: cn-debug is now gsmfr-max-out
Mychaela Falconia <falcon@freecalypso.org>
parents: 26
diff changeset
66 rm -f *.o *.out ${PROGS}