Difference between revisions of "Automatic Testing"

From Madagascar
Jump to navigation Jump to search
(New page: =Automatic Testing= ==Testing Scripts== The following scripts use [http://www.ahay.org/RSF/sfbooklist.html sfbooklist] and [http://www.ahay.org/RSF/sffiglist.html sffiglist]. Run them fr...)
 
Line 3: Line 3:
 
==Testing Scripts==
 
==Testing Scripts==
  
The following scripts use [http://www.ahay.org/RSF/sfbooklist.html sfbooklist] and [http://www.ahay.org/RSF/sffiglist.html sffiglist]. Run them from <tt>$RSFSRC</tt>.
+
The following commands use [http://www.ahay.org/RSF/sfbooklist.html sfbooklist] and [http://www.ahay.org/RSF/sffiglist.html sffiglist]. Run them from <tt>$RSFSRC</tt>.
  
* List all the examples in book that use <program>
+
# List all the examples in <tt>book</tt> that use <tt><program></tt><pre>sfbooklist uses=<program> list=filter book</pre>
<pre>
+
# rebuild all the examples in <tt>book</tt> that use <tt><program></tt><pre>sfbooklist uses=<program> list=filter command=scons book</pre>
sfbooklist uses=<program> list=filter book
+
# Compare the newly generated figs with the corresponding reference figs stored in <tt>$RSFFIGS</tt> (defaulted to <tt>$RSFROOT/share/figs</tt>)<pre> sfbooklist uses=<program> list=filter command="sffiglist rsftest=y list=none" book</pre>
</pre>
+
# Display any figs that are different from their <tt>$RSFFIGS</tt> counterparts<pre>sfbooklist uses=<program> list=filter command="sffiglist rsftest=y list=none show=diff" book</pre>
* rebuild all the examples in book that use <program>
 
<pre>
 
sfbooklist uses=<program> list=filter command=scons book
 
</pre>
 
* Compare the newly generated figs with the corresponding reference figs stored in <tt>$RSFFIGS</tt> (defaulted to <tt>$RSFROOT/share/figs</tt>)
 
<pre>  
 
sfbooklist uses=<program> list=filter command="sffiglist rsftest=y list=none" book
 
</pre>
 
* Display any figs that are different from their <tt>$RSFFIGS</tt> counterparts
 
<pre>
 
sfbooklist uses=<program> list=filter command="sffiglist rsftest=y list=none show=diff" book
 
</pre>
 

Revision as of 20:21, 30 May 2010

Automatic Testing

Testing Scripts

The following commands use sfbooklist and sffiglist. Run them from $RSFSRC.

  1. List all the examples in book that use <program>
    sfbooklist uses=<program> list=filter book
  2. rebuild all the examples in book that use <program>
    sfbooklist uses=<program> list=filter command=scons book
  3. Compare the newly generated figs with the corresponding reference figs stored in $RSFFIGS (defaulted to $RSFROOT/share/figs)
     sfbooklist uses=<program> list=filter command="sffiglist rsftest=y list=none" book
  4. Display any figs that are different from their $RSFFIGS counterparts
    sfbooklist uses=<program> list=filter command="sffiglist rsftest=y list=none show=diff" book