aboutsummaryrefslogtreecommitdiff
path: root/tcl_tests
AgeCommit message (Collapse)AuthorFilesLines
2024-03-22tcl_tests: ca.try: Ignore openssl crl exit status for 'corrupted CRL' testHEADmasterVitaly Chikunov1-2/+1
Older `openssl crl` exits with 0 in regard to verify no matter actual verify status, newer `openssl crl` could exit with 1 on verify failure. Make the test backward-compatible comparing only an output. Fixes: https://github.com/gost-engine/engine/issues/452 Signed-off-by: Vitaly Chikunov <vt@altlinux.org>
2024-03-22tcl_tests: Introduce new exitStatus -1 to ignore exit codesVitaly Chikunov1-1/+2
It's proposed[1] that crl and req change exit code making it unreliable for some commands. Allow tests to ignore exit codes by specifying expected exit code `-1`. This will also make such tests to always use regexp match mode. Also, slightly fix the logic of applying regexp. Commentary says test _parameter_ (`exitStatus`) 1 is used to trigger regexp matching but in fact actual command exit code (`status`) 1 is used for that. This change did not cause any test result difference. Link: https://github.com/openssl/openssl/pull/23773 Signed-off-by: Vitaly Chikunov <vt@altlinux.org>
2023-07-28Adjust CA test according to new wordingv3.0.2Dmitry Belyavskiy1-3/+3
2022-12-02Implementation of the MGM mode for magma/kuznyechikigrkir1-1/+1
first implemented in ossl_patched branch uses dynamic NIDs Signed-off-by: Sergei Ianovich <sergei.ianovich@ya.ru>
2022-09-25updating CA constraintsDmitry Belyavskiy1-1/+23
2022-08-11Add magma-ecb mode. Fixes #410Mark Fedorov1-2/+2
2022-05-04Make TLS tests on SECLEVEL 0Dmitry Belyavskiy1-14/+14
As https://github.com/openssl/openssl/pull/18236 is going to ban SSL3, TLS1, TLS1.1 and DTLS1.0 at security level one and above, we have to adjust GOST TLS tests.
2021-10-07Explicitly provide SECLEVEL for TLS testsDmitry Belyavskiy1-14/+14
2021-09-16We don't want depend on spacing around equal signDmitry Belyavskiy3-26/+26
...in DN output
2021-03-30Don't put test results or intermediary files in the source treeRichard Levitte5-11/+31
When building in a directory that's separate from the source directory, test results should end up in the build directory, not the source directory. Essentially, unless you do build in the source directory, it should be regarded as read-only when building.
2021-01-20Fixed tests to match the current messagesDmitry Belyavskiy2-8/+8
2020-11-28Tests updated to support GOST2001DHDmitry Belyavskiy1-1/+1
2020-08-28Tests adjustmentDmitry Belyavskiy1-7/+7
2020-08-20Update test to match current openssl messagesDmitry Belyavskiy3-13/+13
2020-08-13SSL tests fixDmitry Belyavskiy1-7/+7
2020-05-10Finally normally passing MAC testsDmitry Belyavskiy2-22/+21
2020-05-10Restore kuznyechik-mac testDmitry Belyavskiy1-4/+4
2020-05-10Reenable some hmac testsDmitry Belyavskiy1-15/+15
2020-05-09Enabling TC26 CMS testsDmitry Belyavskiy4-10/+28
2020-05-09magma-ctr-acpkm + magma-ctr-acpkm-omacDmitry Belyavskiy1-1/+1
2020-05-06-debug_decrypt optionDmitry Belyavskiy1-10/+10
2020-05-06Update rsa cms/smime tests to avoid regressionDmitry Belyavskiy1-1/+1
2020-05-06Allow IANA ciphersuiteDmitry Belyavskiy1-1/+1
2020-05-06Fix failing ssl testsDmitry Belyavskiy1-6/+6
2020-05-04Update CA verification testDmitry Belyavskiy1-6/+2
2020-05-04Typo in CA verify commandDmitry Belyavskiy1-1/+1
2020-05-04Fixing ca cert verificationDmitry Belyavskiy1-1/+1
2020-05-04Temporary commented out weird failureDmitry Belyavskiy1-3/+4
2020-05-04Try to make mac test happyDmitry Belyavskiy1-17/+18
2020-05-04TCL engine test updatedDmitry Belyavskiy1-1/+1
2020-01-12tcl_tests: Abbreviate output when run under CIVitaly Chikunov1-1/+15
To make CI output not too long - output only header of every test set and output only relevant log entries on test failures. When `CI' env is defined. Which should be defined for both Travis and Cirrus. Reference: https://docs.travis-ci.com/user/environment-variables/ https://cirrus-ci.org/guide/writing-tasks/#environment-variables
2020-01-12tcl_tests: Rearrange runtest.sh to run from dirrerent envVitaly Chikunov1-1/+8
Add more debug output to fix Travis-CI issues. Move definition of OPENSSL_CONF above first tcl test run. Define OPENSSL_ENGINES from ENGINE_DIR by default.
2020-01-12tcl_tests: Fix ocsp test by removing -md_gost94 optionVitaly Chikunov1-2/+2
Otherwise you'll get: ocsp: Digest must be before -cert or -serial ocsp: Use -help for summary.
2020-01-12tcl_tests: Disable failing ssl tests and suitesVitaly Chikunov1-4/+4
Remove GOST2012-MAGMA-MAGMAOMAC and GOST2012-KUZNYECHIK-KUZNYECHIKOMAC suites from the test. Disable handshake tests.
2020-01-12tcl_tests: Fix cms and smime_io tests by telling that signature is -binaryVitaly Chikunov2-2/+2
Verification failure 139891902039680:error:2E09A09E:CMS routines:CMS_SignerInfo_verify_content:verification failure:crypto/cms/cms_sd.c:848: 139891902039680:error:2E09D06D:CMS routines:CMS_verify:content verify error:crypto/cms/cms_smime.c:393:
2020-01-12tcl_tests: Fix smimeenc test by removing entries with empty paramsVitaly Chikunov2-2/+2
This is not robust to have such tests.
2020-01-12tcl_tests: Fix and update enc testVitaly Chikunov1-33/+39
- Set expected default value for CRYPT_PARAMS. - Disable `RIC 1' params tests. - Disable `Magma-ACPKM' test. - Update test descriptions to include cipher name.
2020-01-12tcl_tests: Fix and extend ca testVitaly Chikunov2-8/+29
- Add more curves to test. - Properly handle R 1323565.1.023-2018 (5.2.1.2) - absence of digestParamSet for some curves.
2020-01-12tcl_tests: Add more parameters to pkcs12 testVitaly Chikunov1-1/+10
2020-01-12tcl_tests: Fix and extend req-newkey test (with TC26 parameters)Vitaly Chikunov1-1/+7
`gost2012_512:C' was reported as invalid but it's now valid parameter. Also, add TC26 `TC{A,B,C,D}' parameters (note different OIDs).
2020-01-12tcl_tests: Fix req-genpkey test (show OID for gost2012_256:0)Vitaly Chikunov1-1/+1
2020-01-12tcl_tests: Fix pkcs8 test (showing public key)Vitaly Chikunov1-0/+9
2020-01-12tcl_tests: Allow running tests separatelyVitaly Chikunov1-0/+6
For debug purposes. Example: sh ./runtest.sh dgst pkcs8
2020-01-12tcl_tests: Fix engine.try (add more algos)Vitaly Chikunov1-1/+1
2020-01-12tcl_tests: Integrate TCL tests into build systemVitaly Chikunov3-5/+24
Run `make tcl_tests' to run the tests. Tests report success state to make. Tests aren't run by default because of too many failures, yet.
2020-01-12tcl_tests: Make utf-8 encoding workVitaly Chikunov37-59/+13
- Remove emacs coding: cp1251 tag - Change stats file encoding to utf-8 - Change packages source to have -encoding utf-8 - Run tclsh with -encoding utf-8 - Make `proc rus' noop. This will make Tcl automatically translate scripts output from utf-8 to system encoding.
2020-01-12tcl_tests: Add TCL tests filesDmitry Belyavskiy132-0/+9730
All source files are converted from cp1251 to utf-8.