Print this page
7290 ZFS test suite needs to control what utilities it can run
Reviewed by: Dan Kimmel <dan.kimmel@delphix.com>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/test/zfs-tests/tests/functional/cli_root/cli_common.kshlib
          +++ new/usr/src/test/zfs-tests/tests/functional/cli_root/cli_common.kshlib
↓ open down ↓ 16 lines elided ↑ open up ↑
  17   17  # information: Portions Copyright [yyyy] [name of copyright owner]
  18   18  #
  19   19  # CDDL HEADER END
  20   20  #
  21   21  
  22   22  #
  23   23  # Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
  24   24  # Use is subject to license terms.
  25   25  #
  26   26  
       27 +#
       28 +# Copyright (c) 2016 by Delphix. All rights reserved.
       29 +#
       30 +
  27   31  . $STF_SUITE/include/libtest.shlib
  28   32  
  29   33  #
  30   34  # Get the checksum and size of the file.
  31   35  #
  32   36  function get_cksum # <file path>
  33   37  {
  34      -        return $($CKSUM $1 | $AWK '{print $1 $2}')
       38 +        return $(cksum $1 | awk '{print $1 $2}')
  35   39  }
  36   40  
  37   41  #
  38   42  # Compare the check sum of target files with the original file
  39   43  #
  40   44  
  41   45  function compare_cksum #<orig_data> <target_data1>...<target_datan>
  42   46  {
  43   47          typeset orig_data=$1
  44   48          typeset orig_sum=$(get_cksum $orig_data)
↓ open down ↓ 42 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX