1 /***************************************************************************
2 * test_stream.c - streaming test suite
4 * begin : Mon 26 Nov 2007
5 * copyright : (C) 2007 by Markus Raab
6 * email : elektra@markus-raab.org
7 ****************************************************************************/
9 /***************************************************************************
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the BSD License (revised). *
14 ***************************************************************************/
30 void test_keyoutput ()
35 printf("Testing Read and write xml\n");
38 // fout = fopen ("key.txt", "w");
39 exit_if_fail( ksFromXMLfile(ks, srcdir_file ("key.xml")) == 0, "ksFromXMLfile(key.xml) failed.");
40 // compare_files ("key.xml");
42 // ksOutput (ks, fout, KEY_VALUE | KEY_COMMENT);
43 // ksOutput (ks, fout, KDB_O_SHOWMETA);
44 ksOutput (ks, fout, KDB_O_SHOWFLAGS);
50 printf("STREAM TESTS\n");
51 printf("==================\n\n");
56 printf("\ntest_stream RESULTS: %d test(s) done. %d error(s).\n", nbTest, nbError);