-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #110 from thbeu/fix-and-refactor-tests
Fix and refactor tests (follow-up)
- Loading branch information
Showing
81 changed files
with
1,660 additions
and
1,578 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
Shapefile Type: Point # of Shapes: 5 | ||
|
||
File Bounds: (-84.15596,34.54927,0,0) | ||
to (-83.521622,34.992767,0,0) | ||
|
||
Shape:0 (Point) nVertices=1, nParts=0 | ||
Bounds:(-83.5495,34.992401, 0) | ||
to (-83.5495,34.992401, 0) | ||
(-83.5495,34.992401, 0) | ||
|
||
Shape:1 (Point) nVertices=1, nParts=0 | ||
Bounds:(-83.521622,34.992767, 0) | ||
to (-83.521622,34.992767, 0) | ||
(-83.521622,34.992767, 0) | ||
|
||
Shape:2 (Point) nVertices=1, nParts=0 | ||
Bounds:(-84.016815,34.67276, 0) | ||
to (-84.016815,34.67276, 0) | ||
(-84.016815,34.67276, 0) | ||
|
||
Shape:3 (Point) nVertices=1, nParts=0 | ||
Bounds:(-84.15596,34.648624, 0) | ||
to (-84.15596,34.648624, 0) | ||
(-84.15596,34.648624, 0) | ||
|
||
Shape:4 (Point) nVertices=1, nParts=0 | ||
Bounds:(-83.619515,34.54927, 0) | ||
to (-83.619515,34.54927, 0) | ||
(-83.619515,34.54927, 0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,30 @@ | ||
#!/bin/bash | ||
|
||
testdir="$(dirname "$(readlink -f $0)")" | ||
readonly SCRIPTDIR=$(dirname "${BASH_SOURCE[0]}") | ||
|
||
rm -f "$testdir/test*" | ||
$top_builddir/shpcreate "$testdir/test" point | ||
"${SHPCREATE:-$top_builddir/shpcreate}" "test" point | ||
|
||
$top_builddir/shpadd "$testdir/test" -83.54949956 34.992401 | ||
$top_builddir/shpadd "$testdir/test" -83.52162155 34.99276748 | ||
$top_builddir/shpadd "$testdir/test" -84.01681518 34.67275985 | ||
$top_builddir/shpadd "$testdir/test" -84.15596023 34.64862437 | ||
$top_builddir/shpadd "$testdir/test" -83.61951463 34.54927047 | ||
"${SHPADD:-$top_builddir/shpadd}" "test" -83.54949956 34.992401 | ||
"${SHPADD:-$top_builddir/shpadd}" "test" -83.52162155 34.99276748 | ||
"${SHPADD:-$top_builddir/shpadd}" "test" -84.01681518 34.67275985 | ||
"${SHPADD:-$top_builddir/shpadd}" "test" -84.15596023 34.64862437 | ||
"${SHPADD:-$top_builddir/shpadd}" "test" -83.61951463 34.54927047 | ||
|
||
$top_builddir/dbfcreate "$testdir/test" -s fd 30 | ||
$top_builddir/dbfadd "$testdir/test" "1" | ||
$top_builddir/dbfadd "$testdir/test" "2" | ||
$top_builddir/dbfadd "$testdir/test" "3" | ||
$top_builddir/dbfadd "$testdir/test" "4" | ||
$top_builddir/dbfadd "$testdir/test" "5" | ||
"${DBFCREATE:-$top_builddir/dbfcreate}" "test" -s fd 30 | ||
"${DBFADD:-$top_builddir/dbfadd}" "test" "1" | ||
"${DBFADD:-$top_builddir/dbfadd}" "test" "2" | ||
"${DBFADD:-$top_builddir/dbfadd}" "test" "3" | ||
"${DBFADD:-$top_builddir/dbfadd}" "test" "4" | ||
"${DBFADD:-$top_builddir/dbfadd}" "test" "5" | ||
|
||
$top_builddir/shpdump -precision 8 "$testdir/test" > "$testdir/test.out" | ||
"${SHPDUMP:-$top_builddir/shpdump}" -precision 8 "test" > "test.out" | ||
|
||
result="$(diff "$testdir/test.out")" | ||
if [ "$result" == "" ]; then | ||
|
||
if result=$(diff "$SCRIPTDIR/expect.out" "test.out"); then | ||
echo "******* Test Succeeded *********" | ||
rm -f "$testdir/test*" | ||
exit 0 | ||
else | ||
echo "******* Test Failed *********" | ||
echo "$result" | ||
rm -f "$testdir/test*" | ||
exit 1 | ||
fi |
Oops, something went wrong.