File: debian-changes

package info (click to toggle)
cvm 0.97-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,096 kB
  • sloc: ansic: 4,065; sh: 2,730; makefile: 29; sql: 15
file content (149 lines) | stat: -rw-r--r-- 4,812 bytes parent folder | download | duplicates (3)
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
The Debian packaging of cvm is maintained using dgit.  For the sake
of an efficient workflow, Debian modifications to the upstream
source are squashed into a single diff, rather than a series of
quilt patches.  To obtain a patch queue for package version
0.97-0.1:

    # apt-get install dgit
    % dgit clone cvm
    % cd foo
    % git log --oneline 0.97-0.1..debian/0.97 -- . ':!debian'
---
 Makefile |  2 +-
 tests.sh | 78 ++++++++++++++++++++++++++++++++++++----------------------------
 2 files changed, 45 insertions(+), 35 deletions(-)

diff --git a/Makefile b/Makefile
index 9abbee1..3d9b7a8 100644
diff --git a/tests.sh b/tests.sh
index 689b6f1..9b1add0 100644
--- cvm-0.97.orig/Makefile
+++ cvm-0.97/Makefile
@@ -368,7 +368,7 @@ sql-query-test: sql-query-test.o load sq
 sql-query-test.o: compile sql-query-test.c credentials.h sql.h
 	./compile sql-query-test.c
 
-sql-query.lo sql-query.o: ltcompile sql-query.c module.h credentials.h errors.h facts.h sql.h
+sql-query.lo sql-query.o &: ltcompile sql-query.c module.h credentials.h errors.h facts.h sql.h
 	./ltcompile sql-query.c
 
 sqlite: cvm-sqlite
--- cvm-0.97.orig/tests.sh
+++ cvm-0.97/tests.sh
@@ -161,34 +161,38 @@ $src/cvm-testclient $src/cvm-sqlite slus
 
 rm $CVM_SQLITE_DB
 }
-vecho "Running test tests/sqlite "
-run_compare_test tests/sqlite  <<END_OF_TEST_RESULTS
-user name:        sluser
-user ID:          123
-group ID:         456
-real name:        realname
-directory:        /home/sluser
-shell:            /bin/false
-group name:       (null)
-system user name: (null)
-system directory: (null)
-domain:           
-mailbox path:     (null)
 
-cvm-testclient: Authentication failed, error #100 (Credentials rejected)
+# In the Debian packaging, sqlite cvm tools are excluded from the build.
+# Excluding this test as well to make the test suite work.
 
-user name:        sluser
-user ID:          234
-group ID:         567
-real name:        sluser2
-directory:        /home/sluser2
-shell:            /bin/true
-group name:       (null)
-system user name: (null)
-system directory: (null)
-domain:           domain
-mailbox path:     (null)
-END_OF_TEST_RESULTS
+# vecho "Running test tests/sqlite "
+# run_compare_test tests/sqlite  <<END_OF_TEST_RESULTS
+# user name:        sluser
+# user ID:          123
+# group ID:         456
+# real name:        realname
+# directory:        /home/sluser
+# shell:            /bin/false
+# group name:       (null)
+# system user name: (null)
+# system directory: (null)
+# domain:           
+# mailbox path:     (null)
+#
+# cvm-testclient: Authentication failed, error #100 (Credentials rejected)
+#
+# user name:        sluser
+# user ID:          234
+# group ID:         567
+# real name:        sluser2
+# directory:        /home/sluser2
+# shell:            /bin/true
+# group name:       (null)
+# system user name: (null)
+# system directory: (null)
+# domain:           domain
+# mailbox path:     (null)
+# END_OF_TEST_RESULTS
 
 
 ##### Test tests/qmail-lookup-assume #####
@@ -297,12 +301,15 @@ $src/cvm-testclient $src/cvm-vmailmgr vi
 
 chmod 444 $home/passwd.cdb
 }
-vecho "Running test tests/vmlookup-notable "
-run_compare_test tests/vmlookup-notable  <<END_OF_TEST_RESULTS
+
+if [ ${_UID} -ne 0 ]; then
+    vecho "Running test tests/vmlookup-notable "
+    run_compare_test tests/vmlookup-notable  <<END_OF_TEST_RESULTS
 cvm-testclient: Authentication failed, error #100 (Credentials rejected)
 out of scope:     1
 cvm-testclient: Authentication failed, error #4 (Input/Output error)
 END_OF_TEST_RESULTS
+fi
 
 
 ##### Test tests/pwfile-crypt #####
@@ -674,9 +681,9 @@ system directory: @TMPDIR@/home
 domain:           test.tld
 mailbox path:     @TMPDIR@/home/virt
 
-0000000: 020a 0108 0100 2430 2470 6173 7300 2e2f  ......\$0\$pass../
-0000010: 7669 7274 0000 002d 002d 002d 002d 0031  virt...-.-.-.-.1
-0000020: 3031 3637 3331 3335 3800 2d00            016731358.-.
+00000000: 020a 0108 0100 2430 2470 6173 7300 2e2f  ......\$0\$pass../
+00000010: 7669 7274 0000 002d 002d 002d 002d 0031  virt...-.-.-.-.1
+00000020: 3031 3637 3331 3335 3800 2d00            016731358.-.
 END_OF_TEST_RESULTS
 
 
@@ -1054,8 +1061,10 @@ chmod 755 $home
 unset CVM_LOOKUP_SECRET
 unset CVM_QMAIL_CHECK_PERMS
 }
-vecho "Running test tests/qmail-lookup-perms "
-run_compare_test tests/qmail-lookup-perms  <<END_OF_TEST_RESULTS
+
+if [ ${_UID} -ne 0 ]; then
+    vecho "Running test tests/qmail-lookup-perms "
+    run_compare_test tests/qmail-lookup-perms  <<END_OF_TEST_RESULTS
 user name:        user
 user ID:          @UID@
 group ID:         @GID@
@@ -1073,6 +1082,7 @@ cvm-testclient: Authentication failed, e
 cvm-testclient: Authentication failed, error #100 (Credentials rejected)
 out of scope:     0
 END_OF_TEST_RESULTS
+fi
 
 
 ##### Test tests/v1lookup #####