16 Commits

Author SHA1 Message Date
Brad Hards
d312792004 Big fixup of the unit test harness, and each unit test case, to match
the new Qt4 stuff, and the removal of QCString from the API

When I run this, I get:
# Running normal tests... #

Base64UnitTest - 22 tests passed, 0 tests failed

BigIntUnitTest - 252 tests passed, 0 tests failed

CertUnitTest - 0 tests passed, 1 test failed
    Unexpected failure:
        certunittest.cpp[40]: failed on "QCA::haveSystemStore()"
                 result = '0', expected = '1'

CipherUnitTest - 2740 tests passed, 0 tests failed

HashUnitTest - 186 tests passed, 0 tests failed

HexUnitTest - 17 tests passed, 0 tests failed

KDFUnitTest - 0 tests passed, 0 tests failed; also 2 skipped
    Skipped tests:
        kdfunittest.cpp[80]: "PBKDF version 1 with SHA1 not supported"
        kdfunittest.cpp[98]: "PBKDF version 2 with SHA1 not supported"

KeyLengthUnitTest - 9 tests passed, 0 tests failed

MACUnitTest - 33 tests passed, 0 tests failed

RandomUnitTest - 67 tests passed, 0 tests failed

SecureArrayUnitTest - 32 tests passed, 0 tests failed

StaticUnitTest - 31 tests passed, 0 tests failed

SymmetricKeyUnitTest - 13 tests passed, 0 tests failed

# Done with normal tests:
  Total test cases: 13
  Total test steps                                 : 3405
    Total passed test steps (including unexpected) : 3402
      Total unexpected passed test steps           :  0
    Total failed test steps (including expected)   :  1
      Total expected failed test steps             :  0
    Total skipped test steps                       :  2

CCMAIL: delta-affinix.com@lists.affinix.com

svn path=/trunk/kdesupport/qca/; revision=394072
2005-03-01 11:15:25 +00:00
Brad Hards
9e3e39fa56 Make the first QtCrypto part of the include path, not the #include
statement.
You also get some bonus Hex tests.

svn path=/trunk/kdesupport/qca/; revision=374575
2005-01-01 05:11:34 +00:00
Brad Hards
5364172b16 Update unit tests to use new include style.
Also includes a few little cleanups as well.

svn path=/trunk/kdesupport/qca/; revision=374573
2005-01-01 04:20:34 +00:00
Brad Hards
139d3f03a2 Convert unit tests to QCA2 style.
svn path=/trunk/kdesupport/qca/; revision=359929
2004-11-02 19:24:57 +00:00
Brad Hards
f88ed1acb5 Prepare for removing second argument from cmp, and name change to compare
svn path=/trunk/kdesupport/qca/; revision=359211
2004-10-31 10:51:25 +00:00
Brad Hards
cf7043fb57 Add a stream operator, including a simple unit test.
svn path=/trunk/kdesupport/qca/; revision=359187
2004-10-31 09:29:11 +00:00
Brad Hards
547b1e6dcf Add in some comparison operator tests.
svn path=/trunk/kdesupport/qca/; revision=359156
2004-10-31 05:11:39 +00:00
Brad Hards
3b0176a2c5 Finish off the Botan subtraction tests, and do direct QBigInteger
level tests for every case.

svn path=/trunk/kdesupport/qca/; revision=358953
2004-10-30 11:43:12 +00:00
Brad Hards
1e2d756bd5 Fix a broken test case.
In case you are wondering what actually changed - I added a digit 1 to
the start.

svn path=/trunk/kdesupport/qca/; revision=358422
2004-10-28 07:53:27 +00:00
Brad Hards
09cbe1ad57 We no longer do octal.
svn path=/trunk/kdesupport/qca/; revision=358128
2004-10-27 10:00:53 +00:00
Brad Hards
40a52d78b9 Fix incorrect testcase.
svn path=/trunk/kdesupport/qca/; revision=357885
2004-10-26 12:15:03 +00:00
Brad Hards
42f7db971c More cleanups now the negative constructor problem is gone.
svn path=/trunk/kdesupport/qca/; revision=357875
2004-10-26 11:44:17 +00:00
Brad Hards
cba8c7d7a0 Add some trivial octal tests.
svn path=/trunk/kdesupport/qca/; revision=357865
2004-10-26 10:54:17 +00:00
Brad Hards
585fc4afe7 Add some extra unit tests, and turn on the tests that invoke negative
constructors.

svn path=/trunk/kdesupport/qca/; revision=357850
2004-10-26 10:22:23 +00:00
Brad Hards
0eb64b5b35 Some more subtraction tests.
svn path=/trunk/kdesupport/qca/; revision=357555
2004-10-25 12:44:26 +00:00
Brad Hards
08d69c5d27 Add some of the Botan test cases for QBigInteger - lots more
cases still to be done.

My machine is delivering failing tests for a few steps (currently 7
failures) and 17 passes. There are a lot of tests commented out -
any use of a QBigInteger( QString ) constructor with the QString
representing a negative number causes SIGABRT.

Of the 7 cases that are failing, two are for subtraction. Looks like
-= is broken.

svn path=/trunk/kdesupport/qca/; revision=357243
2004-10-24 06:34:11 +00:00