[BACK]Return to t_misc.sh CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / tests / usr.bin / indent

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/tests/usr.bin/indent/t_misc.sh between version 1.1 and 1.2

version 1.1, 2021/10/14 17:42:13 version 1.2, 2021/10/14 18:55:41
Line 31 
Line 31 
 # used in t_indent.  # used in t_indent.
   
 indent=$(atf_config_get usr.bin.indent.test_indent /usr/bin/indent)  indent=$(atf_config_get usr.bin.indent.test_indent /usr/bin/indent)
   nl='
   '
   
   atf_test_case 'in_place'
   in_place_body()
   {
           cat <<-\EOF > code.c
                   int decl;
           EOF
           cat <<-\EOF > code.c.exp
                   int             decl;
           EOF
           cp code.c code.c.orig
   
           atf_check \
               env SIMPLE_BACKUP_SUFFIX=".bak" "$indent" code.c
           atf_check -o 'file:code.c.exp' \
               cat code.c
           atf_check -o 'file:code.c.orig' \
               cat code.c.bak
   }
   
 atf_test_case 'verbose_profile'  atf_test_case 'verbose_profile'
 verbose_profile_body()  verbose_profile_body()
Line 72  verbose_profile_body()
Line 93  verbose_profile_body()
   
 atf_init_test_cases()  atf_init_test_cases()
 {  {
           atf_add_test_case 'in_place'
         atf_add_test_case 'verbose_profile'          atf_add_test_case 'verbose_profile'
 }  }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

CVSweb <webmaster@jp.NetBSD.org>