File: listcodenames.test

package info (click to toggle)
reprepro 5.4.8-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 3,700 kB
  • sloc: ansic: 53,795; python: 1,625; sh: 1,417; makefile: 120
file content (41 lines) | stat: -rw-r--r-- 789 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
37
38
39
40
41
set -u
. "$TESTSDIR"/test.inc

testrun - -b . _listcodenames 3<<EOF
return 254
stderr
*=Error opening config file './conf/distributions': No such file or directory(2)
-v0*=There have been errors!
stdout
EOF
mkdir -p conf
touch conf/distributions
testrun - -b . _listcodenames 3<<EOF
return 249
stderr
*=No distribution definitions found in ./conf/distributions!
-v0*=There have been errors!
stdout
EOF
cat > conf/distributions <<EOF
Codename: foo/updates
Suite: suitename
Components: a bb ccc dddd
UDebComponents: a dddd
Architectures: x source
EOF
testrun - -b . _listcodenames 3<<EOF
stderr
stdout
*=foo/updates
EOF
testrun - -b . --nothingiserror _listcodenames 3<<EOF
stderr
stdout
*=foo/updates
EOF
dodo test ! -d db
dodo test ! -d pool
dodo test ! -d dists
rm -r -f conf
testsuccess