Integration - removing T

- Removed linkage to T.o in unit tests.  The first step towards
  eliminating T.cpp.
This commit is contained in:
Paul Beckingham 2009-06-13 18:53:01 -04:00
parent 841958d889
commit c89a222c7c
7 changed files with 116 additions and 170 deletions

View file

@ -3,7 +3,7 @@ PROJECT = t2.t tdb.t date.t duration.t t.benchmark.t text.t autocomplete.t \
cmd.t
CFLAGS = -I. -I.. -Wall -pedantic -ggdb3 -fno-rtti
LFLAGS = -L/usr/local/lib -lncurses
OBJECTS = ../TDB2.o ../T.o ../Task.o ../valid.o ../text.o ../Date.o ../Table.o \
OBJECTS = ../TDB2.o ../Task.o ../valid.o ../text.o ../Date.o ../Table.o \
../Duration.o ../util.o ../Config.o ../Sequence.o ../Att.o ../Cmd.o \
../Record.o ../StringTable.o ../Subst.o ../Nibbler.o ../Location.o \
../Filter.o ../Context.o ../Keymap.o ../command.o ../interactive.o \

View file

@ -25,7 +25,7 @@
//
////////////////////////////////////////////////////////////////////////////////
#include <sys/time.h>
#include "T.h"
#include "Task.h"
#include "main.h"
#include "test.h"
@ -36,11 +36,19 @@ int main (int argc, char** argv)
{
UnitTest test (1);
std::string sample = "d346065c-7ef6-49af-ae77-19c1825807f5 "
"- "
"[bug performance solaris linux osx] "
"[due:1236142800 entry:1236177552 priority:H project:task-1.5.0 start:1236231761] "
"Profile task and identify performance bottlenecks";
// FF4 parsing is being tested. Performance of legacy format parsing is
// immaterial.
std::string sample = "["
"uuid:\"d346065c-7ef6-49af-ae77-19c1825807f5\" "
"status:\"pending\" "
"tags:\"bug,performance,solaris,linux,osx\" "
"due:\"1236142800\" "
"entry:\"1236177552\" "
"priority:\"H\" "
"project:\"task-1.5.0\" "
"start:\"1236231761\" "
"description:\"Profile task and identify performance bottlenecks\""
"]";
// Start clock
test.diag ("start");
@ -49,7 +57,7 @@ int main (int argc, char** argv)
for (int i = 0; i < 1000000; i++)
{
T t (sample);
Task t (sample);
}
// End clock