doc/testing.txt
changeset 3747 d2f2bcf116e8
parent 3744 a74b6fa1af7a
child 4091 fca9099ab398
equal deleted inserted replaced
3746:5d7feca9a1c9 3747:d2f2bcf116e8
   196 COMPONENT_TEST_TRANSFORMS = \
   196 COMPONENT_TEST_TRANSFORMS = \
   197         '-e "s|$(@D)|\\$$(@D)|g" ' \
   197         '-e "s|$(@D)|\\$$(@D)|g" ' \
   198         '-e "s|$(PERL)|\\$$(PERL)|g" ' \
   198         '-e "s|$(PERL)|\\$$(PERL)|g" ' \
   199         '-e "s|$(SOURCE_DIR)|\\$$(SOURCE_DIR)|g" '
   199         '-e "s|$(SOURCE_DIR)|\\$$(SOURCE_DIR)|g" '
   200 
   200 
       
   201 Note that in some cases, gsed is not powerful enough.  E.g., if you need to
       
   202 do more than massage or remove certain lines, but only compare certain sections
       
   203 of the file, then you may need to set COMPONENT_TEST_TRANSFORMER to something
       
   204 other than $(GSED) such as $(NAWK).  In this case, you will want to set
       
   205 COMPONENT_TEST_TRANSFORMS using "=" instead of "+=", as the default sed
       
   206 transforms will likely need to be tossed aside in favor of whatever arguments
       
   207 your favorite transformer might need.
       
   208 
   201 When your master test file(s) are in good shape, then you should "hg add"
   209 When your master test file(s) are in good shape, then you should "hg add"
   202 them to your workspace.
   210 them to your workspace.