tests: fix unit tests to run with a dynamic log directory

Ref: #10818
This commit is contained in:
Dan Fandrich 2023-03-28 22:30:50 -07:00
parent e7a021e135
commit 6e3734f74f
9 changed files with 29 additions and 32 deletions

View file

@ -18,6 +18,9 @@ unittest
<name>
netrc parsing unit tests
</name>
<command>
%LOGDIR/netrc%TESTNUMBER
</command>
<file name="%LOGDIR/netrc%TESTNUMBER">
machine example.com login admin password passwd
machine curl.example.com login none password none

View file

@ -21,6 +21,9 @@ Mime
<name>
formpost unit tests
</name>
<command>
%LOGDIR/test-%TESTNUMBER
</command>
<file name="%LOGDIR/test-%TESTNUMBER">
Piece of the file that is to uploaded as a formpost
</file>

View file

@ -15,7 +15,7 @@ unittest
HSTS
</features>
<file name="%LOGDIR/input%TESTNUMBER">
<file name="%LOGDIR/hsts%TESTNUMBER">
# Your HSTS cache. https://curl.se/docs/hsts.html
# This file was generated by libcurl! Edit at your own risk.
.readfrom.example "20211001 04:47:41"
@ -31,7 +31,7 @@ CURL_TIME=1548369261
HSTS
</name>
<command>
-
%LOGDIR/hsts%TESTNUMBER
</command>
</client>
@ -72,7 +72,7 @@ expire.example [expire.example]: 1548369268
'expire.example' is not HSTS
'expire.example' is not HSTS
</stdout>
<file name="%LOGDIR/hsts%TESTNUMBER" mode="text">
<file name="%LOGDIR/hsts%TESTNUMBER.save" mode="text">
# Your HSTS cache. https://curl.se/docs/hsts.html
# This file was generated by libcurl! Edit at your own risk.
.new.example "unlimited"

View file

@ -18,5 +18,8 @@ unittest
<name>
curl_get_line unit tests
</name>
<command>
%LOGDIR/curl_get_line%TESTNUMBER
</command>
</client>
</testcase>