Hello everyone, I am new to DejaGNU - and so need a little advice...
Over the last few months, I setup some dejagnu expect scripts to help with our integration testing. So far, it has worked great. However, I recently tried inserting it into our cron jobs for the nightly builds and regression testing. This is where things have started to go wrong. I am getting strange errors such as: ------------------------------- Cmd: runtest Loading ~/.dejagnurc Loading site.exp WARNING: Couldn't find the global config file. WARNING: No tool specified Test Run By anstest on Mon Sep 4 22:25:25 2006 Native configuration is i686-redhat-linux-gnu === tests === Schedule of variations: unix Running target unix Using /usr/share/dejagnu/baseboards/unix.exp as board description file for target. Using /usr/share/dejagnu/config/unix.exp as generic interface file for target. Using ./testsuite/config/unix.exp as tool-and-target-specific interface file. Loading unix.exp redhat_rel: Red Hat Enterprise Linux WS release 4 (Nahant Update 4) --Test Configuration-- ... Running ./testsuite/dac.test/DacFL.exp ... ERROR: tcl error sourcing ./testsuite/dac.test/DacFL.exp. ERROR: can not find channel named "exp0" while executing "exp_wait" (procedure "stop_nml" line 7) invoked from within "stop_nml" (procedure "stop_ans" line 24) invoked from within "stop_ans" (procedure "run_tests" line 32) invoked from within "run_tests [concat $CFG TestDacFL TestDacFLResume TestDacFLStandby TestDacFLSuspend ]" (file "./testsuite/dac.test/DacFL.exp" line 24) invoked from within "source ./testsuite/dac.test/DacFL.exp" ("uplevel" body line 1) invoked from within "uplevel #0 source ./testsuite/dac.test/DacFL.exp" invoked from within "catch "uplevel #0 source $test_file_name"" send: spawn id exp0 not open while executing "send_user "$message\n"" ("default" arm line 2) invoked from within "case "$firstword" in { {"PASS:" "XFAIL:" "KFAIL:" "UNRESOLVED:" "UNSUPPORTED:" "UNTESTED:"} { if $all_flag { send_user "$message\n" return "..." (procedure "clone_output" line 10) invoked from within "clone_output "Running $test_file_name ..."" (procedure "runtest" line 9) invoked from within "runtest $test_name" ("foreach" body line 42) invoked from within "foreach test_name [lsort [find ${dir} *.exp]] { if { ${test_name} == "" } { continue } # Ignore this one if asked to. if { ${ignore..." ("foreach" body line 54) invoked from within "foreach dir "${test_top_dirs}" { if { ${dir} != ${srcdir} } { # Ignore this directory if is a directory to be # ignored. if {[info..." ("foreach" body line 121) invoked from within "foreach pass $multipass { # multipass_name is set for `record_test' to use (see framework.exp). if { [lindex $pass 0] != "" } { set multipass_..." ("foreach" body line 51) invoked from within "foreach current_target $target_list { verbose "target is $current_target" set current_target_name $current_target set tlist [split $curren..." (file "/usr/share/dejagnu/runtest.exp" line 1625) ERROR - Command returned failure! (256) at /home/anstest/nightlybuild/CMUSW_PROTOTYPE.pl line 344 ------------------------------- Any ideas? I suspect is may have something to do with "cron" not having a terminal - but I'm not sure, and don't know what I need to do to fix it. Any advice is greatly appreciated. Thanks, -Gary _______________________________________________ DejaGnu mailing list DejaGnu@gnu.org http://lists.gnu.org/mailman/listinfo/dejagnu