[prev in list] [next in list] [prev in thread] [next in thread]
List: pgp-keyserver-folk
Subject: Test cases are required for pksd
From: Hironobu Suzuki <hironobu () h2np ! suginami ! tokyo ! jp>
Date: 1999-01-12 21:30:06
[Download RAW message or body]
Teun> hurry Hironobu@jp :-)
I've hacked pks-0.9.3db2test for multi-database files. Compiling was
done. Now I'm doing easy test using pksclient but not enough.
I have some trouble because I have to make test case for my
program. I'm a little bit busy for my job, so I haven't much time for
making test case.
I will appreciate if someone give me an automatic test suite package
for pksd or test my code. My code can be taken from
http://www.pp.iij4u.or.jp/~h2np/archives/multi_db.tar.gz
Also I can't test HUGE keyring file because my HDD hasn't enough space
for HUGE file testing.
===
My solution is very simple. keydb's databse id key is its keyid which
can be used as key of hash table which is sweep to some separated
files. Only 50 ~ 60 new lines were added to pksd-0.9.3db2test.
* hash(keyid) modulo "number of keydbs"
<=> keyid modulo "number of keydbs"
because incoming keyids effects as random number.
* default number of keydb files is 3 which number must be decided as
compile by "DB_ARRAY_SIZE"
% pksclient ./db create
% pksclient ./db add jp.pgp >& /dev/null
% cd db
% ls -l
total 17910
-rw-r--r-- 1 hironobu h2np 6156288 Jan 13 04:51 keydb000
-rw-r--r-- 1 hironobu h2np 5783552 Jan 13 04:51 keydb001
-rw-r--r-- 1 hironobu h2np 5844992 Jan 13 04:51 keydb002
-rw-r--r-- 1 hironobu h2np 126976 Jan 13 04:57 timedb
-rw-r--r-- 1 hironobu h2np 1013760 Jan 13 04:51 worddb
--
Hironobu SUZUKI Independent Software Consultant
Tel: +81-3-5310-7303 Fax: +81-3-5382-7065
E-Mail: hironobu@h2np.suginami.tokyo.jp
URL: http://www.pp.iij4u.or.jp/~h2np
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic