Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
BIND
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
583
Issues
583
List
Boards
Labels
Service Desk
Milestones
Merge Requests
110
Merge Requests
110
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ISC Open Source Projects
BIND
Commits
dd45831a
Commit
dd45831a
authored
Jan 28, 2019
by
Evan Hunt
2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
also add -D options for transient named processes started in tests.sh
parent
175d6e9b
Pipeline
#9119
passed with stages
in 18 minutes and 42 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
bin/tests/system/logfileconfig/tests.sh
bin/tests/system/logfileconfig/tests.sh
+1
-1
bin/tests/system/rrl/tests.sh
bin/tests/system/rrl/tests.sh
+1
-1
bin/tests/system/runtime/tests.sh
bin/tests/system/runtime/tests.sh
+4
-4
No files found.
bin/tests/system/logfileconfig/tests.sh
View file @
dd45831a
...
@@ -36,7 +36,7 @@ DLFILE="named_deflog"
...
@@ -36,7 +36,7 @@ DLFILE="named_deflog"
PIDFILE
=
"
${
THISDIR
}
/
${
CONFDIR
}
/named.pid"
PIDFILE
=
"
${
THISDIR
}
/
${
CONFDIR
}
/named.pid"
myRNDC
=
"
$RNDC
-c
${
THISDIR
}
/
${
CONFDIR
}
/rndc.conf"
myRNDC
=
"
$RNDC
-c
${
THISDIR
}
/
${
CONFDIR
}
/rndc.conf"
myNAMED
=
"
$NAMED
-c
${
THISDIR
}
/
${
CONFDIR
}
/named.conf -m record,size,mctx -T clienttest -T nosyslog -d 99 -X named.lock -U 4"
myNAMED
=
"
$NAMED
-c
${
THISDIR
}
/
${
CONFDIR
}
/named.conf -m record,size,mctx -T clienttest -T nosyslog -d 99 -
D logfileconfig-ns1 -
X named.lock -U 4"
# Test given condition. If true, test again after a second. Used for testing
# Test given condition. If true, test again after a second. Used for testing
# filesystem-dependent conditions in order to prevent false negatives caused by
# filesystem-dependent conditions in order to prevent false negatives caused by
...
...
bin/tests/system/rrl/tests.sh
View file @
dd45831a
...
@@ -273,7 +273,7 @@ $DIG $DIGOPTS @$ns4 A a7.tld4 > /dev/null 2>&1
...
@@ -273,7 +273,7 @@ $DIG $DIGOPTS @$ns4 A a7.tld4 > /dev/null 2>&1
grep
"would limit"
ns4/named.run
>
/dev/null 2>&1
||
grep
"would limit"
ns4/named.run
>
/dev/null 2>&1
||
setret
"
\"
would limit
\"
not found in log file."
setret
"
\"
would limit
\"
not found in log file."
$NAMED
-
gc
broken.conf
>
broken.out 2>&1 &
$NAMED
-
D
rrl-ns5
-gc
broken.conf
>
broken.out 2>&1 &
sleep
2
sleep
2
grep
"min-table-size 1"
broken.out
>
/dev/null
||
setret
"min-table-size 0 was not changed to 1"
grep
"min-table-size 1"
broken.out
>
/dev/null
||
setret
"min-table-size 0 was not changed to 1"
...
...
bin/tests/system/runtime/tests.sh
View file @
dd45831a
...
@@ -27,7 +27,7 @@ status=`expr $status + $ret`
...
@@ -27,7 +27,7 @@ status=`expr $status + $ret`
n
=
`
expr
$n
+ 1
`
n
=
`
expr
$n
+ 1
`
echo_i
"verifying that named checks for conflicting named processes (
$n
)"
echo_i
"verifying that named checks for conflicting named processes (
$n
)"
ret
=
0
ret
=
0
(
cd
ns2
;
$NAMED
-c
named-alt2.conf
-D
ns2-extra-2
-X
named.lock
-m
record,size,mctx
-d
99
-g
-U
4
>>
named3.run 2>&1 &
)
(
cd
ns2
;
$NAMED
-c
named-alt2.conf
-D
runtime-
ns2-extra-2
-X
named.lock
-m
record,size,mctx
-d
99
-g
-U
4
>>
named3.run 2>&1 &
)
sleep
2
sleep
2
grep
"another named process"
ns2/named3.run
>
/dev/null
||
ret
=
1
grep
"another named process"
ns2/named3.run
>
/dev/null
||
ret
=
1
pid
=
`
cat
ns2/named3.pid 2>/dev/null
`
pid
=
`
cat
ns2/named3.pid 2>/dev/null
`
...
@@ -38,7 +38,7 @@ status=`expr $status + $ret`
...
@@ -38,7 +38,7 @@ status=`expr $status + $ret`
n
=
`
expr
$n
+ 1
`
n
=
`
expr
$n
+ 1
`
echo_i
"verifying that 'lock-file none' disables process check (
$n
)"
echo_i
"verifying that 'lock-file none' disables process check (
$n
)"
ret
=
0
ret
=
0
(
cd
ns2
;
$NAMED
-c
named-alt3.conf
-D
ns2-extra-3
-m
record,size,mctx
-d
99
-g
-U
4
>>
named4.run 2>&1 &
)
(
cd
ns2
;
$NAMED
-c
named-alt3.conf
-D
runtime-
ns2-extra-3
-m
record,size,mctx
-d
99
-g
-U
4
>>
named4.run 2>&1 &
)
sleep
2
sleep
2
grep
"another named process"
ns2/named4.run
>
/dev/null
&&
ret
=
1
grep
"another named process"
ns2/named4.run
>
/dev/null
&&
ret
=
1
pid
=
`
cat
ns2/named4.pid 2>/dev/null
`
pid
=
`
cat
ns2/named4.pid 2>/dev/null
`
...
@@ -83,7 +83,7 @@ n=`expr $n + 1`
...
@@ -83,7 +83,7 @@ n=`expr $n + 1`
echo_i
"checking that named refuses to start if working directory is not writable (
$n
)"
echo_i
"checking that named refuses to start if working directory is not writable (
$n
)"
ret
=
0
ret
=
0
cd
ns2
cd
ns2
$NAMED
-c
named-alt4.conf
-d
99
-g
>
named4.run 2>&1 &
$NAMED
-c
named-alt4.conf
-
D
runtime-ns2-extra-4
-
d
99
-g
>
named4.run 2>&1 &
sleep
2
sleep
2
grep
"exiting (due to fatal error)"
named4.run
>
/dev/null
||
ret
=
1
grep
"exiting (due to fatal error)"
named4.run
>
/dev/null
||
ret
=
1
# pidfile could be in either place depending on whether the directory
# pidfile could be in either place depending on whether the directory
...
@@ -100,7 +100,7 @@ n=`expr $n + 1`
...
@@ -100,7 +100,7 @@ n=`expr $n + 1`
echo_i
"checking that named refuses to start if managed-keys-directory is not writable (
$n
)"
echo_i
"checking that named refuses to start if managed-keys-directory is not writable (
$n
)"
ret
=
0
ret
=
0
cd
ns2
cd
ns2
$NAMED
-c
named-alt5.conf
-d
99
-g
>
named5.run 2>&1 &
$NAMED
-c
named-alt5.conf
-
D
runtime-ns2-extra-5
-
d
99
-g
>
named5.run 2>&1 &
sleep
2
sleep
2
grep
"exiting (due to fatal error)"
named5.run
>
/dev/null
||
ret
=
1
grep
"exiting (due to fatal error)"
named5.run
>
/dev/null
||
ret
=
1
# pidfile could be in either place depending on whether the directory
# pidfile could be in either place depending on whether the directory
...
...
Evan Hunt
@each
mentioned in commit
96bf857b
·
Jan 29, 2019
mentioned in commit
96bf857b
mentioned in commit 96bf857b6561a71bd8ef76b93fbd8afeb6adfaa8
Toggle commit list
Evan Hunt
@each
mentioned in commit
dd54a081
·
Jan 29, 2019
mentioned in commit
dd54a081
mentioned in commit dd54a08163ce016533a00fd657261e5d15ed86bb
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment