Skip to contentSkip to conversation

ltp/pounder: do some cleanup work for pounder21 test suites

PATCH In review Li Wang 2 participants 2 messages Aug 20, 2015

lore
Share & tools
lore

Li Wang

author
#0 lore raw

PATCH 1/1 ltp/pounder: do some cleanup work for pounder21 test suites

ChangeLog:
- Cleanup ltp buildscript in pounder
- Remove two outdated patches from pounder21/src/

---
 tools/pounder21/build_scripts/ltp          |  41 ----------
 tools/pounder21/src/ltp-debian-build.patch | 120 -----------------------------
 tools/pounder21/src/ltp-setregid-fix.patch |  14 ----
 3 files changed, 175 deletions(-)
 delete mode 100644 tools/pounder21/src/ltp-debian-build.patch
 delete mode 100644 tools/pounder21/src/ltp-setregid-fix.patch
tools/pounder21/build_scripts/ltp +0 -41
index dfebe28..314719c 100755
@@ -25,47 +25,6 @@ source "$POUNDER_HOME/libpounder.sh"
 # Go up two levels to the top ltp dir.
 cd "$POUNDER_HOME/../../"
 
-# Apply a patch if this is Debian/Ubuntu.
-if [ -f /etc/debian_version ]; then
-	# Have we already patched this?
-	if [ ! -e "testcases/network/sctp/func_tests/test_1_to_1_connect.c.pounder" ]; then
-		cp -pRdu testcases/network/sctp/func_tests/test_1_to_1_connect.c testcases/network/sctp/func_tests/test_1_to_1_connect.c.pounder
-		echo "Debian/Ubuntu detected; applying build fixes..."
-		patch -p1 < $POUNDER_SRCDIR/ltp-debian-build.patch
-		RESULT=$?
-		if [ $RESULT -ne 0 ]; then
-			echo Patching failed.
-			exit 1
-		fi
-	fi
-else
-	# We need to _unpatch_ this.
-	if [ -e "testcases/network/sctp/func_tests/test_1_to_1_connect.c.pounder" ]; then
-		rm -rf testcases/network/sctp/func_tests/test_1_to_1_connect.c.pounder
-		echo "Previous Debian/Ubuntu detected; removing build fixes..."
-		patch -p1 -R < $POUNDER_SRCDIR/ltp-debian-build.patch
-		RESULT=$?
-		if [ $RESULT -ne 0 ]; then
-			echo Patching failed.
-			exit 1
-		fi
-	fi
-
-fi
-
-# NAK the setregid EPERM -> EINVAL patch, because it's
-# broken on 2.6!  May be fixed some time after 20050804 release.
-#if [ ! -e "testcases/kernel/syscalls/setregid/setregid02.c.pounder" ]; then
-#	echo "Patching some holes in ltp..."
-#	cp -pRdu testcases/kernel/syscalls/setregid/setregid02.c testcases/kernel/syscalls/setregid/setregid02.c.pounder
-#	patch -p1 < $POUNDER_SRCDIR/ltp-setregid-fix.patch
-#	RESULT=$?
-#	if [ $RESULT -ne 0 ]; then
-#		echo Patching failed.
-#		exit 1
-#	fi
-#fi
-
 # Build
 ./configure
 make -j$NR_CPUS
tools/pounder21/src/ltp-debian-build.patch deleted +0 -120

120 lines not on this page · raw message

tools/pounder21/src/ltp-setregid-fix.patch deleted +0 -14
deleted file mode 100644
index f26ee53..0000000
@@ -1,14 +0,0 @@
-diff -Naur ltp-full-20050804/testcases/kernel/syscalls/setregid/setregid02.c ltp-full-20050804-new/testcases/kernel/syscalls/setregid/setregid02.c
---- ltp-full-20050804/testcases/kernel/syscalls/setregid/setregid02.c	2005-08-04 13:33:06.000000000 -0700
-+++ ltp-full-20050804-new/testcases/kernel/syscalls/setregid/setregid02.c	2005-08-17 11:33:35.000000000 -0700
-@@ -106,8 +106,8 @@
- 	{ &bin_gr_gid, &neg_one, EPERM, &users, &users, "After setregid(bin, -1)," },
- 	{ &root_gr_gid, &bin_gr_gid, EPERM, &users, &users, "After setregid(root, bin)" },
- 	{ &bin_gr_gid, &root_gr_gid, EPERM, &users, &users, "After setregid(bin, root)," },
--	{ &inval_user, &neg_one, EINVAL, &users, &users, "After setregid(invalid group, -1)," },
--	{ &neg_one, &inval_user, EINVAL, &users, &users, "After setregid(-1, invalid group)," },
-+	{ &inval_user, &neg_one, EPERM, &users, &users, "After setregid(invalid group, -1)," },
-+	{ &neg_one, &inval_user, EPERM, &users, &users, "After setregid(-1, invalid group)," },
- };
-
- int TST_TOTAL = sizeof(test_data)/sizeof(test_data[0]);
Signature · 8 lines
1.8.3.1


------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
#1 lore raw

Hi!
Pushed, thanks.

Signature · 8 lines
Cyril Hrubis
[email protected]

------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list