3 AT_SETUP([dpkg-deb .deb conffiles])
4 AT_KEYWORDS([dpkg-deb deb conffiles])
6 DPKG_GEN_CONTROL([pkg-conff-dupe])
7 DPKG_GEN_FILE([pkg-conff-dupe], [conffiles], [/test-conffile-1
10 AT_DATA([pkg-conff-dupe/test-conffile-1], [test init
12 AT_DATA([pkg-conff-dupe/test-conffile-2], [test init
15 # Duplicate conffile entries should produce a warning.
16 dpkg-deb -b pkg-conff-dupe
17 ], [0], [ignore], [dpkg-deb: warning: conffile name '/test-conffile-1' is duplicated
18 dpkg-deb: warning: ignoring 1 warning about the control file(s)
21 DPKG_GEN_CONTROL([pkg-conff-noel])
22 printf "/test-conffile-1" >"pkg-conff-noel/DEBIAN/conffiles"
23 AT_DATA([pkg-conff-noel/test-conffile-1], [test init
26 # Conffiles need a final newline to guarantee there's been no accidental
28 dpkg-deb -b pkg-conff-noel pkg-conff-noel.deb
29 ], [2], [ignore], [dpkg-deb: error: conffile name '/test-conffile-1' is too long, or missing final newline
32 DPKG_GEN_CONTROL([pkg-deb-newline])
33 touch 'pkg-deb-newline/file
36 # Cannot create package with newlines in filenames.
37 dpkg-deb -b pkg-deb-newline
38 ], [2], [ignore], [dpkg-deb: error: newline not allowed in pathname './file