Blame SOURCES/downstream-Fix-dejagnu-unit-tests-directory-name-for-RPC-lib.patch

8d1257
From 10b32480395a01798b21818e884a593930b400d1 Mon Sep 17 00:00:00 2001
8d1257
From: Julien Rische <jrische@redhat.com>
8d1257
Date: Wed, 27 Apr 2022 15:29:08 +0200
8d1257
Subject: [PATCH] Fix dejagnu unit tests directory name for RPC lib
8d1257
8d1257
This commit renames RPC library's unit tests directory to match the
8d1257
newly enforced naming convention of dejagnu.
8d1257
8d1257
Resolves: rhbz#2070879
8d1257
8d1257
Signed-off-by: Julien Rische <jrische@redhat.com>
8d1257
---
8d1257
 src/configure.ac                                       |  2 +-
8d1257
 src/lib/rpc/Makefile.in                                |  2 +-
8d1257
 src/lib/rpc/{unit-test => testsuite}/Makefile.in       | 10 +++++-----
8d1257
 src/lib/rpc/{unit-test => testsuite}/client.c          |  0
8d1257
 src/lib/rpc/{unit-test => testsuite}/config/unix.exp   |  0
8d1257
 src/lib/rpc/{unit-test => testsuite}/deps              |  0
8d1257
 src/lib/rpc/{unit-test => testsuite}/lib/helpers.exp   |  0
8d1257
 .../rpc/{unit-test => testsuite}/rpc_test.0/expire.exp |  0
8d1257
 .../{unit-test => testsuite}/rpc_test.0/fullrun.exp    |  0
8d1257
 .../rpc/{unit-test => testsuite}/rpc_test.0/gsserr.exp |  0
8d1257
 src/lib/rpc/{unit-test => testsuite}/rpc_test.h        |  0
8d1257
 src/lib/rpc/{unit-test => testsuite}/rpc_test.x        |  0
8d1257
 src/lib/rpc/{unit-test => testsuite}/rpc_test_clnt.c   |  0
8d1257
 src/lib/rpc/{unit-test => testsuite}/rpc_test_svc.c    |  0
8d1257
 src/lib/rpc/{unit-test => testsuite}/server.c          |  0
8d1257
 15 files changed, 7 insertions(+), 7 deletions(-)
8d1257
 rename src/lib/rpc/{unit-test => testsuite}/Makefile.in (93%)
8d1257
 rename src/lib/rpc/{unit-test => testsuite}/client.c (100%)
8d1257
 rename src/lib/rpc/{unit-test => testsuite}/config/unix.exp (100%)
8d1257
 rename src/lib/rpc/{unit-test => testsuite}/deps (100%)
8d1257
 rename src/lib/rpc/{unit-test => testsuite}/lib/helpers.exp (100%)
8d1257
 rename src/lib/rpc/{unit-test => testsuite}/rpc_test.0/expire.exp (100%)
8d1257
 rename src/lib/rpc/{unit-test => testsuite}/rpc_test.0/fullrun.exp (100%)
8d1257
 rename src/lib/rpc/{unit-test => testsuite}/rpc_test.0/gsserr.exp (100%)
8d1257
 rename src/lib/rpc/{unit-test => testsuite}/rpc_test.h (100%)
8d1257
 rename src/lib/rpc/{unit-test => testsuite}/rpc_test.x (100%)
8d1257
 rename src/lib/rpc/{unit-test => testsuite}/rpc_test_clnt.c (100%)
8d1257
 rename src/lib/rpc/{unit-test => testsuite}/rpc_test_svc.c (100%)
8d1257
 rename src/lib/rpc/{unit-test => testsuite}/server.c (100%)
