rpc-tirpc: Remove authdes related tests
RFC PATCH 1/1 rpc-tirpc: Remove authdes related tests
authdes is by default compiled out in libtirpc 1.2.5, thus authdes_create() returns NULL (see libtirpc commit bf8f0b8 Add back the authdes interfaces) and IMHO there is no way to detect whether libtirpc was compiled without authdes support to skip the test.
Interface to authdes_seccreate() is missing when libtirpc is compiled without authdes, thus compilation fail:
/usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld: /tmp/ccFanCMm.o: in function `main':testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_seccreate/tirpc_authdes_seccreate.c:55: undefined reference to `authdes_seccreate'
---
Hi,
or is it safe to expect that authdes is compiled out when authdes_create() returning NULL? I also decided to remove tests because authdes is deprecated and uClibc
and musl does not provide DES authentication.
FYI I've sent patch to libtirpc to add authdes_seccreate() interface [1].
[1] https://sourceforge.net/p/libtirpc/mailman/message/36889142/
runtest/net.tirpc_tests | 2 - testcases/network/rpc/rpc-tirpc/.gitignore | 2 - .../tirpc/tirpc_auth_authdes_create/Makefile | 23 ------- .../tirpc_auth_authdes_create/assertions.xml | 5 -- .../tirpc_authdes_create.c | 60 ----------------- .../tirpc_auth_authdes_seccreate/Makefile | 23 ------- .../assertions.xml | 5 -- .../tirpc_authdes_seccreate.c | 65 ------------------- 8 files changed, 185 deletions(-) delete mode 100644 testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_create/Makefile delete mode 100644 testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_create/assertions.xml delete mode 100644 testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_create/tirpc_authdes_create.c delete mode 100644 testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_seccreate/Makefile delete mode 100644 testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_seccreate/assertions.xml delete mode 100644 testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_seccreate/tirpc_authdes_seccreate.c
runtest/net.tirpc_tests +0 -2
@@ -4,8 +4,6 @@ tirpc_rpcb_getmaps rpc_test.sh -s tirpc_svc_3 -c tirpc_rpcb_getmaps tirpc_authnone_create rpc_test.sh -c tirpc_authnone_create tirpc_authsys_create rpc_test.sh -s tirpc_svc_1 -c tirpc_authsys_create tirpc_authsys_create_default rpc_test.sh -c tirpc_authsys_create_default -tirpc_authdes_create rpc_test.sh -s tirpc_svc_1 -c tirpc_authdes_create -tirpc_authdes_seccreate rpc_test.sh -s tirpc_svc_1 -c tirpc_authdes_seccreate tirpc_clnt_dg_create rpc_test.sh -s tirpc_svc_5 -c tirpc_clnt_dg_create tirpc_svc_dg_create rpc_test.sh -c tirpc_svc_dg_create
testcases/network/rpc/rpc-tirpc/.gitignore +0 -2
@@ -140,7 +140,6 @@ /tests_pack/rpc_suite/tirpc/tirpc_expertlevel_rpcb_rmtcall/tirpc_rpcb_rmtcall_mt /tests_pack/rpc_suite/tirpc/tirpc_expertlevel_rpcb_rmtcall/tirpc_rpcb_rmtcall_performance /tests_pack/rpc_suite/tirpc/tirpc_expertlevel_rpcb_rmtcall/tirpc_rpcb_rmtcall -/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_seccreate/tirpc_authdes_seccreate /tests_pack/rpc_suite/tirpc/tirpc_expertlevel_rpcb_set/tirpc_rpcb_set /tests_pack/rpc_suite/tirpc/tirpc_err_svcerr_weakauth/tirpc_svcerr_weakauth /tests_pack/rpc_suite/tirpc/tirpc_err_svcerr_systemerr/tirpc_svcerr_systemerr
@@ -176,7 +175,6 @@ /tests_pack/rpc_suite/tirpc/tirpc_interlevel_clnt_control/tirpc_clnt_control /tests_pack/rpc_suite/tirpc/tirpc_interlevel_clnt_control/tirpc_clnt_control_limits /tests_pack/rpc_suite/tirpc/tirpc_interlevel_clnt_tp_create/tirpc_clnt_tp_create -/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_create/tirpc_authdes_create /tests_pack/rpc_suite/tirpc/tirpc_interlevel_svc_tp_create/tirpc_svc_tp_create /tests_pack/rpc_suite/tirpc/tirpc_toplevel_clnt_create_timed/tirpc_clnt_create_timed /tests_pack/rpc_suite/tirpc/tirpc_toplevel_clnt_create_timed/tirpc_clnt_create_timed_limits
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_create/Makefile deleted +0 -23
@@ -1,23 +0,0 @@ -# -# Copyright (C) 2014, Oracle and/or its affiliates. All Rights Reserved. -# -# 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 -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program 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, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -# - -top_srcdir ?= ../../../../../../../.. - -include $(top_srcdir)/include/mk/env_pre.mk -include $(abs_srcdir)/../../../Makefile.inc -include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_create/assertions.xml deleted +0 -5
@@ -1,5 +0,0 @@ -<assertions> - <assertion id="1" tag="ef:XSH6TC2:3966:3967"> - Basic call of TIRPC authdes_create() function - </assertion> -</assertions>
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_create/tirpc_authdes_create.c deleted +0 -60
60 lines not on this page · raw message
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_seccreate/Makefile deleted +0 -23
@@ -1,23 +0,0 @@ -# -# Copyright (C) 2014, Oracle and/or its affiliates. All Rights Reserved. -# -# 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 -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program 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, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -# - -top_srcdir ?= ../../../../../../../.. - -include $(top_srcdir)/include/mk/env_pre.mk -include $(abs_srcdir)/../../../Makefile.inc -include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_seccreate/assertions.xml deleted +0 -5
@@ -1,5 +0,0 @@ -<assertions> - <assertion id="1" tag="ef:XSH6TC2:3966:3967"> - Basic call of TIRPC authdes_seccreate() function - </assertion> -</assertions>
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_seccreate/tirpc_authdes_seccreate.c deleted +0 -65
65 lines not on this page · raw message
Signature · 1 line
2.24.0
RFC PATCH 1/1 rpc-tirpc: Remove authdes related tests
Quoted 5 lines · Petr Vorel
authdes is by default compiled out in libtirpc 1.2.5, thus
authdes_create()returns NULL (see libtirpc commit bf8f0b8 Add back the authdes interfaces) and IMHO there is no way to detect whether libtirpc was compiled without authdes support to skip the test.
Maybe uses m4 can detect if authdes_seccreate() support or not, similar to ltp commit 5bec81cd8550.
But I also think to remove these tests is a better option. ACK from my side.
Quoted 11 lines
Interface to
authdes_seccreate()is missing when libtirpc is compiled without authdes, thus compilation fail:
/usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld:/tmp/ccFanCMm.o: in function `main':testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_seccreate/tirpc_authdes_seccreate.c:55:
undefined reference to `authdes_seccreate'Signed-off-by Petr Vorel <[email protected]>
Quoted 338 lines
---
Hi,or is it safe to expect that authdes is compiled out when
authdes_create()returning NULL?
I also decided to remove tests because authdes is deprecated and uClibc and musl does not provide DES authentication.FYI I've sent patch to libtirpc to add
authdes_seccreate()interface [1].[1] https://sourceforge.net/p/libtirpc/mailman/message/36889142/
runtest/net.tirpc_tests | 2 - testcases/network/rpc/rpc-tirpc/.gitignore | 2 - .../tirpc/tirpc_auth_authdes_create/Makefile | 23 ------- .../tirpc_auth_authdes_create/assertions.xml | 5 -- .../tirpc_authdes_create.c | 60 ----------------- .../tirpc_auth_authdes_seccreate/Makefile | 23 ------- .../assertions.xml | 5 -- .../tirpc_authdes_seccreate.c | 65 ------------------- 8 files changed, 185 deletions(-) delete mode 100644 testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_create/Makefile delete mode 100644 testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_create/assertions.xml delete mode 100644 testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_create/tirpc_authdes_create.c delete mode 100644 testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_seccreate/Makefile delete mode 100644 testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_seccreate/assertions.xml delete mode 100644
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_seccreate/tirpc_authdes_seccreate.cruntest/net.tirpc_tests +0
-0@@ -4,8 +4,6 @@ tirpc_rpcb_getmaps rpc_test.sh -s tirpc_svc_3 -c
tirpc_rpcb_getmaps
tirpc_authnone_createrpc_test.sh-ctirpc_authnone_createtirpc_authsys_createrpc_test.sh-stirpc_svc_1-ctirpc_authsys_createtirpc_authsys_create_defaultrpc_test.sh-ctirpc_authsys_create_defaultruntest/net.tirpc_tests +0
-2-tirpc_authdes_create rpc_test.sh -s tirpc_svc_1 -c tirpc_authdes_create -tirpc_authdes_seccreate rpc_test.sh -s tirpc_svc_1 -c
tirpc_authdes_seccreate
tirpc_clnt_dg_createrpc_test.sh-stirpc_svc_5-ctirpc_clnt_dg_createtirpc_svc_dg_createrpc_test.sh-ctirpc_svc_dg_createtestcases/network/rpc/rpc-tirpc/.gitignore +0
-2@@ -140,7 +140,6 @@ /tests_pack/rpc_suite/tirpc/tirpc_expertlevel_rpcb_rmtcall/tirpc_rpcb_rmtcall_mt /tests_pack/rpc_suite/tirpc/tirpc_expertlevel_rpcb_rmtcall/tirpc_rpcb_rmtcall_performance /tests_pack/rpc_suite/tirpc/tirpc_expertlevel_rpcb_rmtcall/tirpc_rpcb_rmtcall -/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_seccreate/tirpc_authdes_seccreate /tests_pack/rpc_suite/tirpc/tirpc_expertlevel_rpcb_set/tirpc_rpcb_set /tests_pack/rpc_suite/tirpc/tirpc_err_svcerr_weakauth/tirpc_svcerr_weakauth /tests_pack/rpc_suite/tirpc/tirpc_err_svcerr_systemerr/tirpc_svcerr_systemerr@@ -176,7 +175,6 @@ /tests_pack/rpc_suite/tirpc/tirpc_interlevel_clnt_control/tirpc_clnt_control /tests_pack/rpc_suite/tirpc/tirpc_interlevel_clnt_control/tirpc_clnt_control_limits /tests_pack/rpc_suite/tirpc/tirpc_interlevel_clnt_tp_create/tirpc_clnt_tp_create -/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_create/tirpc_authdes_create/tests_pack/rpc_suite/tirpc/tirpc_interlevel_svc_tp_create/tirpc_svc_tp_create
/tests_pack/rpc_suite/tirpc/tirpc_toplevel_clnt_create_timed/tirpc_clnt_create_timed
/tests_pack/rpc_suite/tirpc/tirpc_toplevel_clnt_create_timed/tirpc_clnt_create_timed_limits
diff --git a/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_create/Makefile b/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_create/Makefile deleted file mode 100644
index 23bf048f0..000000000
---
a/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_create/Makefile +++/dev/nulltestcases/network/rpc/rpc-tirpc/.gitignore +0
-2@@ -1,23 +0,0 @@ -# -# Copyright (C) 2014, Oracle and/or its affiliates. All RightsReserved.
testcases/network/rpc/rpc-tirpc/.gitignore +0
-12-# -# 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 -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program 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 Licensealong
-# with this program; if not, write to the Free Software Foundation,
Inc.,testcases/network/rpc/rpc-tirpc/.gitignore +0
-8-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -# - -top_srcdir ?= ../../../../../../../.. - -include $(top_srcdir)/include/mk/env_pre.mk -include $(abs_srcdir)/../../../Makefile.inc -include $(top_srcdir)/include/mk/generic_leaf_target.mkdiff --git
a/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_create/assertions.xmlb/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_create/assertions.xmldeleted file mode 100644
index 927fdbbfb..000000000
---a/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_create/assertions.xml+++/dev/nulltestcases/network/rpc/rpc-tirpc/.gitignore +0
-5@@ -1,5 +0,0 @@ -<assertions> - <assertion id="1" tag="ef:XSH6TC2:3966:3967"> - Basic call of TIRPC authdes_create() function - </assertion> -</assertions>diff --git
a/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_create/tirpc_authdes_create.cb/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_create/tirpc_authdes_create.cdeleted file mode 100644
index bd52f5c0f..000000000
---a/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_create/tirpc_authdes_create.c+++/dev/nulltestcases/network/rpc/rpc-tirpc/.gitignore +0
-41@@ -1,60 +0,0 @@ -/* -* Copyright (c) Bull S.A. 2007 All Rights Reserved. -* -* This program is free software; you can redistribute it and/or modify it -* under the terms of version 2 of the GNU General Public License as -* published by the Free Software Foundation. -* -* This program is distributed in the hope that it would be useful, but -* WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -* -* Further, this software is distributed without any warranty that it is -* free of the rightful claim of any third person regarding infringement -* or the like. Any license provided herein, whether implied or -* otherwise, applies only to this software file. Patent licenses, if -* any, provided herein do not apply to combinations of this program with -* other software, or any other product whatsoever. -* -* You should have received a copy of the GNU General Public License along -* with this program; if not, write the Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -* -* History: -* Created by: Cyril Lacabanne ([email protected]) -* -*/ - -#include <stdio.h> -#include <stdlib.h> -#include <time.h> -#include <netdb.h> -#include "lapi/rpc.h" - -//Standard define -#define PROCNUM 1 -#define VERSNUM 1 - -int main(int argn, char *argc[]) -{ - //Program parameters : argc[1] : HostName or Host IP - // argc[2] : ServerProgram Number
- // other arguments depend
on test casetestcases/network/rpc/rpc-tirpc/.gitignore +0
-18- - int test_status = 1; //Default test result set to FAILED - AUTH *authDes = NULL; - struct sockaddr server_addr; - - //Initialization - - authDes = authdes_create(argc[1], 60, &server_addr, NULL); - - //If we are here, macro call was successful - test_status = ((AUTH *) authDes != NULL) ? 0 : 1; - - //This last printf gives the result status to the tests suite - //normally should be 0: test has passed or 1: test has failed - printf("%d\n", test_status); - - return test_status; -}diff --git a/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_seccreate/Makefile b/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_seccreate/Makefile deleted file mode 100644
index 23bf048f0..000000000
---
a/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_seccreate/Makefile +++/dev/nulltestcases/network/rpc/rpc-tirpc/.gitignore +0
-2@@ -1,23 +0,0 @@ -# -# Copyright (C) 2014, Oracle and/or its affiliates. All RightsReserved.
testcases/network/rpc/rpc-tirpc/.gitignore +0
-12-# -# 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 -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program 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 Licensealong
-# with this program; if not, write to the Free Software Foundation,
Inc.,testcases/network/rpc/rpc-tirpc/.gitignore +0
-8-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -# - -top_srcdir ?= ../../../../../../../.. - -include $(top_srcdir)/include/mk/env_pre.mk -include $(abs_srcdir)/../../../Makefile.inc -include $(top_srcdir)/include/mk/generic_leaf_target.mkdiff --git
a/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_seccreate/assertions.xmlb/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_seccreate/assertions.xmldeleted file mode 100644
index a19e4c1f2..000000000
---a/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_seccreate/assertions.xml+++/dev/nulltestcases/network/rpc/rpc-tirpc/.gitignore +0
-5@@ -1,5 +0,0 @@ -<assertions> - <assertion id="1" tag="ef:XSH6TC2:3966:3967"> - Basic call of TIRPC authdes_seccreate() function - </assertion> -</assertions>diff --git
a/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_seccreate/tirpc_authdes_seccreate.cb/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_seccreate/tirpc_authdes_seccreate.cdeleted file mode 100644
index 87b07ec54..000000000
---a/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_seccreate/tirpc_authdes_seccreate.c+++/dev/nulltestcases/network/rpc/rpc-tirpc/.gitignore +0
-41@@ -1,65 +0,0 @@ -/* -* Copyright (c) Bull S.A. 2007 All Rights Reserved. -* -* This program is free software; you can redistribute it and/or modify it -* under the terms of version 2 of the GNU General Public License as -* published by the Free Software Foundation. -* -* This program is distributed in the hope that it would be useful, but -* WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -* -* Further, this software is distributed without any warranty that it is -* free of the rightful claim of any third person regarding infringement -* or the like. Any license provided herein, whether implied or -* otherwise, applies only to this software file. Patent licenses, if -* any, provided herein do not apply to combinations of this program with -* other software, or any other product whatsoever. -* -* You should have received a copy of the GNU General Public License along -* with this program; if not, write the Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -* -* History: -* Created by: Cyril Lacabanne ([email protected]) -* -*/ - -#include <stdio.h> -#include <stdlib.h> -#include <time.h> -#include <netdb.h> -#include "lapi/rpc.h" - -//Standard define -#define PROCNUM 1 -#define VERSNUM 1 - -int main(int argn, char *argc[]) -{ - //Program parameters : argc[1] : HostName or Host IP - // argc[2] : ServerProgram Number
- // other arguments depend
on test casetestcases/network/rpc/rpc-tirpc/.gitignore +0
-2- - //run_mode can switch into stand alone program or program launchby shell script
testcases/network/rpc/rpc-tirpc/.gitignore +0
-2- //1 : stand alone, debug mode, more screen information - //0 : launch by shell script as test case, only one printf ->result status
testcases/network/rpc/rpc-tirpc/.gitignore +0
-9- int run_mode = 0; - int test_status = 1; //Default test result set to FAILED - int progNum = atoi(argc[2]); - AUTH *authDes = NULL; - struct sockaddr server_addr; - - //Initialization - - authDes = authdes_seccreate(argc[1], 60, (char *)&server_addr,NULL);
testcases/network/rpc/rpc-tirpc/.gitignore +0
-11- - //If we are here, macro call was successful - test_status = ((AUTH *) authDes != NULL) ? 0 : 1; - - //This last printf gives the result status to the tests suite - //normally should be 0: test has passed or 1: test has failed - printf("%d\n", test_status); - - return test_status; -} --2.24.0
--
Mailing list info: https://lists.linux.it/listinfo/ltp
Signature · 5 lines
Regards, Li Wang -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.linux.it/pipermail/ltp/attachments/20191231/04547b3e/attachment-0001.htm>
RFC PATCH 1/1 rpc-tirpc: Remove authdes related tests
In reply to Petr VorelQuoted 8 lines · Petr Vorel
authdes is by default compiled out in libtirpc 1.2.5, thus
authdes_create()returns NULL (see libtirpc commit bf8f0b8 Add back the authdes interfaces) and IMHO there is no way to detect whether libtirpc was compiled without authdes support to skip the test.Interface to
authdes_seccreate()is missing when libtirpc is compiled without authdes, thus compilation fail:
Quoted 8 lines
/usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld:/tmp/ccFanCMm.o: in function `main':testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_seccreate/tirpc_authdes_seccreate.c:55: undefined reference to `authdes_seccreate'Signed-off-by Petr Vorel <[email protected]>---
Hi,or is it safe to expect that authdes is compiled out when
authdes_create()returning NULL?
This was the way the glibc people suggested I do it...
Quoted 6 lines
I also decided to remove tests because authdes is deprecated and uClibc and musl does not provide DES authentication.
FYI I've sent patch to libtirpc to add
authdes_seccreate()interface [1].[1] https://sourceforge.net/p/libtirpc/mailman/message/36889142/
This is fixed in tag libtirpc-1-2-6-rc1 which I just pushed upstream.
Is there anything else from my side that is needed?
steved.
Quoted 268 lines
runtest/net.tirpc_tests | 2 - testcases/network/rpc/rpc-tirpc/.gitignore | 2 - .../tirpc/tirpc_auth_authdes_create/Makefile | 23 ------- .../tirpc_auth_authdes_create/assertions.xml | 5 -- .../tirpc_authdes_create.c | 60 ----------------- .../tirpc_auth_authdes_seccreate/Makefile | 23 ------- .../assertions.xml | 5 -- .../tirpc_authdes_seccreate.c | 65 ------------------- 8 files changed, 185 deletions(-) delete mode 100644 testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_create/Makefile delete mode 100644 testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_create/assertions.xml delete mode 100644 testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_create/tirpc_authdes_create.c delete mode 100644 testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_seccreate/Makefile delete mode 100644 testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_seccreate/assertions.xml delete mode 100644 testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_seccreate/tirpc_authdes_seccreate.cruntest/net.tirpc_tests +0
-2@@ -4,8 +4,6 @@ tirpc_rpcb_getmaps rpc_test.sh -s tirpc_svc_3 -c tirpc_rpcb_getmaps tirpc_authnone_create rpc_test.sh -c tirpc_authnone_create tirpc_authsys_create rpc_test.sh -s tirpc_svc_1 -c tirpc_authsys_create tirpc_authsys_create_default rpc_test.sh -c tirpc_authsys_create_default -tirpc_authdes_create rpc_test.sh -s tirpc_svc_1 -c tirpc_authdes_create -tirpc_authdes_seccreate rpc_test.sh -s tirpc_svc_1 -c tirpc_authdes_seccreate tirpc_clnt_dg_create rpc_test.sh -s tirpc_svc_5 -c tirpc_clnt_dg_create tirpc_svc_dg_create rpc_test.sh -c tirpc_svc_dg_createtestcases/network/rpc/rpc-tirpc/.gitignore +0
-2@@ -140,7 +140,6 @@ /tests_pack/rpc_suite/tirpc/tirpc_expertlevel_rpcb_rmtcall/tirpc_rpcb_rmtcall_mt /tests_pack/rpc_suite/tirpc/tirpc_expertlevel_rpcb_rmtcall/tirpc_rpcb_rmtcall_performance /tests_pack/rpc_suite/tirpc/tirpc_expertlevel_rpcb_rmtcall/tirpc_rpcb_rmtcall -/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_seccreate/tirpc_authdes_seccreate /tests_pack/rpc_suite/tirpc/tirpc_expertlevel_rpcb_set/tirpc_rpcb_set /tests_pack/rpc_suite/tirpc/tirpc_err_svcerr_weakauth/tirpc_svcerr_weakauth /tests_pack/rpc_suite/tirpc/tirpc_err_svcerr_systemerr/tirpc_svcerr_systemerr@@ -176,7 +175,6 @@ /tests_pack/rpc_suite/tirpc/tirpc_interlevel_clnt_control/tirpc_clnt_control /tests_pack/rpc_suite/tirpc/tirpc_interlevel_clnt_control/tirpc_clnt_control_limits /tests_pack/rpc_suite/tirpc/tirpc_interlevel_clnt_tp_create/tirpc_clnt_tp_create -/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_create/tirpc_authdes_create /tests_pack/rpc_suite/tirpc/tirpc_interlevel_svc_tp_create/tirpc_svc_tp_create /tests_pack/rpc_suite/tirpc/tirpc_toplevel_clnt_create_timed/tirpc_clnt_create_timed /tests_pack/rpc_suite/tirpc/tirpc_toplevel_clnt_create_timed/tirpc_clnt_create_timed_limitstestcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_create/Makefile deleted +0
-23@@ -1,23 +0,0 @@ -# -# Copyright (C) 2014, Oracle and/or its affiliates. All Rights Reserved. -# -# 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 -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program 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, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -# - -top_srcdir ?= ../../../../../../../.. - -include $(top_srcdir)/include/mk/env_pre.mk -include $(abs_srcdir)/../../../Makefile.inc -include $(top_srcdir)/include/mk/generic_leaf_target.mktestcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_create/assertions.xml deleted +0
-5@@ -1,5 +0,0 @@ -<assertions> - <assertion id="1" tag="ef:XSH6TC2:3966:3967"> - Basic call of TIRPC authdes_create() function - </assertion> -</assertions>testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_create/tirpc_authdes_create.c deleted +0
-60@@ -1,60 +0,0 @@ -/* -* Copyright (c) Bull S.A. 2007 All Rights Reserved. -* -* This program is free software; you can redistribute it and/or modify it -* under the terms of version 2 of the GNU General Public License as -* published by the Free Software Foundation. -* -* This program is distributed in the hope that it would be useful, but -* WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -* -* Further, this software is distributed without any warranty that it is -* free of the rightful claim of any third person regarding infringement -* or the like. Any license provided herein, whether implied or -* otherwise, applies only to this software file. Patent licenses, if -* any, provided herein do not apply to combinations of this program with -* other software, or any other product whatsoever. -* -* You should have received a copy of the GNU General Public License along -* with this program; if not, write the Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -* -* History: -* Created by: Cyril Lacabanne ([email protected]) -* -*/ - -#include <stdio.h> -#include <stdlib.h> -#include <time.h> -#include <netdb.h> -#include "lapi/rpc.h" - -//Standard define -#define PROCNUM 1 -#define VERSNUM 1 - -int main (int argn,char *argc[]) -{ -//Program parameters : argc[1] : HostName or Host IP -// argc[2] : Server Program Number -// other arguments depend on test case - -int test_status =1 ;//Default test result set to FAILED -AUTH *authDes =NULL ; -struct sockaddr server_addr; - -//Initialization - - authDes =authdes_create (argc[1 ],60 , &server_addr,NULL ); - -//If we are here, macro call was successful - test_status = ((AUTH *) authDes !=NULL ) ?0 :1 ; - -//This last printf gives the result status to the tests suite -//normally should be 0: test has passed or 1: test has failed -printf ("%d\n" , test_status); - -return test_status; -}testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_seccreate/Makefile deleted +0
-23@@ -1,23 +0,0 @@ -# -# Copyright (C) 2014, Oracle and/or its affiliates. All Rights Reserved. -# -# 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 -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program 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, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -# - -top_srcdir ?= ../../../../../../../.. - -include $(top_srcdir)/include/mk/env_pre.mk -include $(abs_srcdir)/../../../Makefile.inc -include $(top_srcdir)/include/mk/generic_leaf_target.mktestcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_seccreate/assertions.xml deleted +0
-5@@ -1,5 +0,0 @@ -<assertions> - <assertion id="1" tag="ef:XSH6TC2:3966:3967"> - Basic call of TIRPC authdes_seccreate() function - </assertion> -</assertions>testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_seccreate/tirpc_authdes_seccreate.c deleted +0
-65@@ -1,65 +0,0 @@ -/* -* Copyright (c) Bull S.A. 2007 All Rights Reserved. -* -* This program is free software; you can redistribute it and/or modify it -* under the terms of version 2 of the GNU General Public License as -* published by the Free Software Foundation. -* -* This program is distributed in the hope that it would be useful, but -* WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -* -* Further, this software is distributed without any warranty that it is -* free of the rightful claim of any third person regarding infringement -* or the like. Any license provided herein, whether implied or -* otherwise, applies only to this software file. Patent licenses, if -* any, provided herein do not apply to combinations of this program with -* other software, or any other product whatsoever. -* -* You should have received a copy of the GNU General Public License along -* with this program; if not, write the Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -* -* History: -* Created by: Cyril Lacabanne ([email protected]) -* -*/ - -#include <stdio.h> -#include <stdlib.h> -#include <time.h> -#include <netdb.h> -#include "lapi/rpc.h" - -//Standard define -#define PROCNUM 1 -#define VERSNUM 1 - -int main (int argn,char *argc[]) -{ -//Program parameters : argc[1] : HostName or Host IP -// argc[2] : Server Program Number -// other arguments depend on test case - -//run_mode can switch into stand alone program or program launch by shell script -//1 : stand alone, debug mode, more screen information -//0 : launch by shell script as test case, only one printf -> result status -int run_mode =0 ; -int test_status =1 ;//Default test result set to FAILED -int progNum =atoi (argc[2 ]); -AUTH *authDes =NULL ; -struct sockaddr server_addr; - -//Initialization - - authDes =authdes_seccreate (argc[1 ],60 , (char *)&server_addr,NULL ); - -//If we are here, macro call was successful - test_status = ((AUTH *) authDes !=NULL ) ?0 :1 ; - -//This last printf gives the result status to the tests suite -//normally should be 0: test has passed or 1: test has failed -printf ("%d\n" , test_status); - -return test_status; -}
RFC PATCH 1/1 rpc-tirpc: Remove authdes related tests
Hi Steve,
...
Quoted 2 lines
Quoted 1 line
or is it safe to expect that authdes is compiled out when
authdes_create()returning NULL?This was the way the glibc people suggested I do it...
Thanks for info (deprecating features in library is new thing to me).
Quoted 6 lines
Quoted 5 lines
I also decided to remove tests because authdes is deprecated and uClibc and musl does not provide DES authentication.
FYI I've sent patch to libtirpc to add
authdes_seccreate()interface [1].
[1] https://sourceforge.net/p/libtirpc/mailman/message/36889142/This is fixed in tag libtirpc-1-2-6-rc1 which I just pushed upstream.
Thanks!
Quoted 1 line
Is there anything else from my side that is needed?
Hope distros will backport the fix soon.
Can you please either ack this patch or request we detect authdes support support (i.e. libtirpc < 1.2.5) and keep tests in this case?
(I'd be for removing these tests, but if you consider them useful for testing, I'll do the detection).
Kind regards,
Petr
RFC PATCH 1/1 rpc-tirpc: Remove authdes related tests
Quoted 12 lines · Petr Vorel
Hi Steve,
...
Quoted 2 lines
Quoted 1 line
or is it safe to expect that authdes is compiled out when
authdes_create()returning NULL?This was the way the glibc people suggested I do it...
Thanks for info (deprecating features in library is new thing to me).
Quoted 5 lines
Quoted 5 lines
I also decided to remove tests because authdes is deprecated and uClibc and musl does not provide DES authentication.
FYI I've sent patch to libtirpc to add
authdes_seccreate()interface [1].
[1] https://sourceforge.net/p/libtirpc/mailman/message/36889142/
Quoted 8 lines
Quoted 1 line
This is fixed in tag libtirpc-1-2-6-rc1 which I just pushed upstream.
Thanks!
Quoted 1 line
Is there anything else from my side that is needed?
Hope distros will backport the fix soon.
Can you please either ack this patch or request we detect authdes support support (i.e. libtirpc < 1.2.5) and keep tests in this case?
The ack is done! :-)
steved.
Quoted 6 lines
(I'd be for removing these tests, but if you consider them useful for testing, I'll do the detection).
Kind regards,
Petr
RFC PATCH 1/1 rpc-tirpc: Remove authdes related tests
Hi Steve,
Quoted 3 lines
Quoted 2 lines
Can you please either ack this patch or request we detect authdes support support (i.e. libtirpc < 1.2.5) and keep tests in this case?
The ack is done! :-)
Thanks a lot, merged!
Quoted 1 line
steved.
Kind regards,
Petr
RFC PATCH 1/1 rpc-tirpc: Remove authdes related tests
In reply to Petr Vorelsteved.
Quoted 290 lines · Petr Vorel
authdes is by default compiled out in libtirpc 1.2.5, thus
authdes_create()returns NULL (see libtirpc commit bf8f0b8 Add back the authdes interfaces) and IMHO there is no way to detect whether libtirpc was compiled without authdes support to skip the test.Interface to
authdes_seccreate()is missing when libtirpc is compiled without authdes, thus compilation fail:
/usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld:/tmp/ccFanCMm.o: in function `main':testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_seccreate/tirpc_authdes_seccreate.c:55: undefined reference to `authdes_seccreate'Signed-off-by Petr Vorel <[email protected]>---
Hi,or is it safe to expect that authdes is compiled out when
authdes_create()returning NULL? I also decided to remove tests because authdes is deprecated and uClibc
and musl does not provide DES authentication.FYI I've sent patch to libtirpc to add
authdes_seccreate()interface [1].[1] https://sourceforge.net/p/libtirpc/mailman/message/36889142/
runtest/net.tirpc_tests | 2 - testcases/network/rpc/rpc-tirpc/.gitignore | 2 - .../tirpc/tirpc_auth_authdes_create/Makefile | 23 ------- .../tirpc_auth_authdes_create/assertions.xml | 5 -- .../tirpc_authdes_create.c | 60 ----------------- .../tirpc_auth_authdes_seccreate/Makefile | 23 ------- .../assertions.xml | 5 -- .../tirpc_authdes_seccreate.c | 65 ------------------- 8 files changed, 185 deletions(-) delete mode 100644 testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_create/Makefile delete mode 100644 testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_create/assertions.xml delete mode 100644 testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_create/tirpc_authdes_create.c delete mode 100644 testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_seccreate/Makefile delete mode 100644 testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_seccreate/assertions.xml delete mode 100644 testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_seccreate/tirpc_authdes_seccreate.cruntest/net.tirpc_tests +0
-2@@ -4,8 +4,6 @@ tirpc_rpcb_getmaps rpc_test.sh -s tirpc_svc_3 -c tirpc_rpcb_getmaps tirpc_authnone_create rpc_test.sh -c tirpc_authnone_create tirpc_authsys_create rpc_test.sh -s tirpc_svc_1 -c tirpc_authsys_create tirpc_authsys_create_default rpc_test.sh -c tirpc_authsys_create_default -tirpc_authdes_create rpc_test.sh -s tirpc_svc_1 -c tirpc_authdes_create -tirpc_authdes_seccreate rpc_test.sh -s tirpc_svc_1 -c tirpc_authdes_seccreate tirpc_clnt_dg_create rpc_test.sh -s tirpc_svc_5 -c tirpc_clnt_dg_create tirpc_svc_dg_create rpc_test.sh -c tirpc_svc_dg_createtestcases/network/rpc/rpc-tirpc/.gitignore +0
-2@@ -140,7 +140,6 @@ /tests_pack/rpc_suite/tirpc/tirpc_expertlevel_rpcb_rmtcall/tirpc_rpcb_rmtcall_mt /tests_pack/rpc_suite/tirpc/tirpc_expertlevel_rpcb_rmtcall/tirpc_rpcb_rmtcall_performance /tests_pack/rpc_suite/tirpc/tirpc_expertlevel_rpcb_rmtcall/tirpc_rpcb_rmtcall -/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_seccreate/tirpc_authdes_seccreate /tests_pack/rpc_suite/tirpc/tirpc_expertlevel_rpcb_set/tirpc_rpcb_set /tests_pack/rpc_suite/tirpc/tirpc_err_svcerr_weakauth/tirpc_svcerr_weakauth /tests_pack/rpc_suite/tirpc/tirpc_err_svcerr_systemerr/tirpc_svcerr_systemerr@@ -176,7 +175,6 @@ /tests_pack/rpc_suite/tirpc/tirpc_interlevel_clnt_control/tirpc_clnt_control /tests_pack/rpc_suite/tirpc/tirpc_interlevel_clnt_control/tirpc_clnt_control_limits /tests_pack/rpc_suite/tirpc/tirpc_interlevel_clnt_tp_create/tirpc_clnt_tp_create -/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_create/tirpc_authdes_create /tests_pack/rpc_suite/tirpc/tirpc_interlevel_svc_tp_create/tirpc_svc_tp_create /tests_pack/rpc_suite/tirpc/tirpc_toplevel_clnt_create_timed/tirpc_clnt_create_timed /tests_pack/rpc_suite/tirpc/tirpc_toplevel_clnt_create_timed/tirpc_clnt_create_timed_limitstestcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_create/Makefile deleted +0
-23@@ -1,23 +0,0 @@ -# -# Copyright (C) 2014, Oracle and/or its affiliates. All Rights Reserved. -# -# 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 -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program 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, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -# - -top_srcdir ?= ../../../../../../../.. - -include $(top_srcdir)/include/mk/env_pre.mk -include $(abs_srcdir)/../../../Makefile.inc -include $(top_srcdir)/include/mk/generic_leaf_target.mktestcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_create/assertions.xml deleted +0
-5@@ -1,5 +0,0 @@ -<assertions> - <assertion id="1" tag="ef:XSH6TC2:3966:3967"> - Basic call of TIRPC authdes_create() function - </assertion> -</assertions>testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_create/tirpc_authdes_create.c deleted +0
-60@@ -1,60 +0,0 @@ -/* -* Copyright (c) Bull S.A. 2007 All Rights Reserved. -* -* This program is free software; you can redistribute it and/or modify it -* under the terms of version 2 of the GNU General Public License as -* published by the Free Software Foundation. -* -* This program is distributed in the hope that it would be useful, but -* WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -* -* Further, this software is distributed without any warranty that it is -* free of the rightful claim of any third person regarding infringement -* or the like. Any license provided herein, whether implied or -* otherwise, applies only to this software file. Patent licenses, if -* any, provided herein do not apply to combinations of this program with -* other software, or any other product whatsoever. -* -* You should have received a copy of the GNU General Public License along -* with this program; if not, write the Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -* -* History: -* Created by: Cyril Lacabanne ([email protected]) -* -*/ - -#include <stdio.h> -#include <stdlib.h> -#include <time.h> -#include <netdb.h> -#include "lapi/rpc.h" - -//Standard define -#define PROCNUM 1 -#define VERSNUM 1 - -int main (int argn,char *argc[]) -{ -//Program parameters : argc[1] : HostName or Host IP -// argc[2] : Server Program Number -// other arguments depend on test case - -int test_status =1 ;//Default test result set to FAILED -AUTH *authDes =NULL ; -struct sockaddr server_addr; - -//Initialization - - authDes =authdes_create (argc[1 ],60 , &server_addr,NULL ); - -//If we are here, macro call was successful - test_status = ((AUTH *) authDes !=NULL ) ?0 :1 ; - -//This last printf gives the result status to the tests suite -//normally should be 0: test has passed or 1: test has failed -printf ("%d\n" , test_status); - -return test_status; -}testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_seccreate/Makefile deleted +0
-23@@ -1,23 +0,0 @@ -# -# Copyright (C) 2014, Oracle and/or its affiliates. All Rights Reserved. -# -# 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 -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program 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, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -# - -top_srcdir ?= ../../../../../../../.. - -include $(top_srcdir)/include/mk/env_pre.mk -include $(abs_srcdir)/../../../Makefile.inc -include $(top_srcdir)/include/mk/generic_leaf_target.mktestcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_seccreate/assertions.xml deleted +0
-5@@ -1,5 +0,0 @@ -<assertions> - <assertion id="1" tag="ef:XSH6TC2:3966:3967"> - Basic call of TIRPC authdes_seccreate() function - </assertion> -</assertions>testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authdes_seccreate/tirpc_authdes_seccreate.c deleted +0
-65@@ -1,65 +0,0 @@ -/* -* Copyright (c) Bull S.A. 2007 All Rights Reserved. -* -* This program is free software; you can redistribute it and/or modify it -* under the terms of version 2 of the GNU General Public License as -* published by the Free Software Foundation. -* -* This program is distributed in the hope that it would be useful, but -* WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -* -* Further, this software is distributed without any warranty that it is -* free of the rightful claim of any third person regarding infringement -* or the like. Any license provided herein, whether implied or -* otherwise, applies only to this software file. Patent licenses, if -* any, provided herein do not apply to combinations of this program with -* other software, or any other product whatsoever. -* -* You should have received a copy of the GNU General Public License along -* with this program; if not, write the Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -* -* History: -* Created by: Cyril Lacabanne ([email protected]) -* -*/ - -#include <stdio.h> -#include <stdlib.h> -#include <time.h> -#include <netdb.h> -#include "lapi/rpc.h" - -//Standard define -#define PROCNUM 1 -#define VERSNUM 1 - -int main (int argn,char *argc[]) -{ -//Program parameters : argc[1] : HostName or Host IP -// argc[2] : Server Program Number -// other arguments depend on test case - -//run_mode can switch into stand alone program or program launch by shell script -//1 : stand alone, debug mode, more screen information -//0 : launch by shell script as test case, only one printf -> result status -int run_mode =0 ; -int test_status =1 ;//Default test result set to FAILED -int progNum =atoi (argc[2 ]); -AUTH *authDes =NULL ; -struct sockaddr server_addr; - -//Initialization - - authDes =authdes_seccreate (argc[1 ],60 , (char *)&server_addr,NULL ); - -//If we are here, macro call was successful - test_status = ((AUTH *) authDes !=NULL ) ?0 :1 ; - -//This last printf gives the result status to the tests suite -//normally should be 0: test has passed or 1: test has failed -printf ("%d\n" , test_status); - -return test_status; -}