Blame SOURCES/cscope-selftest-repoint.patch

579198
diff -up ./tests/check0.sh.repoint ./tests/check0.sh
579198
--- ./tests/check0.sh.repoint	2019-03-12 13:15:47.331320989 -0400
579198
+++ ./tests/check0.sh	2019-03-12 13:20:52.238304290 -0400
579198
@@ -5,6 +5,11 @@ SINDEX=0
579198
 STERM=main
579198
 STYPE="find C symbol"
579198
 
579198
+if [ -z "$CSCOPE_BINARY" ]
579198
+then
579198
+	CSCOPE_BINARY=./src/cscope
579198
+fi
579198
+
579198
 echo "Searching item $SINDEX, '$STYPE'"
579198
 
579198
 #Get to the top level directory
579198
@@ -15,7 +20,7 @@ rm -f cscope.out
579198
 
579198
 #Count the number of instances of the string 'Copyright'
579198
 #We expect 178 currently
579198
-COUNT=$(./src/cscope -R -L -$SINDEX$STERM | wc -l)
579198
+COUNT=$($CSCOPE_BINARY -R -L -$SINDEX$STERM | wc -l)
579198
 
579198
 if [ $COUNT -ne $EXPECT ]
579198
 then
579198
diff -up ./tests/check1.sh.repoint ./tests/check1.sh
579198
--- ./tests/check1.sh.repoint	2019-03-12 13:15:47.333320983 -0400
579198
+++ ./tests/check1.sh	2019-03-12 13:20:52.241304280 -0400
579198
@@ -5,6 +5,11 @@ SINDEX=1
579198
 STERM=main
579198
 STYPE="symbol definition"
579198
 
579198
+if [ -z "$CSCOPE_BINARY" ]
579198
+then
579198
+        CSCOPE_BINARY=./src/cscope
579198
+fi
579198
+
579198
 echo "Searching item $SINDEX, '$STYPE'"
579198
 
579198
 #Get to the top level directory
579198
@@ -15,7 +20,7 @@ rm -f cscope.out
579198
 
579198
 #Count the number of instances of the string 'Copyright'
579198
 #We expect 178 currently
579198
-COUNT=$(./src/cscope -R -L -$SINDEX$STERM | wc -l)
579198
+COUNT=$($CSCOPE_BINARY -R -L -$SINDEX$STERM | wc -l)
579198
 
579198
 if [ $COUNT -ne $EXPECT ]
579198
 then
579198
diff -up ./tests/check2.sh.repoint ./tests/check2.sh
579198
--- ./tests/check2.sh.repoint	2019-03-12 13:15:47.334320979 -0400
579198
+++ ./tests/check2.sh	2019-03-12 13:20:52.245304266 -0400
579198
@@ -5,6 +5,11 @@ SINDEX=2
579198
 STERM=build
579198
 STYPE="functions called by"
579198
 
579198
+if [ -z "$CSCOPE_BINARY" ]
579198
+then
579198
+        CSCOPE_BINARY=./src/cscope
579198
+fi
579198
+
579198
 echo "Searching item $SINDEX, '$STYPE'"
579198
 
579198
 #Get to the top level directory
579198
@@ -13,7 +18,7 @@ cd ..
579198
 #Remove any previous databases from testing
579198
 rm -f cscope.out
579198
 
579198
-COUNT=$(./src/cscope -R -L -$SINDEX$STERM | wc -l)
579198
+COUNT=$($CSCOPE_BINARY -R -L -$SINDEX$STERM | wc -l)
579198
 
579198
 if [ $COUNT -ne $EXPECT ]
579198
 then
579198
diff -up ./tests/check3.sh.repoint ./tests/check3.sh
579198
--- ./tests/check3.sh.repoint	2019-03-12 13:15:47.335320976 -0400
579198
+++ ./tests/check3.sh	2019-03-12 13:20:52.248304256 -0400
579198
@@ -5,6 +5,11 @@ SINDEX=3
579198
 STERM=printf
579198
 STYPE="functions calling"
579198
 
579198
+if [ -z "$CSCOPE_BINARY" ]
579198
+then
579198
+        CSCOPE_BINARY=./src/cscope
579198
+fi
579198
+
579198
 echo "Searching item $SINDEX, '$STYPE'"
579198
 
579198
 #Get to the top level directory
579198
@@ -14,7 +19,7 @@ cd ..
579198
 rm -f cscope.out
579198
 
579198
 #We expect 178 currently
579198
-COUNT=$(./src/cscope -R -L -$SINDEX$STERM | wc -l)
579198
+COUNT=$($CSCOPE_BINARY -R -L -$SINDEX$STERM | wc -l)
579198
 
579198
 if [ $COUNT -ne $EXPECT ]
579198
 then
579198
diff -up ./tests/check4.sh.repoint ./tests/check4.sh
579198
--- ./tests/check4.sh.repoint	2019-03-12 13:15:47.336320973 -0400
579198
+++ ./tests/check4.sh	2019-03-12 13:20:52.252304243 -0400
579198
@@ -4,6 +4,11 @@ SINDEX=4
579198
 STERM=oldsigquit
579198
 STYPE="regular text string"
579198
 
579198
+if [ -z "$CSCOPE_BINARY" ]
579198
+then
579198
+        CSCOPE_BINARY=./src/cscope
579198
+fi
579198
+
579198
 echo "Searching item $SINDEX, '$STYPE'"
