From 5e009b70d36fece143c04b2fff8c5976f3239676 Mon Sep 17 00:00:00 2001 From: Alexander Vdolainen Date: Tue, 6 Apr 2021 02:04:51 +0300 Subject: [PATCH] Added skel for test eport function; --- src/.gitignore | 1 + src/Makefile.am | 6 +++++- src/tests/testeport.c | 47 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 src/tests/testeport.c diff --git a/src/.gitignore b/src/.gitignore index 9546959..dedbb60 100644 --- a/src/.gitignore +++ b/src/.gitignore @@ -2,3 +2,4 @@ ejabberdauth .deps testimap testsmtp +testeport diff --git a/src/Makefile.am b/src/Makefile.am index 0a46aeb..b37bb5a 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -10,7 +10,7 @@ AM_CPPFLAGS = \ AM_CFLAGS = -Wall -g if BUILD_TESTS -bin_PROGRAMS = ejabberdauth testimap testsmtp +bin_PROGRAMS = ejabberdauth testimap testsmtp testeport else bin_PROGRAMS = ejabberdauth endif @@ -27,5 +27,9 @@ testimap_LDADD = $(LIBS) $(OPENSSL_LIBS) testsmtp_SOURCES = tls.c smtp.c tests/misc.c tests/testsmtp.c testsmtp_LDADD = $(LIBS) $(OPENSSL_LIBS) + +testeport_SOURCES = eport.c tests/misc.c tests/testeport.c + +testeport_LDADD = $(LIBS) endif diff --git a/src/tests/testeport.c b/src/tests/testeport.c new file mode 100644 index 0000000..dfb9610 --- /dev/null +++ b/src/tests/testeport.c @@ -0,0 +1,47 @@ +/* + * ejabberd external authentication program + * + * (c) Alexander Vdolainen 2013, 2018, 2019, 2021 + * + * this is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published + * by the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * this is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see ."; + * + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include + +#define PRG_NAME "ejabberauth erlang port function test" + +extern int ejda_username_split(char *buf, char **user, char **domain); + +int main(int argc, char **argv) +{ + return 0; +}