| 1 | #!/usr/bin/python |
|---|
| 2 | # -*- coding: utf-8 -*- |
|---|
| 3 | # Copyright © 2009 by Karl Ramm |
|---|
| 4 | # |
|---|
| 5 | # All rights reserved. |
|---|
| 6 | # |
|---|
| 7 | # Permission to use, copy, modify, and distribute this software and |
|---|
| 8 | # its documentation for any purpose and without fee is hereby granted, |
|---|
| 9 | # provided that the above copyright notice appear in all copies and |
|---|
| 10 | # that both that copyright notice and this permission notice appear in |
|---|
| 11 | # supporting documentation, and that the name of Karl Ramm not be used |
|---|
| 12 | # in advertising or publicity pertaining to distribution of the |
|---|
| 13 | # software without specific, written prior permission. |
|---|
| 14 | # |
|---|
| 15 | # KARL RAMM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, |
|---|
| 16 | # INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN |
|---|
| 17 | # NO EVENT SHALL KARL RAMM BE LIABLE FOR ANY SPECIAL, INDIRECT OR |
|---|
| 18 | # CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS |
|---|
| 19 | # OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, |
|---|
| 20 | # NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION |
|---|
| 21 | # WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
|---|
| 22 | |
|---|
| 23 | import nservers |
|---|
| 24 | |
|---|
| 25 | class TestBrainDump(nservers.TestMultipleServers): |
|---|
| 26 | def test(self): |
|---|
| 27 | super(TestBrainDump, self).test() |
|---|
| 28 | |
|---|
| 29 | self.client.run('klist') |
|---|
| 30 | |
|---|
| 31 | zwgc = self.zwgc() |
|---|
| 32 | |
|---|
| 33 | zwgc.receivetest() |
|---|
| 34 | |
|---|
| 35 | for t in self.servers: |
|---|
| 36 | t.run('/etc/init.d/zephyrd restart') |
|---|
| 37 | self.serverwait() |
|---|
| 38 | |
|---|
| 39 | zwgc.receivetest() |
|---|
| 40 | zwgc.shutdown() |
|---|
| 41 | |
|---|
| 42 | if __name__ == '__main__': |
|---|
| 43 | TestBrainDump().run() |
|---|