web
Last change
on this file since f6f3e91 was
f6f3e91,
checked in by Jessica B. Hamrick <jhamrick@…>, 15 years ago
|
Preserve directory hierarchy (not sure what happened to it)
|
-
Property mode set to
100755
|
File size:
1.0 KB
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | # |
---|
3 | # Test suite for various server functions. |
---|
4 | # |
---|
5 | # Written by Russ Allbery <rra@stanford.edu> |
---|
6 | # Copyright 2006, 2007, 2009 Board of Trustees, Leland Stanford Jr. University |
---|
7 | # |
---|
8 | # See LICENSE for licensing terms. |
---|
9 | |
---|
10 | . "$SOURCE/tap/libtap.sh" |
---|
11 | . "$SOURCE/tap/kerberos.sh" |
---|
12 | . "$SOURCE/tap/remctl.sh" |
---|
13 | cd "$BUILD" |
---|
14 | |
---|
15 | # Test setup. |
---|
16 | kerberos_setup |
---|
17 | if [ $? != 0 ] ; then |
---|
18 | skip_all "Kerberos tests not configured" |
---|
19 | else |
---|
20 | plan 2 |
---|
21 | fi |
---|
22 | remctl="$BUILD/../client/remctl" |
---|
23 | if [ ! -x "$remctl" ] ; then |
---|
24 | bail "can't locate remctl client binary" |
---|
25 | fi |
---|
26 | remctld_start "$BUILD/../server/remctld" "$SOURCE/data/conf-simple" |
---|
27 | |
---|
28 | # Run the tests. |
---|
29 | ok_program "file descriptors closed properly on server" 0 "Okay" \ |
---|
30 | "$remctl" -s "$principal" -p 14373 localhost test closed |
---|
31 | ok_program "server returns despite background process" 0 "Parent" \ |
---|
32 | "$remctl" -s "$principal" -p 14373 localhost test background |
---|
33 | |
---|
34 | # Clean up. |
---|
35 | if [ -f "$BUILD/data/cmd-background.pid" ] ; then |
---|
36 | kill `cat "$BUILD/data/cmd-background.pid"` |
---|
37 | rm -f "$BUILD/data/cmd-background.pid" |
---|
38 | fi |
---|
39 | remctld_stop |
---|
40 | kerberos_cleanup |
---|
Note: See
TracBrowser
for help on using the repository browser.