SourceForge Logo

Go to the SourceForge project home page


/../index.php

/../news.php

/../release_history.php

index.php


/../screenshots.php

/../download.php

/../contact.php



Test Programs

Go to documentation index

Table of contents

A. General information

We wrote some test programs for important classes. In each library, tests can be compiled with "make tests" or "make debugtests". They can also be individually compiled with "make <name of exec>". Some tests will prompt you for commands. The command 'h' will then list all possible commands along with their syntax.

WARNING: most of these test programs have not yet been rehabilitated under MS Windows.

B. Tests by library

All tests with needed parameters are listed below. Tests programs marked with a "*" need to connect to a central server. You then need to launch a server and set up the "data/tests/HMDDATA" file as explained in the section "Setting up your own HeavyMole network".

B.1 LibUtils

SOURCE FILE EXECUTABLE PARAMETERS
SortableListTest.cc sortablelisttest <none>

B.2 LibHMBase

SOURCE FILE EXECUTABLE PARAMETERS
FileTreePoolTest.cc filetreepooltest <none>
PoolManagerTest.cc poolmanagertest <none>
FileTreeTest.cc filetreetest <none>
RequestEngineTest.cc requestenginetest [STRING] [FILTER]
SearchTest.cc searchtest [ROOTPATH] [KEY(!*)] [NBLOOPS]

B.3 LibUDP

SOURCE FILE EXECUTABLE PARAMETERS
UDPNodeTest.cc udpnodetest [MYPORT] [ADDR_1] [PORT_1] [ADDR_2] [PORT_2]

B.4 LibTCP

SOURCE FILE EXECUTABLE PARAMETERS
TCPTest.cc tcptest ["SERVER", "CLIENT"] [PORT]

B.5 LibHMD

SOURCE FILE EXECUTABLE PARAMETERS
*HMDConnectionTest.cc hmdtest [GUID]

B.6 LibHMCP

SOURCE FILE EXECUTABLE PARAMETERS
FileTreeCVSTest.cc filetreecvstest <none>
*HMCPNodeTest.cc hmcpnodetest [RANDOM_SEED] [NETWORK_NO] [NB_USERS] [IP_ADDR]

B.7 LibHMFTP

SOURCE FILE EXECUTABLE PARAMETERS
HMFTPServerTest.cc servertest [PORT]
HMFTPNodeTest.cc nodetest [PORT] [REMOTE_ADDRESS] [REMOTE_PORT]

B.8 LibHMChat

SOURCE FILE EXECUTABLE PARAMETERS
*ChatNodeTest.cc chatnodetest [NICKNAME] [GUID] [HMFTPPORT] [CHATPORT]

B.9 LibHM

SOURCE FILE EXECUTABLE PARAMETERS
*ChatManagerTest.cc chatmanagertest [NICKNAME] [GUID] [HMFTPPORT] [CHATPORT]

B.10 HM_GUI

SOURCE FILE EXECUTABLE PARAMETERS
*chattest.cc chattest <none>
LanguageChecker.cc languagechecker [LANGUAGE FILE 1] [LANGUAGE FILE 2 (opt)]

http://heavymole.sourceforge.net - This page was last updated on april 27th 2003