Debian Codegraph @

debian/tests/examples

raw
1 #!/bin/sh
2 set -C -e -u
3
4 cd "$AUTOPKGTEST_TMP"
5 # Better copy all examples, as some files are symlinked.
6 cp -r /usr/share/doc/libaunit-dev/examples/* .
7
8 ######################################################################
9 cat > st <<EOF
10
11 OK Test Math package
12
13 Total Tests Run: 1
14 Successful Tests: 1
15 Failed Assertions: 0
16 Unexpected Errors: 0
17 EOF
18 make -C simple_test
19 simple_test/test_math | diff st -
20 ######################################################################
21 cat > tc <<EOF
22
23 OK Test addition
24 OK Test subtraction
25
26 Total Tests Run: 2
27 Successful Tests: 2
28 Failed Assertions: 0
29 Unexpected Errors: 0
30 EOF
31 make -C test_caller
32 test_caller/test_math | diff tc -
33 ######################################################################
34 cat > tf <<EOF
35
36 OK Test addition
37 OK Test subtraction
38
39 Total Tests Run: 2
40 Successful Tests: 2
41 Failed Assertions: 0
42 Unexpected Errors: 0
43 EOF
44 make -C test_fixture
45 test_fixture/test_math | diff tf -
46 ######################################################################
47 cat > c <<EOF
48
49 OK Test Stack.Push
50 OK Test Stack.Pop
51 OK Test Stack.Length
52 OK Test Stack.Top
53 OK Test Stack.Next_To_Top
54 OK Test Operations.Addition.Pop
55 OK Test Operations.Addition.Push
56 OK Test Operations.Addition.Execute
57 OK Test Operations.Subtraction.Pop
58 OK Test Operations.Subtraction.Push
59 OK Test Operations.Subtraction.Execute
60 OK Test Operands.Ints.Image
61
62 FAIL Test Operands.Ints.Value
63 test not implemented
64 at operands-ints-test.adb:23
65 FAIL Test Operands.Ints.Set
66 test not implemented
67 at operands-ints-test.adb:29
68
69 Total Tests Run: 14
70 Successful Tests: 12
71 Failed Assertions: 2
72 Unexpected Errors: 0
73 EOF
74 make -C calculator
75 calculator/test_calculator | diff c -