1#!/bin/sh 2# 3# Copyright (C) Internet Systems Consortium, Inc. ("ISC") 4# 5# This Source Code Form is subject to the terms of the Mozilla Public 6# License, v. 2.0. If a copy of the MPL was not distributed with this 7# file, You can obtain one at http://mozilla.org/MPL/2.0/. 8# 9# See the COPYRIGHT file distributed with this work for additional 10# information regarding copyright ownership. 11 12# 13# Clean up after system tests. 14# 15 16SYSTEMTESTTOP=. 17. $SYSTEMTESTTOP/conf.sh 18 19 20find . -type f \( \ 21 -name '*~' -o -name 'core' -o -name '*.core' \ 22 -o -name '*.log' -o -name '*.pid' -o -name '*.keyset' \ 23 -o -name named.run -o -name ans.run \ 24 -o -name '*-valgrind-*.log' \) -print | xargs rm -f 25 26status=0 27 28rm -f $SYSTEMTESTTOP/random.data 29 30for d in $SUBDIRS 31do 32 test ! -f $d/clean.sh || ( cd $d && $SHELL clean.sh ) 33 rm -f test.output.$d 34 test -d $d && find $d -type d -exec rmdir '{}' \; 2> /dev/null 35done 36