579198
 
579198
 #Get to the top level directory
579198
@@ -12,7 +17,7 @@ cd ..
579198
 #Remove any previous databases from testing
579198
 rm -f cscope.out
579198
 
579198
-COUNT=$(./src/cscope -R -L -$SINDEX$STERM | wc -l)
579198
+COUNT=$($CSCOPE_BINARY -R -L -$SINDEX$STERM | wc -l)
579198
 
579198
 if [ $COUNT -ne $EXPECT ]
579198
 then
579198
diff -up ./tests/check6.sh.repoint ./tests/check6.sh
579198
--- ./tests/check6.sh.repoint	2019-03-12 13:15:47.338320966 -0400
579198
+++ ./tests/check6.sh	2019-03-12 13:20:52.259304220 -0400
579198
@@ -5,6 +5,11 @@ SINDEX=6
579198
 STERM=msg.*what
579198
 STYPE="egrep string"
579198
 
579198
+if [ -z "$CSCOPE_BINARY" ]
579198
+then
579198
+        CSCOPE_BINARY=./src/cscope
579198
+fi
579198
+
579198
 echo "Searching item $SINDEX, '$STYPE'"
579198
 
579198
 #Get to the top level directory
579198
@@ -15,7 +20,7 @@ rm -f cscope.out
579198
 
579198
 #Count the number of instances of the string 'Copyright'
579198
 #We expect 178 currently
579198
-COUNT=$(./src/cscope -R -L -$SINDEX$STERM | wc -l)
579198
+COUNT=$($CSCOPE_BINARY -R -L -$SINDEX$STERM | wc -l)
579198
 
579198
 if [ $COUNT -ne $EXPECT ]
579198
 then
579198
diff -up ./tests/check7.sh.repoint ./tests/check7.sh
579198
--- ./tests/check7.sh.repoint	2019-03-12 13:15:47.339320963 -0400
579198
+++ ./tests/check7.sh	2019-03-12 13:20:52.263304206 -0400
579198
@@ -5,6 +5,11 @@ SINDEX=7
579198
 STERM=main.c
579198
 STYPE="file named"
579198
 
579198
+if [ -z "$CSCOPE_BINARY" ]
579198
+then
579198
+        CSCOPE_BINARY=./src/cscope
579198
+fi
579198
+
579198
 echo "Searching item $SINDEX, '$STYPE'"
579198
 
579198
 #Get to the top level directory
579198
@@ -15,7 +20,7 @@ rm -f cscope.out
579198
 
579198
 #Count the number of instances of the string 'Copyright'
579198
 #We expect 178 currently
579198
-COUNT=$(./src/cscope -R -L -$SINDEX$STERM | wc -l)
579198
+COUNT=$($CSCOPE_BINARY -R -L -$SINDEX$STERM | wc -l)
579198
 
579198
 if [ $COUNT -ne $EXPECT ]
579198
 then
579198
diff -up ./tests/check8.sh.repoint ./tests/check8.sh
579198
--- ./tests/check8.sh.repoint	2019-03-12 13:15:47.340320959 -0400
579198
+++ ./tests/check8.sh	2019-03-12 13:20:52.267304193 -0400
579198
@@ -5,6 +5,11 @@ SINDEX=8
579198
 STERM=unistd.h
579198
 STYPE="files including this file"
579198
 
579198
+if [ -z "$CSCOPE_BINARY" ]
579198
+then
579198
+        CSCOPE_BINARY=./src/cscope
579198
+fi
579198
+
579198
 echo "Searching item $SINDEX, '$STYPE'"
579198
 
579198
 #Get to the top level directory
579198
@@ -15,7 +20,7 @@ rm -f cscope.out
579198
 
579198
 #Count the number of instances of the string 'Copyright'
579198
 #We expect 178 currently
579198
-COUNT=$(./src/cscope -R -L -$SINDEX$STERM | wc -l)
579198
+COUNT=$($CSCOPE_BINARY -R -L -$SINDEX$STERM | wc -l)
579198
 
579198
 if [ $COUNT -ne $EXPECT ]
579198
 then
579198
diff -up ./tests/check9.sh.repoint ./tests/check9.sh
579198
--- ./tests/check9.sh.repoint	2019-03-12 13:15:47.341320956 -0400
579198
+++ ./tests/check9.sh	2019-03-12 13:20:52.270304183 -0400
579198
@@ -5,6 +5,11 @@ SINDEX=9
579198
 STERM=reftime
579198
 STYPE="assignments to symbol"
579198
 
579198
+if [ -z "$CSCOPE_BINARY" ]
579198
+then
579198
+        CSCOPE_BINARY=./src/cscope
579198
+fi
579198
+
579198
 echo "Searching item $SINDEX, '$STYPE'"
579198
 
579198
 #Get to the top level directory
579198
@@ -15,7 +20,7 @@ rm -f cscope.out
579198
 
579198
 #Count the number of instances of the string 'Copyright'
579198
 #We expect 178 currently
579198
-COUNT=$(./src/cscope -R -L -$SINDEX$STERM | wc -l)
579198
+COUNT=$($CSCOPE_BINARY -R -L -$SINDEX$STERM | wc -l)
579198
 
579198
 if [ $COUNT -ne $EXPECT ]
579198
 then