]> ruderich.org/simon Gitweb - tlsproxy/tlsproxy.git/blobdiff - tests/common.sh
tests: Correctly handle cleanup of (temporary) files.
[tlsproxy/tlsproxy.git] / tests / common.sh
index 05641db98ad8482141a03acc9f87ae64eef64f33..e006698ab397d0e6fe480ef2293b07f65d2d644a 100644 (file)
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 
+cleanup() {
+    rm -f \
+        certificate-localhost-proxy.pem certificate-localhost-server.pem \
+        proxy-ca-key.pem proxy-ca.pem proxy-invalid.pem proxy-key.pem
+}
 abort() {
     echo abort
     pkill -n gnutls-serv