From: Sebastian B. <sb...@us...> - 2014-01-19 18:48:31
|
Update of /cvsroot/simplemail/simplemail/tests In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv24584/tests Modified Files: makefile Added Files: index_external_unittest.c Log Message: Added new unit test file index_external_unittest.c. Here, we like to test functions that are private to index_external.c. Index: makefile =================================================================== RCS file: /cvsroot/simplemail/simplemail/tests/makefile,v retrieving revision 1.42 retrieving revision 1.43 diff -u -d -r1.42 -r1.43 --- makefile 19 Jan 2014 18:35:24 -0000 1.42 +++ makefile 19 Jan 2014 18:48:29 -0000 1.43 @@ -26,6 +26,7 @@ filter_unittest \ folder_unittest \ index_unittest \ + index_external_unittest \ imap2_unittest \ mail_unittest \ support_indep_unittest \ --- NEW FILE: index_external_unittest.c --- /** * index_external_unittest.c - unit tests for SimpleMail's external string index implementation * Copyright (C) 2013 Sebastian Bauer * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ /** * @file index_external_unittest.c */ #include <CUnit/Basic.h> #include "index_external.c" /*******************************************************/ /* @Test */ void test_me(void) { struct index *idx; idx = index_external_create("/tmp/index_external_unittest_index.dat"); CU_ASSERT(idx != NULL); index_external_dispose(idx); } /*******************************************************/ |