-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathrun-examples
executable file
·72 lines (61 loc) · 1.98 KB
/
run-examples
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/bin/bash
#================================================================================
# Run all the examples
#
#================================================================================
clear
echo 'SAMPLE'
echo 'This example demonstrates a minimal unit test setup'
echo
./run-ut SAMPLEC SAMPLE SAMPLET
echo 'FIZZBUZZ'
echo 'This example demonstrates a unit test suite for'
echo 'an implementation of FizzBuzz'
echo
./run-ut FIZZBUZC FIZZBUZZ FIZZBUZT
#echo 'VIZZBUZZ'
#echo 'This example is the same as the FIZZBUZZ example,'
#echo 'but the program under test is written with the'
#echo '"classic" Cobol style (period after every statement)'
#echo
#./run-ut FIZZBUZC VIZZBUZZ FIZZBUZT
echo 'CONVERT'
echo 'This example demonstrates unit tests for a batch program'
echo 'that processes files. It shows how to organize the code'
echo 'so that file access is not necessary to support the'
echo 'automated unit tests'
echo
./run-ut CONVERTC CONVERT CONVERTT
echo 'CONVER2'
echo 'Same as CONVERT, but the program under test is written in'
echo '"classic" Cobol style (period after every statement)'
echo
./run-ut CONVERTC CONVER2 CONVERTT
echo 'INVDATE'
echo 'This example demonstrates unit test cases that have a'
echo 'dependency on the system clock'
echo
./run-ut INVDATEC INVDATE INVDATET
echo 'FILEDEMO'
echo 'This example demonstrates mocking batch file accesses'
echo
./run-ut FILEDEMC FILEDEMO FILEDEMT
echo 'CALLDEMO'
echo 'This example demonstrates mocking CALL statements'
echo
./run-ut CALLDEMC CALLDEMO CALLDEMT
echo 'PARADEMO'
echo 'This example demonstrates mocking paragraphs'
echo
./run-ut PARADEMC PARADEMO PARADEMT
echo 'SUBPROG'
echo 'This example demonstrates how to set up unit tests for'
echo 'a called subprogram'
echo
./run-ut -s SUBPROGC SUBPROG SUBPROGT SUBPROGD
echo 'CICSDEMO'
echo 'This example demonstrates isolated unit tests for a'
echo 'CICS application program. It does not require a CICS'
echo 'environment to run.'
echo
./run-ut -s CICSDEMC CICSDEMO CICSDEMT CICSDRIV