From 2c93c81fea3bdadfcd5cb32838e1e9236aa1254d Mon Sep 17 00:00:00 2001 From: Brad Hards Date: Fri, 31 Mar 2006 10:49:05 +0000 Subject: [PATCH] Update the test framework for the new tests. svn path=/trunk/kdesupport/qca/; revision=524829 --- unittest/README | 15 +++++++++++++++ unittest/checkall | 3 +++ unittest/unittest.pro | 4 ++++ 3 files changed, 22 insertions(+) diff --git a/unittest/README b/unittest/README index 26b7ea1b..b91580f1 100644 --- a/unittest/README +++ b/unittest/README @@ -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. diff --git a/unittest/checkall b/unittest/checkall index 754f5110..c7331a66 100644 --- a/unittest/checkall +++ b/unittest/checkall @@ -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 .. && \ diff --git a/unittest/unittest.pro b/unittest/unittest.pro index e57b4027..31dccaf5 100644 --- a/unittest/unittest.pro +++ b/unittest/unittest.pro @@ -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 \