From abee442c1eff2553f02c02cc4537e5cbff278ecd Mon Sep 17 00:00:00 2001 From: David Garske Date: Tue, 22 Oct 2019 15:36:04 -0700 Subject: [PATCH] Useful script to cleanup test files created. --- scripts/cleanup_testfiles.sh | 14 ++++++++++++++ scripts/include.am | 2 ++ 2 files changed, 16 insertions(+) create mode 100755 scripts/cleanup_testfiles.sh diff --git a/scripts/cleanup_testfiles.sh b/scripts/cleanup_testfiles.sh new file mode 100755 index 000000000..c7f3885fc --- /dev/null +++ b/scripts/cleanup_testfiles.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +# Script to cleanup test files +# This is helpful if running ./tests/unit.test as sudo, +# which creates these files with sudoer permissions and +# will cause issues on subsequent tests without sudo + +rm -f ./tests/bio_write_test.txt +rm -f ./test-write-dhparams.pem +rm -f ./certeccrsa.pem +rm -f ./certeccrsa.der +rm -f ./ecc-key.der +rm -f ./ecc-key.pem +rm -f ./ecc-public-key.der diff --git a/scripts/include.am b/scripts/include.am index 268e3ec00..195dae78a 100644 --- a/scripts/include.am +++ b/scripts/include.am @@ -94,3 +94,5 @@ EXTRA_DIST += scripts/dertoc.pl # for use with wolfssl-x.x.x-commercial-fips-stm32l4-v2 EXTRA_DIST += scripts/stm32l4-v4_0_1_build.sh + +EXTRA_DIST += scripts/cleanup_testfiles.sh