IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 6266


Ignore:
Timestamp:
Jan 30, 2006, 9:31:57 PM (20 years ago)
Author:
eugene
Message:

updating tests, moving cd output to outfile

Location:
trunk/Ohana/src/opihi
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/cmd.basic/cd.c

    r4572 r6266  
    1717      return (FALSE);
    1818    }
    19     fprintf(stderr, "cwd: %s\n", cwd);
     19    fprintf(GetOutfile(), "cwd: %s\n", cwd);
    2020    ohana_memregister (cwd);
    2121    free (cwd);
     
    4141    return (FALSE);
    4242  }
    43   fprintf(stderr, "cwd: %s\n", cwd);
     43  fprintf(GetOutfile(), "cwd: %s\n", cwd);
    4444  ohana_memregister (cwd);
    4545  free (cwd);
  • trunk/Ohana/src/opihi/test/tests.sh

    r6231 r6266  
    1010  break -auto off
    1111
     12  $failtest:n = 0
     13  $failfile:n = 0
     14  $faildirs:n = 0
     15
    1216  for Ti 0 $testdir:n
    1317    list testscripts -x "ls $testdir:$Ti/*.sh"
     
    2024          echo "failed test $tests:$Tk"
    2125          $Nfail ++
     26          $n = $failtest:n
     27          $failtest:$n = $tests:$Tk
     28          $failfile:$n = $testscripts:$Tj
     29          $faildirs:$n = $testdir:$Ti
     30          $failtest:n ++
     31          $failfile:n ++
     32          $faildirs:n ++
    2233        else
    2334          # echo "passed $tests:$Tk"
     
    3647  echo "$Nfail tests failed"
    3748  echo "examined $testdir:n directories"
     49
     50  if ($Nfail > 0)
     51    for i 0 $Nfail
     52      echo $faildirs:$i $failfile:$i $failtest:$i
     53    end
     54  end
    3855end
    3956
Note: See TracChangeset for help on using the changeset viewer.