Update of /cvsroot/fink/dists/10.4/unstable/main/finkinfo/devel
In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv10903

Modified Files:
        fpprofiler.info 
Log Message:
test suite enabled, source location changed, minor typos.

Index: fpprofiler.info
===================================================================
RCS file: 
/cvsroot/fink/dists/10.4/unstable/main/finkinfo/devel/fpprofiler.info,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- fpprofiler.info     8 Jan 2011 21:54:24 -0000       1.1
+++ fpprofiler.info     23 Jan 2011 14:28:15 -0000      1.2
@@ -1,9 +1,9 @@
 Package: fpprofiler
 Version: 20110108
-Revision: 1
+Revision: 2
 Description: Profiler for the FreePascal compiler
 Architecture: powerpc, i386, x86_64
-Source: http://michael-ep3.physik.uni-halle.de/%n-%v.tar.bz2
+Source: http://michael-ep3.physik.uni-halle.de/fink-sources/%n-%v.tar.bz2
 Source-MD5: f798933eecda64a4a7cb9e284c862e52
 Depends: fpc
 Recommends: graphviz
@@ -27,20 +27,58 @@
   fpc -Fu../fpprof -Fu../fcl-passrc/units/* fppremove.pp
   cd ../fppview
   fpc -Fu../fpprof -Fu../fcl-passrc/units/* fppview.pp
+
   cd ../fpprof
-  fpc fpprof.pp
+  rm *.o *.ppu
+  SYSTEMS='powerpc-darwin'
+  if [ "%m" <> "powerpc" ]; then
+    SYSTEMS=$SYSTEMS' i386-darwin i386-linux i386-freebsd i386-win32 
i386-wince'
+    SYSTEMS=$SYSTEMS' x86_64-darwin x86_64-linux x86_64-win64'
+  fi  
+  for system in $SYSTEMS
+  do
+    cpu_target=`echo $system |cut -d '-' -f 1`
+    os_target=` echo $system |cut -d '-' -f 2`
+    mkdir -p units/$system/fpprof
+    fpc   -FEunits/$system/fpprof -P$cpu_target -T$os_target fpprof.pp
+  done
+<<
+
+InfoTest: <<
+  TestScript: <<
+    #!/bin/sh -ev
+    cd test
+# patch the sources
+    sed -i.bak 's|runtests;|runtests; {$mode objfpc}{$H+}|g' runtests.pp
+    sed -i.bak 's|Crt,|Crt|g'     runtests.pp
+    sed -i.bak 's|FileUtil||g'    runtests.pp
+    sed -i.bak "s|GetExeExt|''|g" runtests.pp
+    sed -i.bak "s|Readln;||g"     runtests.pp
+    sed -i.bak "s|fpp |./fpp |g"  runtests.pp
+# compile the "master runner".
+    fpc runtests.pp
+# copy fpp from where it has been built.
+    cp ../fpp/fpp .
+# run the test.
+    ./runtests >runtest.log
+#
+# Results for each test. All should be TRUE.
+#
+    grep -i true runtest.log
+  <<
+  TestSuiteSize: small
 <<
 
 InstallScript: <<
 #!/bin/sh -ev
+  FPC_VERSION=`fpc -iV`
   mkdir -p %i/bin
   install -m 755 fpp/fpp %i/bin/fpp
   install -m 755 fpp/fpp %i/bin/fppinsert
   install -m 755 fpp/fpp %i/bin/fppremove
   install -m 755 fppview/fppview %i/bin/fppview
-  mkdir -p %i/lib/fpc/2.4.2/units/i386-darwin/fpprof
-  install -m 644 fpprof/*.o    %i/lib/fpc/2.4.2/units/i386-darwin/fpprof/
-  install -m 644 fpprof/*.ppu  %i/lib/fpc/2.4.2/units/i386-darwin/fpprof/
+  mkdir -p             %i/lib/fpc/$FPC_VERSION/units
+  cp -r fpprof/units/* %i/lib/fpc/$FPC_VERSION/units
 <<
 
 DocFiles: docs/COPYING.GPL docs/develop.txt
@@ -48,8 +86,8 @@
 DescDetail: <<
 Compile your program by using fpp as a replacement of fpc. 
 This creates a profile file (Default: fpprof.xml), 
-from which output can created with fppview including output in the dot 
-language, which can be converted to a graph with the program "dot" from the 
+from which fppview creates output. Output in the dot language 
+can be converted to a graph with the program "dot" from the 
 package "graphviz".
 
 More details about options can be obtained with
@@ -64,7 +102,7 @@
   dot -Tpng MyProgram.dot -o MyProgram.png
   open MyProgram.png
 
-Please check also the home page (http://wiki.lazarus.freepascal.org/FPProfiler)
+Please check also the home page: http://wiki.lazarus.freepascal.org/FPProfiler
 <<
 
 Homepage: http://wiki.lazarus.freepascal.org/FPProfiler


------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to