X-Git-Url: http://pileus.org/git/?p=lackey;a=blobdiff_plain;f=src%2Ftest.c;h=96f7f8c3dc31122888edaf01ef05c0647fc06d21;hp=a9ed06c4c9c958616d0d81ebdd0bf6dceede8bd3;hb=f3ee8b7432fadc415514747ab1fd5dc375188f7f;hpb=a8c24ecfdee86b9ea9c35469f717fa3cf1b9b6ab diff --git a/src/test.c b/src/test.c index a9ed06c..96f7f8c 100644 --- a/src/test.c +++ b/src/test.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2012 Andy Spencer + * Copyright (C) 2012-2013 Andy Spencer * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -17,16 +17,19 @@ #include "date.h" #include "cal.h" +#include "conf.h" #include "util.h" void date_test(void); -void ical_test(void); +void conf_test(void); +void ical_test(void *path); int main(int argc, char **argv) { for (int i = 1; i < argc; i++) { if (match(argv[i], "date")) date_test(); - if (match(argv[i], "ical")) ical_test(); + if (match(argv[i], "conf")) conf_test(); + if (match(argv[i], "ical")) ical_test(argv[++i]); } return 0; }