forked from greenplum-db/gpdb-archive
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
s3ext: refactor regress codes (#909)
1. add expected output files 2. add schedule file 3. use pg_regress to check results automatically 4. refactor gpcheckcloud regress shell script Signed-off-by: Haozhou Wang <[email protected]>
- Loading branch information
Showing
37 changed files
with
742 additions
and
207 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,3 +53,10 @@ s3test | |
gpcheckcloud | ||
|
||
s3.conf | ||
|
||
sql | ||
expected | ||
results | ||
|
||
*.out | ||
*.diffs |
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,10 @@ | ||
top_builddir = $(shell cd ../../../.. && pwd) | ||
include $(top_builddir)/src/Makefile.global | ||
|
||
installcheck: | ||
$(top_builddir)/src/test/regress/pg_regress --psqldir=$$GPHOME/bin/ --schedule=s3_regress_schedule | ||
|
||
clean: | ||
rm -rf sql expected results regression.* optimizer_status.out | ||
|
||
.PHONY: installcheck clean |
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,44 @@ | ||
#!/bin/bash | ||
|
||
EXIT_CODE=0 | ||
GPCHECKCLOUD=./bin/gpcheckcloud/gpcheckcloud | ||
|
||
PREFIX[0]="http://s3-us-west-2.amazonaws.com/s3test.pivotal.io/dataset1/small17/data0014" | ||
PREFIX[1]="http://s3-us-west-2.amazonaws.com/s3test.pivotal.io/dataset1/small17/data0016" | ||
PREFIX[2]="https://s3-us-west-2.amazonaws.com/s3test.pivotal.io/dataset1/small17/data0014" | ||
PREFIX[3]="https://s3-us-west-2.amazonaws.com/s3test.pivotal.io/dataset1/small17/data0016" | ||
PREFIX[4]="https://s3-us-west-2.amazonaws.com/s3test.pivotal.io/gzipped/data0001.gz" | ||
PREFIX[5]="s3://s3-us-west-2.amazonaws.com/s3test.pivotal.io/threebytes/" | ||
PREFIX[6]="s3://s3-us-west-2.amazonaws.com/s3test.pivotal.io/dataset1/small17/" | ||
PREFIX[7]="s3://s3-us-east-1.amazonaws.com/useast1.s3test.pivotal.io/small17/" | ||
PREFIX[8]="s3://s3-us-west-2.amazonaws.com/s3test.pivotal.io/gzipped/" | ||
PREFIX[9]="s3://s3-us-west-2.amazonaws.com/s3test.pivotal.io/dataset1/gzipped_normal1/" | ||
|
||
HASHSUM[0]="68c4a63b721e7af0ae945ce109ca87ad" | ||
HASHSUM[1]="0fd502a303eb8f138f5916ec357721b1" | ||
HASHSUM[2]="68c4a63b721e7af0ae945ce109ca87ad" | ||
HASHSUM[3]="0fd502a303eb8f138f5916ec357721b1" | ||
HASHSUM[4]="b958fb80b98605a6095e6ebc4b9b4786" | ||
HASHSUM[5]="fe7d81814e02eb1296757e75bb3c6be9" | ||
HASHSUM[6]="138fc555074671912125ba692c678246" | ||
HASHSUM[7]="138fc555074671912125ba692c678246" | ||
HASHSUM[8]="7b2260e9a3a3f26e84aa28dc2124f68f" | ||
HASHSUM[9]="eacb7b210d3f7703ee06d16f520b103e" | ||
|
||
#HUGE FILES | ||
PREFIX[10]="https://s3-us-west-2.amazonaws.com/s3test.pivotal.io/dataset2/hugefile/airlinedata1.csv" | ||
PREFIX[11]="s3://s3-us-west-2.amazonaws.com/s3test.pivotal.io/dataset2/hugefile/" | ||
PREFIX[12]="s3://s3-us-west-2.amazonaws.com/s3test.pivotal.io/dataset2/gzipped_normal2/" | ||
|
||
HASHSUM[10]="f5811ad92c994f1d6913d5338575fe38" | ||
HASHSUM[11]="75baaa39f2b1544ed8af437c2cad86b7" | ||
HASHSUM[12]="a930794bc885bccf6eed45bd40367a7d" | ||
|
||
for ((i=0; i<${#PREFIX[@]}; i++)) | ||
do | ||
[ `$GPCHECKCLOUD -d "${PREFIX[$i]} config=/home/gpadmin/s3.conf" 2>/dev/null |md5sum |cut -d ' ' -f 1` = "${HASHSUM[$i]}" ] \ | ||
&& echo test ${PREFIX[$i]} ... ok \ | ||
|| { EXIT_CODE=1; echo test ${PREFIX[$i]} ... failed; } | ||
done | ||
|
||
exit $EXIT_CODE |
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
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
Oops, something went wrong.