4
0
mirror of https://github.com/QuasarApp/qca.git synced 2025-05-04 15:09:34 +00:00

Update the test framework for the new tests.

svn path=/trunk/kdesupport/qca/; revision=524829
This commit is contained in:
Brad Hards 2006-03-31 10:49:05 +00:00
parent a644db03be
commit 2c93c81fea
3 changed files with 22 additions and 0 deletions

@ -1,5 +1,9 @@
This directory holds simple unit tests for QCA.
You can run the whole test suite by doing "make check" in this
directory. You can also run a single set of tests by doing "make
check" in the applicable subdirectory.
Note that some of the hash tests require data files which are not
provided with the QCA download because of their size. This is not a
problem - the tests will simply be skipped if the files are not
@ -9,3 +13,14 @@ tarballs as distributed into the unittest/data/ directory. These files
should be readily available on the Internet. There is also a zero
length file (imaginatively called "empty"), which you can create with
something like "touch ./data/empty" at the command line.
These tests are implemented using the QTestLib test framework provided
with Qt 4.1 and later. If you are having trouble with a test, you can
get more information by running the test applicable directly (e.g. if
you can't make the Base64 test work, you run the ./base64unittest
executable) with the -v1 or -v2 options. You can also specify a single
test to be run.
Thanks to Trolltech for providing Qt and agreeing to release QTestLib,
especially to Harald Fernengel for all the development work, a great
tutorial at Akademy 2005 and substantial assistance with QTestLib.

@ -4,6 +4,7 @@ cd base64unittest && make check && cd .. && \
cd bigintunittest && make check && cd .. && \
cd certunittest && make check && cd .. && \
cd cipherunittest && make check && cd .. && \
cd dsaunittest && make check && cd .. && \
cd hashunittest && make check && cd .. && \
cd hexunittest && make check && cd .. && \
cd kdfunittest && make check && cd .. && \
@ -11,6 +12,8 @@ cd keygenunittest && make check && cd .. && \
cd keylengthunittest && make check && cd .. && \
cd macunittest && make check && cd .. && \
cd pkits && make check && cd .. && \
cd randomunittest && make check && cd .. && \
cd rsaunittest && make check && cd .. && \
cd securearrayunittest && make check && cd .. && \
cd staticunittest && make check && cd .. && \
cd symmetrickeyunittest && make check && cd .. && \

@ -5,6 +5,8 @@ SUBDIRS += \
bigintunittest \
certunittest \
cipherunittest \
dsaunittest \
filewatchunittest \
hashunittest \
hexunittest \
kdfunittest \
@ -12,6 +14,8 @@ SUBDIRS += \
keylengthunittest \
macunittest \
pkits \
randomunittest \
rsaunittest \
securearrayunittest \
staticunittest \
symmetrickeyunittest \