summaryrefslogtreecommitdiffstats
path: root/src/tester.c
blob: 40be2ff355ba4e617e3112c83d22e78e79c48710 (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
#include "overlay.h"
#include "interpreter.h"

int main(int argc, char *argv[])
{
	argc = argc;
	argv = argv;
	interpreterInit();
	
	Overlay *o = createOverlay("<overlay type='svn' src='https://overlays.gentoo.org/svn/dev/wrobel' contact='nobody@gentoo.org' name='wrobel' status='official' priorit='10'><description>Test</description></overlay>", "", 1, 0);

	if (!o)
	{
		printf("Error creating overlay.\n");
		return 0;
	}
	
	printf("Overlay name = %s, owner email : %s, description : %s, priority : %d, it is %sofficial.\n", overlayName(o), overlayOwnerEmail(o), overlayDescription(o), overlayPriority(o), overlayIsOfficial(o) ? "" : "not ");

	printf("xml is %s\n", overlayToXml(o));

	interpreterFinalize();

	return 0;
}