aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2011-12-28 17:07:48 -0500
committerAnthony G. Basile <blueness@gentoo.org>2011-12-28 17:07:48 -0500
commitc9c6818b15d21aaeb96f96e9e91a819826fa1078 (patch)
tree2778cf31797c1e793f85ac83a0324e66456fdb90
parentscripts/revdep-pax: added an allyes option (diff)
downloadelfix-c9c6818b15d21aaeb96f96e9e91a819826fa1078.tar.gz
elfix-c9c6818b15d21aaeb96f96e9e91a819826fa1078.tar.bz2
elfix-c9c6818b15d21aaeb96f96e9e91a819826fa1078.zip
misc/test-revdep-pax/testrevdeppax.sh: cleanup output
-rw-r--r--misc/test-revdep-pax/README4
-rwxr-xr-xmisc/test-revdep-pax/testrevdeppax.sh12
2 files changed, 9 insertions, 7 deletions
diff --git a/misc/test-revdep-pax/README b/misc/test-revdep-pax/README
index 83af910..a94c171 100644
--- a/misc/test-revdep-pax/README
+++ b/misc/test-revdep-pax/README
@@ -31,5 +31,5 @@ THEN
The script tests all possible combinations of the RANDMMAP flag on both
the binary /usr/bin/testrevdeppax and library /usr/lib64/libmyrevdeppax.so.0.0.0
-It then tests both forward migrating the pax markings from the binary to the
-library and then reverse migrating them from the library to the binary.
+It then tests only reverse migrating the pax markings from the library to the
+binary. Forward migrating would be bad because it'll migrate the flags to glibc!
diff --git a/misc/test-revdep-pax/testrevdeppax.sh b/misc/test-revdep-pax/testrevdeppax.sh
index 75419e8..d841fae 100755
--- a/misc/test-revdep-pax/testrevdeppax.sh
+++ b/misc/test-revdep-pax/testrevdeppax.sh
@@ -15,17 +15,19 @@ echo "Testing reverse migration $LIBRARY -> $BINARY"
echo "(This will take a while)"
echo
-for i in 'R' 'r' 'Rr'
+for i in "R" "r" "Rr"
do
- for j in 'R' 'r' 'Rr'
+ for j in "R" "r" "Rr"
do
$PAXCTLNG -z $BINARY
$PAXCTLNG -$i $BINARY
$PAXCTLNG -z $LIBRARY
$PAXCTLNG -$j $LIBRARY
- echo "Binary -> $i"
- echo "Library -> $j"
- $REVDEPPAX -m -l $LIBRARY
+ p=$i; [[ "$p" == "Rr" ]] && p="-"
+ echo "Binary -> $p"
+ p=$j; [[ "$p" == "Rr" ]] && p="-"
+ echo "Library -> $p"
+ $REVDEPPAX -m -y -l $LIBRARY
echo
done
done