Boost logo

Boost-Commit :

From: srajko_at_[hidden]
Date: 2007-06-15 01:12:07


Author: srajko
Date: 2007-06-15 01:12:07 EDT (Fri, 15 Jun 2007)
New Revision: 7056
URL: http://svn.boost.org/trac/boost/changeset/7056

Log:
add sandbox template ignore and fignore tests

Added:
   sandbox/template_under_construction/file_template/libs/file_template/test/expected/simple_template_fignored/
   sandbox/template_under_construction/file_template/libs/file_template/test/expected/simple_template_fignored/substituted/
   sandbox/template_under_construction/file_template/libs/file_template/test/expected/simple_template_fignored/substituted/file.doc (contents, props changed)
   sandbox/template_under_construction/file_template/libs/file_template/test/expected/simple_template_fignored/xyz/
   sandbox/template_under_construction/file_template/libs/file_template/test/expected/simple_template_fignored/xyz/file.xyz (contents, props changed)
   sandbox/template_under_construction/file_template/libs/file_template/test/expected/simple_template_ignored/
   sandbox/template_under_construction/file_template/libs/file_template/test/expected/simple_template_ignored/xyz/
   sandbox/template_under_construction/file_template/libs/file_template/test/expected/simple_template_ignored/xyz/file.xyz (contents, props changed)
Text files modified:
   sandbox/template_under_construction/file_template/libs/file_template/test/test.sh | 4 +++-
   1 files changed, 3 insertions(+), 1 deletions(-)

Added: sandbox/template_under_construction/file_template/libs/file_template/test/expected/simple_template_fignored/substituted/file.doc
==============================================================================
--- (empty file)
+++ sandbox/template_under_construction/file_template/libs/file_template/test/expected/simple_template_fignored/substituted/file.doc 2007-06-15 01:12:07 EDT (Fri, 15 Jun 2007)
@@ -0,0 +1,2 @@
+This will get copied because the 'doc' extension is not processed: $template_text$
+$template_substitution$

Added: sandbox/template_under_construction/file_template/libs/file_template/test/expected/simple_template_fignored/xyz/file.xyz
==============================================================================
--- (empty file)
+++ sandbox/template_under_construction/file_template/libs/file_template/test/expected/simple_template_fignored/xyz/file.xyz 2007-06-15 01:12:07 EDT (Fri, 15 Jun 2007)
@@ -0,0 +1,2 @@
+This will get substituted in xyz: substituted in xyz file
+This will get substituted: substituted

Added: sandbox/template_under_construction/file_template/libs/file_template/test/expected/simple_template_ignored/xyz/file.xyz
==============================================================================
--- (empty file)
+++ sandbox/template_under_construction/file_template/libs/file_template/test/expected/simple_template_ignored/xyz/file.xyz 2007-06-15 01:12:07 EDT (Fri, 15 Jun 2007)
@@ -0,0 +1,2 @@
+This will get substituted in xyz: substituted in xyz file
+This will get substituted: substituted

Modified: sandbox/template_under_construction/file_template/libs/file_template/test/test.sh
==============================================================================
--- sandbox/template_under_construction/file_template/libs/file_template/test/test.sh (original)
+++ sandbox/template_under_construction/file_template/libs/file_template/test/test.sh 2007-06-15 01:12:07 EDT (Fri, 15 Jun 2007)
@@ -13,7 +13,7 @@
     echo $input \| make_template.py $* | cat >>test.results
     echo ---------------- | cat >>test.results
     echo $input | python2.3 ../../../../make_template.py destination=$result "$@"
- diff -r $expected $result | cat >>test.results
+ diff -b -r $expected $result | cat >>test.results
 }
 
 rm test.results
@@ -21,6 +21,8 @@
 
 run_test simple_type_in simple_template substituted simple_template
 run_test simple_command_line simple_template "" simple_template text=substituted
+run_test simple_ignore simple_template_ignored "" simple_template text=substituted ignore=\$template_text\$
+run_test simple_fignore simple_template_fignored "" simple_template text=substituted fignore=.txt
 run_test sandbox_command_line sandbox_test "" ../../../../sandbox "author=John Doe,Jane H. Dough" library=test
 
 echo


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk