[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Running the test statement of ns.
Hi,
I have built ns2.1b1. But it doesn't work with the test statement given by
ns-users site: ./ns test-suite.tcl tahoe1:
%% invalid command name "Simulator"
%% while executing
%% "Simulator create _o2 "
%% invoked from within
%% "if [catch "$className create $o $args" msg] {
%% if [string match "__FAILED_SHADOW_OBJECT_" $msg] {
%% delete $o
%% return ""
%% }
%% global errorInfo
%% error "class $ ..."
%% (procedure "new" line 3)
%% invoked from within
%% "new Simulator"
%% invoked from within
%% "set ns_ [new Simulator]..."
%% (procedure "_o1" line 3)
%% invoked from within
%% "$self next"
%% (procedure "_o1" line 6)
%% invoked from within
%% "_o1 init {}"
%% invoked from within
%% "Test/tahoe1 create _o1 {}"
%% invoked from within
%% "if [catch "$className create $o $args" msg] {
%% if [string match "__FAILED_SHADOW_OBJECT_" $msg] {
%% delete $o
%% return ""
%% }
%% global errorInfo
%% error "class $ ..."
%% (procedure "new" line 3)
%% invoked from within
%% "new Test/$test $topo"
%% invoked from within
%% "set t [new Test/$test $topo]..."
%% (procedure "TestSuite" line 40)
%% invoked from within
%% "TestSuite runTest"
%% (file "test-suite.tcl" line 1115)
But this error looks so primary.. I mean, in the very first line of the
program, the program just cannot understand the class "Simulator"..
I will be grateful if you can help again..
Sincerely,
Deniz
e-mail: [email protected] URL: http://www.ee.bilkent.edu.tr/~deniz/