Suggestions on failure of 'make test'?

Glen Whitney gwhitney at macports.org
Fri Jun 15 09:19:53 PDT 2007


I am just about ready to check in the patch to resolve ticket 11891,  
having recently obtained my commit rights.  Of course, I wanted to  
make sure that all was well with 'make test' before the check in.   
But I get this output:

===> making test in config
make[1]: Nothing to be done for `test'.
===> making test in doc
make[1]: Nothing to be done for `test'.
===> making test in src
===> making test in src/darwinports1.0
make[2]: Nothing to be done for `test'.
===> making test in src/port1.0
===> making test in src/port1.0/resources
===> making test in src/port1.0/resources/package
make[4]: Nothing to be done for `test'.
===> making test in src/port1.0/resources/fetch
make[4]: Nothing to be done for `test'.
===> making test in src/port1.0/resources/group
make[4]: Nothing to be done for `test'.
/usr/bin/tclsh tests/portutil.tcl
couldn't read file "./../portutil.tcl": no such file or directory
     while executing
"source [file dirname [info script]]/../portutil.tcl"
     invoked from within
"$workername eval $body"
     (procedure "test_depends_lib-delete" line 19)
     invoked from within
"$proc"
     ("foreach" body line 2)
     invoked from within
"foreach proc [info procs test_*] {
     $proc
}"
     (in namespace eval "::tests" script line 214)
     invoked from within
"namespace eval tests {

proc test_delete {} {
     set root "/tmp/macports-portutil-delete"
     # use file delete -force to kill the test directory if ..."
     (file "tests/portutil.tcl" line 13)
make[2]: *** [test] Error 1
make[1]: *** [test] Error 1
make: *** [test] Error 1


I can see the line of code in src/port1.0/tests/portutil.tcl which is  
failing:

source [file dirname [info script]]/../portutil.tcl

at line 73, but it's the same as a line of code earlier in the file  
(line 9) which ran fine, and I don't see that the current directory  
changed before hitting this line.  Also, since I didn't touch  
portutil.tcl, I don't think my changes have caused this failure.  On  
the other hand, I of course don't want to check in anything when  
"make test" is not working.   Any suggestions?
      Thanks for any help or ideas,
              Glen




More information about the macports-dev mailing list