1 /***************************************************************************
2 * test_split.c - Test suite for splitted keyset data structure
4 * begin : Fri 21 Mar 2008
5 * copyright : (C) 2008 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 /*Needs private declarations*/
31 #include <kdbbackend.h>
35 wchar_t multicharSeq [5];
37 printf ("Test kdbiStrLen\n");
38 multicharSeq [0] = '\323';
39 multicharSeq [1] = L'a';
40 multicharSeq [2] = L'\20';
41 multicharSeq [3] = L'\40';
42 multicharSeq [4] = L'\0';
44 // printf ("%s %d %d\n", multicharSeq, kdbiStrLen (multicharSeq), strlen(multicharSeq));
45 succeed_if(kdbiStrLen ((char*)multicharSeq) == 6, "could not deduce correct multichar sequence length");
48 int test_load_toolslib()
50 KeySet *ks = ksNew (0);
52 exit_if_fail (loadToolsLib()==0, "Unable to load elektratools");
53 exit_if_fail( ksFromXMLfile(ks, "key.xml") == 0, "ksFromXMLfile(key.xml) failed.");
54 ksGenerate (ks, stdout, KDB_O_HEADER);
62 printf("INTERNALS TESTS\n");
63 printf("==================\n\n");
68 // test_load_toolslib();
70 printf("\ntest_internals RESULTS: %d test(s) done. %d error(s).\n", nbTest, nbError);