Browse Source

Changed the log dump txt file's directory to include /tests and added it to make clean

Ethan Looney 3 years ago
parent
commit
563806c497
3 changed files with 4 additions and 3 deletions
  1. 2 1
      Makefile.am
  2. 1 1
      scripts/cleanup_testfiles.sh
  3. 1 1
      tests/api.c

+ 2 - 1
Makefile.am

@@ -118,7 +118,8 @@ CLEANFILES+= cert.der \
              pkcs7signedEncryptedCompressedFirmwarePkgData_ECDSA_SHA256.der \
              pkcs7signedEncryptedCompressedFirmwarePkgData_ECDSA_SHA256_noattr.der \
              pkcs7signedEncryptedCompressedFirmwarePkgData_RSA_SHA256.der \
-             pkcs7signedEncryptedCompressedFirmwarePkgData_RSA_SHA256_noattr.der
+             pkcs7signedEncryptedCompressedFirmwarePkgData_RSA_SHA256_noattr.der \
+             tests/test-log-dump-to-file.txt
 
 exampledir = $(docdir)/example
 dist_example_DATA=

+ 1 - 1
scripts/cleanup_testfiles.sh

@@ -12,4 +12,4 @@ rm -f ./certeccrsa.der
 rm -f ./ecc-key.der
 rm -f ./ecc-key.pem
 rm -f ./ecc-public-key.der
-rm -f ./test-log-dump-to-file.txt
+rm -f ./tests/test-log-dump-to-file.txt

+ 1 - 1
tests/api.c

@@ -27192,7 +27192,7 @@ static int test_wc_ERR_print_errors_fp (void)
     printf(testingFmt, "wc_ERR_print_errors_fp()");
 
     WOLFSSL_ERROR(BAD_FUNC_ARG);
-    XFILE fp = XFOPEN("./test-log-dump-to-file.txt", "ar");
+    XFILE fp = XFOPEN("./tests/test-log-dump-to-file.txt", "ar");
     wc_ERR_print_errors_fp(fp);
 
     AssertTrue(XFSEEK(fp, 0, XSEEK_END) == 0);