8d1257
8d1257
diff --git a/src/configure.ac b/src/configure.ac
8d1257
index 37e36b76d..2a48aa83d 100644
8d1257
--- a/src/configure.ac
8d1257
+++ b/src/configure.ac
8d1257
@@ -1497,7 +1497,7 @@ V5_AC_OUTPUT_MAKEFILE(.
8d1257
 	lib/gssapi lib/gssapi/generic lib/gssapi/krb5 lib/gssapi/spnego
8d1257
 	lib/gssapi/mechglue
8d1257
 
8d1257
-	lib/rpc lib/rpc/unit-test
8d1257
+	lib/rpc lib/rpc/testsuite
8d1257
 
8d1257
 	lib/kadm5 lib/kadm5/clnt lib/kadm5/srv lib/kadm5/testsuite
8d1257
 	lib/krad
8d1257
diff --git a/src/lib/rpc/Makefile.in b/src/lib/rpc/Makefile.in
8d1257
index 6b5f1e70a..78c7a1326 100644
8d1257
--- a/src/lib/rpc/Makefile.in
8d1257
+++ b/src/lib/rpc/Makefile.in
8d1257
@@ -2,7 +2,7 @@ mydir=lib$(S)rpc
8d1257
 BUILDTOP=$(REL)..$(S)..
8d1257
 DEFINES = -DGSSAPI_KRB5 -DDEBUG_GSSAPI=0 -DGSSRPC__IMPL
8d1257
 
8d1257
-SUBDIRS=unit-test
8d1257
+SUBDIRS=testsuite
8d1257
 
8d1257
 ##DOSBUILDTOP = ..\..
8d1257
 ##DOSLIBNAME=libgssrpc.lib
8d1257
diff --git a/src/lib/rpc/unit-test/Makefile.in b/src/lib/rpc/testsuite/Makefile.in
8d1257
similarity index 93%
8d1257
rename from src/lib/rpc/unit-test/Makefile.in
8d1257
rename to src/lib/rpc/testsuite/Makefile.in
8d1257
index 0b6e5203d..0fab26c10 100644
8d1257
--- a/src/lib/rpc/unit-test/Makefile.in
8d1257
+++ b/src/lib/rpc/testsuite/Makefile.in
8d1257
@@ -1,4 +1,4 @@
8d1257
-mydir=lib$(S)rpc$(S)unit-test
8d1257
+mydir=lib$(S)rpc$(S)testsuite
8d1257
 BUILDTOP=$(REL)..$(S)..$(S)..
8d1257
 
8d1257
 OBJS= client.o rpc_test_clnt.o rpc_test_svc.o server.o
8d1257
@@ -34,19 +34,19 @@ runenv.exp: Makefile
8d1257
 # 	rm -f rpc_test.h rpc_test_clnt.c rpc_test_svc.c
8d1257
 # 
8d1257
 
8d1257
-check unit-test: unit-test-@DO_TEST@
8d1257
+check testsuite: testsuite-@DO_TEST@
8d1257
 
8d1257
-unit-test-:
8d1257
+testsuite-:
8d1257
 	@echo "+++"
8d1257
 	@echo "+++ WARNING: lib/rpc unit tests not run."
8d1257
 	@echo "+++ Either tcl, runtest, or Perl is unavailable."
8d1257
 	@echo "+++"
8d1257
 	@echo 'Skipped rpc tests: runtest or Perl not found' >> $(SKIPTESTS)
8d1257
 
8d1257
-unit-test-ok: unit-test-body
8d1257
+testsuite-ok: testsuite-body
8d1257
 
8d1257
 PASS=@PASS@
8d1257
-unit-test-body: runenv.sh runenv.exp
8d1257
+testsuite-body: runenv.sh runenv.exp
8d1257
 	$(RM) krb5cc_rpc_test_*
8d1257
 	$(ENV_SETUP) $(VALGRIND) $(START_SERVERS)
8d1257
 	RPC_TEST_KEYTAB=/tmp/rpc_test_keytab.$$$$ ; export RPC_TEST_KEYTAB ; \
8d1257
diff --git a/src/lib/rpc/unit-test/client.c b/src/lib/rpc/testsuite/client.c
8d1257
similarity index 100%
8d1257
rename from src/lib/rpc/unit-test/client.c
8d1257
rename to src/lib/rpc/testsuite/client.c
8d1257
diff --git a/src/lib/rpc/unit-test/config/unix.exp b/src/lib/rpc/testsuite/config/unix.exp
8d1257
similarity index 100%
8d1257
rename from src/lib/rpc/unit-test/config/unix.exp
8d1257
rename to src/lib/rpc/testsuite/config/unix.exp
8d1257
diff --git a/src/lib/rpc/unit-test/deps b/src/lib/rpc/testsuite/deps
8d1257
similarity index 100%
8d1257
rename from src/lib/rpc/unit-test/deps
8d1257
rename to src/lib/rpc/testsuite/deps
8d1257
diff --git a/src/lib/rpc/unit-test/lib/helpers.exp b/src/lib/rpc/testsuite/lib/helpers.exp
8d1257
similarity index 100%
8d1257
rename from src/lib/rpc/unit-test/lib/helpers.exp
8d1257
rename to src/lib/rpc/testsuite/lib/helpers.exp
8d1257
diff --git a/src/lib/rpc/unit-test/rpc_test.0/expire.exp b/src/lib/rpc/testsuite/rpc_test.0/expire.exp
8d1257
similarity index 100%
8d1257
rename from src/lib/rpc/unit-test/rpc_test.0/expire.exp
8d1257
rename to src/lib/rpc/testsuite/rpc_test.0/expire.exp
8d1257
diff --git a/src/lib/rpc/unit-test/rpc_test.0/fullrun.exp b/src/lib/rpc/testsuite/rpc_test.0/fullrun.exp
8d1257
similarity index 100%
8d1257
rename from src/lib/rpc/unit-test/rpc_test.0/fullrun.exp
8d1257
rename to src/lib/rpc/testsuite/rpc_test.0/fullrun.exp
8d1257
diff --git a/src/lib/rpc/unit-test/rpc_test.0/gsserr.exp b/src/lib/rpc/testsuite/rpc_test.0/gsserr.exp
8d1257
similarity index 100%
8d1257
rename from src/lib/rpc/unit-test/rpc_test.0/gsserr.exp
8d1257
rename to src/lib/rpc/testsuite/rpc_test.0/gsserr.exp
8d1257
diff --git a/src/lib/rpc/unit-test/rpc_test.h b/src/lib/rpc/testsuite/rpc_test.h
8d1257
similarity index 100%
8d1257
rename from src/lib/rpc/unit-test/rpc_test.h
8d1257
rename to src/lib/rpc/testsuite/rpc_test.h
8d1257
diff --git a/src/lib/rpc/unit-test/rpc_test.x b/src/lib/rpc/testsuite/rpc_test.x
8d1257
similarity index 100%
8d1257
rename from src/lib/rpc/unit-test/rpc_test.x
8d1257
rename to src/lib/rpc/testsuite/rpc_test.x
8d1257
diff --git a/src/lib/rpc/unit-test/rpc_test_clnt.c b/src/lib/rpc/testsuite/rpc_test_clnt.c
8d1257
similarity index 100%
8d1257
rename from src/lib/rpc/unit-test/rpc_test_clnt.c
8d1257
rename to src/lib/rpc/testsuite/rpc_test_clnt.c
8d1257
diff --git a/src/lib/rpc/unit-test/rpc_test_svc.c b/src/lib/rpc/testsuite/rpc_test_svc.c
8d1257
similarity index 100%
8d1257
rename from src/lib/rpc/unit-test/rpc_test_svc.c
8d1257
rename to src/lib/rpc/testsuite/rpc_test_svc.c
8d1257
diff --git a/src/lib/rpc/unit-test/server.c b/src/lib/rpc/testsuite/server.c
8d1257
similarity index 100%
8d1257
rename from src/lib/rpc/unit-test/server.c
8d1257
rename to src/lib/rpc/testsuite/server.c
8d1257
-- 
8d1257
2.35.1
8d1257