Re: installing fruit
  Home FAQ Contact Sign in
comp.lang.fortran only
 
Advanced search
POPULAR GROUPS

more...

comp.lang.fortran Profile…
 Up
Re: installing fruit         


Author: Andrew Chen
Date: Jan 27, 2008 21:40

Gerry,
>
> Question 1) Where "should" I install it?

It can be at any directory.
Just unzip the file.

The directory structure is:
fruit
|-- src : FORTRAN fruit modules
|-- test : tests for fruit
|-- sample : samples
|-- bin : script to call code generater, if you don't want to
use gems
|-- fruit-processor-gem : gem for fruit processor

Please check this document for installation.
http://fortranxunit.wiki.sourceforge.net/Installation+Guide

It seems like you need to install ruby, gem, and rake first.

Also, please note that the development of Fruit was on Linux. The
ruby part has not been tested on Windows. (The FORTRAN part has been
tested on Windows though).
Show full article (0.81Kb)
7 Comments
Re: installing fruit         


Author: Paul van Delst
Date: Jan 28, 2008 06:23

Andrew Chen wrote:
> Gerry,
>
>> Question 1) Where "should" I install it?
>
> It can be at any directory.
> Just unzip the file.
>
> The directory structure is:
> fruit
> |-- src : FORTRAN fruit modules
> |-- test : tests for fruit
> |-- sample : samples
> |-- bin : script to call code generater, if you don't want to
> use gems
> |-- fruit-processor-gem : gem for fruit processor
>
> Please check this document for installation.
> http://fortranxunit.wiki.sourceforge.net/Installation+Guide
> ...
Show full article (1.76Kb)
no comments
Re: installing fruit         


Author: Andrew Chen
Date: Jan 28, 2008 15:51

Paulv,

"to get ruby and rake officially installed on
> the supercomputers is mind boggling (gem wouldn't work anyway since there is no outside
> link to them available to peons such as myself)"

You can compile ruby source in your own directory, and install gem on
a local repository by setting up
GEM_HOME environment variable.

Ruby scripts are helping generate fruit_basket (FORTRAN module with
collection of all tests), and friut_driver (FORTRAN program). You can
do those manually.
Rake is to build the libraries. You can use Make as well.

Cheers!
~Andrew Chen
no comments
Re: installing fruit         


Author: Gerry Ford
Date: Jan 29, 2008 05:07

"Andrew Chen" gmail.com> wrote in message
news:75399c1e-7098-4597-ac6a-2cf5f28b25e9@d21g2000prf.googlegroups.com...
> Gerry,
>
>>
>> Question 1) Where "should" I install it?
>
> It can be at any directory.
> Just unzip the file.
>
> The directory structure is:
> fruit
> |-- src : FORTRAN fruit modules
> |-- test : tests for fruit
> |-- sample : samples
> |-- bin : script to call code generater, if you don't want to
> use gems
> |-- fruit-processor-gem : gem for fruit processor
>
> Please check this document for installation. ...
Show full article (4.11Kb)
no comments
Re: installing fruit         


Author: Gerry Ford
Date: Jan 31, 2008 17:09

"Andrew Chen" gmail.com> wrote in message
news:ed673133-cf5b-4582-b220-2b757bfd7133@i3g2000hsf.googlegroups.com...
> Gerry,
>
> Yes, you have ruby, rubygem, and rake.
>
> Please try to do this:
> cd fruit\fruit_processor_gem\pkg
> gem install fruit_processor_*.gem (or your specific file gem
> filename)
>
>
> I understand the need to use the library on Windows. I don't have a
> Windows box to test the Windows installation yet.
> Base ruby and rake should run on Windows as well.
>
> Here are what I did:
>
> 1. I added misc.rb in the fruit_processor gem.
> There is one method is_windows? to test is the OS is Windows or not. ...
Show full article (2.56Kb)
no comments
Re: installing fruit         


Author: Andrew Chen
Date: Jan 31, 2008 18:38

Gerry,

Sorry for all the installation hassle it caused. First time
installation of Ruby is tough, especially you compile it from source
for the first time.

"> Can you elaborate somewhat on what fruit does for one's fortran
> capabilities? "

FRUIT is a FORTRAN unit testing framework. All it can do is to help
you verify result in the form of "assert_true (expected_value,
actual_value) ". It provides assert capability in your test code. It
makes sure your code works the way it intended to be.

You can ignore all other installation and ruby and rake stuff, and
only copy those 2 FORTRAN files in your directory. You are done.

http://fortranxunit.cvs.sourceforge.net/fortranxunit/fruit/src/fruit.f90?view=ma...
http://fortranxunit.cvs.sourceforge.net/fortranxunit/fruit/src/fruit_util.f90?view...

The usage is described in the "Add Fruit to your diet in 3 minutes"
http://fortranxunit.wiki.sourceforge.net/FruitExample

It really takes 3 minutes ( you need to copy the files in though :-)

Cheers!
~Andrew Chen
no comments
Re: installing fruit         


Author: Gerry Ford
Date: Feb 1, 2008 15:48

"Andrew Chen" gmail.com> wrote in message
news:f9fb49e6-d40c-4153-9c23-47d5682ab626@d4g2000prg.googlegroups.com...
> Gerry,
>
> Sorry for all the installation hassle it caused. First time
> installation of Ruby is tough, especially you compile it from source
> for the first time.
>
> "> Can you elaborate somewhat on what fruit does for one's fortran
>> capabilities? "
>
> FRUIT is a FORTRAN unit testing framework. All it can do is to help
> you verify result in the form of "assert_true (expected_value,
> actual_value) ". It provides assert capability in your test code. It
> makes sure your code works the way it intended to be.
>
>
> You can ignore all other installation and ruby and rake stuff, and
> only copy those 2 FORTRAN files in your directory. You are done.
> ...
Show full article (2.82Kb)
no comments
Re: installing fruit         


Author: Gerry Ford
Date: Feb 2, 2008 11:31

"Andrew Chen" gmail.com> wrote in message
news:ed673133-cf5b-4582-b220-2b757bfd7133@i3g2000hsf.googlegroups.com...
> Gerry,
>
> Yes, you have ruby, rubygem, and rake.
>
> Please try to do this:
> cd fruit\fruit_processor_gem\pkg
> gem install fruit_processor_*.gem (or your specific file gem
> filename)
>
>
> I understand the need to use the library on Windows. I don't have a
> Windows box to test the Windows installation yet.
> Base ruby and rake should run on Windows as well.
>
> Here are what I did:
>
> 1. I added misc.rb in the fruit_processor gem.
> There is one method is_windows? to test is the OS is Windows or not. ...
Show full article (1.86Kb)
no comments