Hex Artifact Content

Artifact dc27a7e2a2371659d3b6db0f9cd883a03c32ec47e37c6c3fe5eebab89b787f98:


0000: 43 72 65 61 74 65 20 54 65 73 74 20 43 61 73 65  Create Test Case
0010: 73 0a 0a 31 2e 20 43 72 65 61 74 65 20 74 68 65  s..1. Create the
0020: 20 74 65 73 74 20 63 61 73 65 20 2a 2e 63 73 76   test case *.csv
0030: 20 66 69 6c 65 2e 20 59 6f 75 20 63 61 6e 20 75   file. You can u
0040: 73 65 20 6d 75 6c 74 69 70 6c 65 20 66 69 6c 65  se multiple file
0050: 73 2e 20 47 65 6e 65 72 61 6c 6c 79 20 69 74 27  s. Generally it'
0060: 73 20 61 20 67 6f 6f 64 20 69 64 65 61 20 74 6f  s a good idea to
0070: 20 67 72 6f 75 70 20 6c 69 6b 65 20 66 75 6e 63   group like func
0080: 74 69 6f 6e 73 20 69 6e 20 74 68 65 20 73 61 6d  tions in the sam
0090: 65 20 66 69 6c 65 2e 0a 0a 32 2e 20 41 64 64 20  e file...2. Add 
00a0: 74 65 73 74 20 63 61 73 65 73 20 74 6f 20 2a 2e  test cases to *.
00b0: 63 73 76 20 66 69 6c 65 73 2e 20 45 61 63 68 20  csv files. Each 
00c0: 74 65 73 74 20 63 61 73 65 20 69 73 20 6f 6e 20  test case is on 
00d0: 61 20 73 65 70 61 72 61 74 65 20 6c 69 6e 65 2e  a separate line.
00e0: 20 54 68 65 20 63 6f 6c 75 6d 6e 20 74 69 74 6c   The column titl
00f0: 65 73 20 63 6f 72 72 65 73 70 6f 6e 64 20 74 6f  es correspond to
0100: 20 74 68 65 20 74 63 6c 74 65 73 74 20 74 6f 6f   the tcltest too
0110: 6c 20 6f 70 74 69 6f 6e 73 2e 20 4c 65 61 76 65  l options. Leave
0120: 20 61 20 63 6f 6c 75 6d 6e 20 62 6c 61 6e 6b 20   a column blank 
0130: 69 66 20 6e 6f 74 20 75 73 65 64 2e 0a 0a 33 2e  if not used...3.
0140: 20 44 65 66 69 6e 65 20 61 6e 79 20 63 6f 6d 6d   Define any comm
0150: 6f 6e 20 66 75 6e 63 74 69 6f 6e 73 20 69 6e 20  on functions in 
0160: 61 20 63 6f 6d 6d 6f 6e 2e 74 63 6c 20 6f 72 20  a common.tcl or 
0170: 69 6e 20 2a 2e 63 73 76 20 66 69 6c 65 2e 0a 0a  in *.csv file...
0180: 34 2e 20 54 6f 20 63 72 65 61 74 65 20 74 68 65  4. To create the
0190: 20 74 65 73 74 20 63 61 73 65 73 20 73 63 72 69   test cases scri
01a0: 70 74 2c 20 65 78 65 63 75 74 65 20 6d 61 6b 65  pt, execute make
01b0: 5f 74 65 73 74 5f 66 69 6c 65 73 2e 74 63 6c 2e  _test_files.tcl.
01c0: 20 54 68 69 73 20 77 69 6c 6c 20 75 73 65 20 74   This will use t
01d0: 68 65 20 2a 2e 63 73 76 20 66 69 6c 65 73 20 74  he *.csv files t
01e0: 6f 20 63 72 65 61 74 65 20 74 68 65 20 2a 2e 74  o create the *.t
01f0: 65 73 74 20 66 69 6c 65 73 2e 0a 0a 0a 45 78 65  est files....Exe
0200: 63 75 74 65 20 54 65 73 74 20 53 75 69 74 65 0a  cute Test Suite.
0210: 0a 35 2e 20 54 6f 20 72 75 6e 20 74 68 65 20 74  .5. To run the t
0220: 65 73 74 20 73 75 69 74 65 2c 20 65 78 65 63 75  est suite, execu
0230: 74 65 20 74 68 65 20 61 6c 6c 2e 74 63 6c 20 66  te the all.tcl f
0240: 69 6c 65 2e 0a 0a 0a 53 70 65 63 69 61 6c 20 4e  ile....Special N
0250: 6f 74 65 73 0a 0a 4f 6e 20 73 79 73 74 65 6d 73  otes..On systems
0260: 20 74 68 61 74 20 64 6f 6e 27 74 20 75 73 65 20   that don't use 
0270: 61 20 73 74 61 6e 64 61 72 64 20 4f 70 65 6e 53  a standard OpenS
0280: 53 4c 20 69 6e 73 74 61 6c 6c 61 74 69 6f 6e 2c  SL installation,
0290: 20 74 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 65   the following e
02a0: 6e 76 69 72 6f 6e 6d 65 6e 74 20 76 61 72 69 61  nvironment varia
02b0: 62 6c 65 73 20 63 61 6e 20 62 65 20 75 73 65 64  bles can be used
02c0: 20 74 6f 20 73 65 74 20 53 53 4c 20 63 65 72 74   to set SSL cert
02d0: 20 69 6e 66 6f 3a 0a 0a 53 53 4c 5f 43 45 52 54   info:..SSL_CERT
02e0: 5f 46 49 4c 45 20 3d 20 53 65 74 20 74 6f 20 66  _FILE = Set to f
02f0: 69 6c 65 20 77 69 74 68 20 53 53 4c 20 43 41 20  ile with SSL CA 
0300: 63 65 72 74 69 66 69 63 61 74 65 73 20 69 6e 20  certificates in 
0310: 4f 70 65 6e 53 53 4c 20 63 6f 6d 70 61 74 69 62  OpenSSL compatib
0320: 6c 65 20 66 6f 72 6d 61 74 2e 20 54 68 65 20 75  le format. The u
0330: 73 75 61 6c 20 66 69 6c 65 20 6e 61 6d 65 20 69  sual file name i
0340: 73 20 2f 70 61 74 68 2f 74 6f 2f 63 61 63 65 72  s /path/to/cacer
0350: 74 2e 70 65 6d 2e 0a 0a 53 53 4c 5f 43 45 52 54  t.pem...SSL_CERT
0360: 5f 44 49 52 20 3d 20 50 61 74 68 20 74 6f 20 64  _DIR = Path to d
0370: 69 72 65 63 74 6f 72 79 20 77 69 74 68 20 43 41  irectory with CA
0380: 20 66 69 6c 65 73 2e 0a                           files..