Hi Severine,
This looks like a mistake in test/Install.php. I'd just change lines 51- 58 in Install.php.

From:
  if (is_readable('/etc/fossology/Proxy.conf')) {
    $cmd = ". /etc/fossology/Proxy.conf;" .
"wget -q 'http://downloads.sourceforge.net/simpletest/simpletest_1.0.1.tar.gz' ";
  }
  else if (is_readable('/usr/local/etc/fossology/Proxy.conf')) {
    $cmd = ". /etc/fossology/Proxy.conf;" .
"wget -q 'http://downloads.sourceforge.net/simpletest/simpletest_1.0.1.tar.gz' ";
  }

To:
$cmd = "wget -q 'http://downloads.sourceforge.net/simpletest/simpletest_1.0.1.tar.gz' ";

I'll file a bug so it gets fixed asap.

Bob Gobeille


On Jun 18, 2009, at 7:44 AM, Séverine Scheidt wrote:

Hi,
I'm just starting to make use of the fossology PHP UI tests, but I had trouble doing the installation. The first execution of the fossology/tests/Install.php failed providing the following message:


installing fo-runTests into /usr/local/bin
Check to see if simpletest is installed in /usr/local
Attempting to download and install simpletest into /usr/local
.: 1: Can't open /etc/fossology/Proxy.conf
ERROR! problem with downloading simpletest, need a proxy?


After looking at the Install.php, I found out that the Path in line 56 is not right, as you can see from my svn diff:

Index: tests/Install.php
===================================================================
--- tests/Install.php   (revision 2252)
+++ tests/Install.php   (working copy)
@@ -1,5 +1,5 @@
#!/usr/bin/php
-<?php
+<?php
/***********************************************************
 Copyright (C) 2008 Hewlett-Packard Development Company, L.P.

@@ -53,7 +53,7 @@
"wget -q 'http://downloads.sourceforge.net/simpletest/simpletest_1.0.1.tar.gz' ";
  }
  else if (is_readable('/usr/local/etc/fossology/Proxy.conf')) {
-    $cmd = ". /etc/fossology/Proxy.conf;" .
+    $cmd = ". /usr/local/etc/fossology/Proxy.conf;" .
"wget -q 'http://downloads.sourceforge.net/simpletest/simpletest_1.0.1.tar.gz' ";
  }
  if(chdir('/usr/local/')) {


Best regards,
Severine Scheidt

--
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
_______________________________________________
fossology mailing list
[email protected]
http://fossology.org/mailman/listinfo/fossology

_______________________________________________
fossology mailing list
[email protected]
http://fossology.org/mailman/listinfo/fossology

Reply via email to