|
From: <jgr...@us...> - 2003-09-15 14:56:13
|
Update of /cvsroot/popfile/engine
In directory sc8-pr-cvs1:/tmp/cvs-serv15349
Modified Files:
Makefile tests.pl
Log Message:
BROUGHT TEST SUITE TO 100% AFTER BERKELEYDB CHANGE
HTML.pm:
Small modification to the way that showing an individual bucket works
so that when it is cleared we show the same page with a zero word
count and no words.
Bayes.pm:
Mechanism for marking a bucket deleted even though the files in
its directory have not all disappeared. This is needed because if
a user deletes a bucket while a download is occurring POPFile will
have a connection open to the db which will prevent it from getting
deleted. Now have a helper delete_bucket_files__ that will do the
delete and add the special delete file as needed.
clear_bucket can't rely on being able to remove the table.db for
the same reasons as the above, so change the way in which it operates.
TestBayes.tst:
Tests to cover upgrading of corpus tables, fork handling and deal
with the fact that the corpus is no longer in flat files.
TestHTML.tst:
Have to call prefork/forked/postfork when forking. Test the new
force_fork UI elements.
TestPOP3.tst:
Have to call prefork/forked/postfork when forking.
TestProxy.tst:
Add code to test the forking/non-forking version of the proxy code.
Index: Makefile
===================================================================
RCS file: /cvsroot/popfile/engine/Makefile,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** Makefile 12 Sep 2003 00:34:36 -0000 1.20
--- Makefile 15 Sep 2003 14:55:36 -0000 1.21
***************
*** 47,51 ****
winexe: popfile.exe popfileb.exe
! TRAY_OPTIONS = --exe $@ --force --clean --dependent --xclude --icon ../windows/POPFileIcon/popfile.ico --script $< --info CompanyName="The POPFile Project" --info LegalCopyright="Copyright (c) 2003 John Graham-Cumming" --info ProductName=POPFile --info ProductVersion=$(POPFILE_VERSION).0 --info FileDescription=POPFile --info FileVersion=$(POPFILE_VERSION).0
popfile.exe: popfilew.pl POPFile/Loader.pm
--- 47,54 ----
winexe: popfile.exe popfileb.exe
! TRAY_OPTIONS = --exe $@ --force --clean --dependent --xclude --icon ../windows/POPFileIcon/popfile.ico --script $< --info CompanyName="The POPFile Project" --info LegalCopyright="Copyright (c) 2003 John Graham-Cumming" --info ProductName=POPFile --info ProductVersion=$(POPFILE_VERSION).0 --info FileDescription=POPFile --info FileVersion=$(POPFILE_VERSION).0
! ifeq ($(TRAY_DEBUG),1)
! TRAY_OPTIONS += --debug
! endif
popfile.exe: popfilew.pl POPFile/Loader.pm
Index: tests.pl
===================================================================
RCS file: /cvsroot/popfile/engine/tests.pl,v
retrieving revision 1.29
retrieving revision 1.30
diff -C2 -d -r1.29 -r1.30
*** tests.pl 22 Aug 2003 02:06:27 -0000 1.29
--- tests.pl 15 Sep 2003 14:55:36 -0000 1.30
***************
*** 61,67 ****
}
$test_failures += 1;
! # print "Test fail at $file:$line\n";
} else {
! # print "Test pass at $file:$line\n";
}
--- 61,67 ----
}
$test_failures += 1;
! # print "Test fail at $file:$line ($context)\n";
} else {
! # print "Test pass at $file:$line ($context)\n";
}
|