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