Copy cache.in to cache before running the test, so it's not overwritten on

exit.
This commit is contained in:
Brian Wellington 2001-01-12 22:14:59 +00:00
parent 2af7771427
commit 619ee46ac6
4 changed files with 24 additions and 5 deletions

View file

@ -15,12 +15,10 @@
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
# $Id: clean.sh,v 1.4 2001/01/09 21:43:17 bwelling Exp $
# $Id: clean.sh,v 1.5 2001/01/12 22:14:55 bwelling Exp $
#
# Clean up after glue tests.
#
rm -f dig.out
rm -f dig.out ns1/cache

View file

@ -1 +1,2 @@
named.run
cache

View file

@ -13,7 +13,7 @@
; NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
; WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
; $Id: cache,v 1.4 2001/01/09 21:43:20 bwelling Exp $
; $Id: cache.in,v 1.1 2001/01/12 22:14:59 bwelling Exp $
; Preloaded cache data for glue test

View file

@ -0,0 +1,20 @@
#!/bin/sh
#
# Copyright (C) 2000, 2001 Internet Software Consortium.
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
# DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
# INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
# $Id: setup.sh,v 1.1 2001/01/12 22:14:56 bwelling Exp $
cd ns1 && cp cache.in cache