Skip to content

Commit f04fedf

Browse files
committed
Enable x509 ca and req tests on Windows
- Use absolute paths with forward slashes for all temp files via _tmp() helper so wolfSSL recognizes them correctly - Use explicit UTF-8 encoding with LF newlines when writing config files so wolfSSL's NCONF_load can parse them on Windows - Remove $dir variable expansion in config templates; use direct absolute paths to CERTS_DIR instead - Pass bare filenames to ca -out (not absolute paths) since wolfSSL prepends new_certs_dir and doesn't recognize drive-letter paths as absolute - Export PROJECT_ROOT from wolfclu_test.py for test file path helpers
1 parent a2437e4 commit f04fedf

3 files changed

Lines changed: 282 additions & 237 deletions

File tree

tests/wolfclu_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
_TESTS_DIR = os.path.dirname(os.path.abspath(__file__))
1010
_PROJECT_ROOT = os.path.dirname(_TESTS_DIR)
11+
PROJECT_ROOT = _PROJECT_ROOT
1112

1213

1314
def _find_wolfssl_bin():

0 commit comments

Comments
 (0)