blob: e5828a89d72a3c8c498ef1c9777dd977e35418a7 (
plain)
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
|
This file describes the tests present in the libcroro tests directory.
=====================================================================
Initial author: Dodji Seketeli <dodji@seketeli.org>
Each entry of this file is orgnised as follows:
"""""""""""""""""""""""""""""""""""""""""""""""""
binary: name-of-the-test-binary-file
source-file: name-of-the-test-source-file
purpose: purpose of the test.
description: description of the test
"""""""""""""""""""""""""""""""""""""""""""""""""
And, in the words of RMS, happy hacking !
Dodji
##################################################################
"""""""""""""""""""""""""""""""""""""""""""""""""
binary: test0
source-file: test0-main.c
purpose: Tests the cr_input_read_byte() method of the CRInput class.
description: opens the file located at the path in parameter and
loads it into an input stream using the cr_input_new_from_uri()
method of the CRInput class.
Then, reads the bytes from the input stream using the cr_input_read_byte()
method and dumps each byte read to stdout.
Note that the input file must be encoded in utf8.
"""""""""""""""""""""""""""""""""""""""""""""""""
"""""""""""""""""""""""""""""""""""""""""""""""""
binary: test1
source-file: test1-main.c
purpose: Test the read_char() method of the CRInput class.
description: opens the file located at the path in parameter and
loads it into an input stream using the cr_input_new_from_uri()
method of the CRInput class.
Then, reads characters from the input stream using the cr_input_read_char()
method and dumps each character on stdout.
Note that the input file must be encoded in utf8.
"""""""""""""""""""""""""""""""""""""""""""""""""
"""""""""""""""""""""""""""""""""""""""""""""""""
binary: test2
source-file: test2-main.c
purpose: tests the sac api of the parser.
description: it loads the file located at the path given
in argument, instanciates a sac parser, set document
handlers and parses the file.
The doc handlers simply dump the name name of the callback
which is being called and some basic additional information.
"""""""""""""""""""""""""""""""""""""""""""""""""
"""""""""""""""""""""""""""""""""""""""""""""""""
binary: test3
source-file: test3-main.c
purpose: Test the SAC api core css grammar parsing
description: it loads the file located at the path given
in argument, instanciates a sac parser, set document
handlers and parses the file using the css2 core syntax.
The doc handlers simply dump the name name of the callback
which is being called and some basic additional information.
Here, the goal is that nothing is dump on screen because
during the parsing using the core grammar syntax, no callback
should be called.
"""""""""""""""""""""""""""""""""""""""""""""""""
"""""""""""""""""""""""""""""""""""""""""""""""""
binary: test4
source-file: test4-main.c
purpose: tests the cssom parser interface (cr-om-parser.c)
description: parses the file located at the path given in
parameter and dumps the result of the parsing (the object model)
on stdout.
"""""""""""""""""""""""""""""""""""""""""""""""""
|