File: fuzz.vala

package info (click to toggle)
libxmlbird 1.2.15-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 308 kB
  • sloc: python: 649; xml: 122; sh: 51; makefile: 14
file content (29 lines) | stat: -rw-r--r-- 446 bytes parent folder | download | duplicates (4)
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
namespace B {

int main (string[] args) {
	if (args.length < 2) {
		stderr.printf (@"Usage: $(args[0]) FILE_NAME");
		return 1;
	}
	
	for (int i = 1; i < args.length; i++) {
		string filename = args[i];
		string xml;
		
		if (args.length > 2) {
			stdout.printf ("%s\n", filename);
		}
		
		FileUtils.get_contents (filename, out xml);
		
		Test test = new Test (xml);
		
		if (test.validate ()) {
			test.get_content ();
		}
	}
	
	return 0;
}

}