Skip to content

Commit

Permalink
WIP Regression tests that work with 9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
gciolli committed Oct 23, 2012
1 parent 045fc35 commit c8160bf
Show file tree
Hide file tree
Showing 10 changed files with 5 additions and 29 deletions.
6 changes: 5 additions & 1 deletion scripts/regress.sh
Expand Up @@ -9,7 +9,11 @@ f () {
Expected=test/sql/expected/${Stem}.txt
Actual=test/sql/tmp/${Stem}.txt
mkdir -p test/sql/tmp
psql -vVERBOSITY=terse -f $Input 2>$Actual >/dev/null
psql -vVERBOSITY=terse 2>$Actual >/dev/null <<EOF
\i $Input
\i test/sql/regress/_reset-games.sql
\i test/sql/regress/_.sql
EOF
if diff $Expected $Actual > $TmpFile ; then
echo "$(date +%s.%N) [OK] $Stem"
else
Expand Down
4 changes: 0 additions & 4 deletions test/sql/regress/castling-K.sql
@@ -1,7 +1,3 @@
\set my_game '8/8/8/8/8/4k3/7P/4K2R w K - 0 2'
--\set my_game '4k3/8/8/8/8/6P1/4PPBP/4K2R w KQkq - 0 2'
\set pg2podg_iterations 1
\set pg2podg_depth_target 1

\ir _reset-games.sql
\ir _.sql
3 changes: 0 additions & 3 deletions test/sql/regress/full-game-10.sql
@@ -1,6 +1,3 @@
\set my_game 'rnbqkbnr/ppp1pppp/8/3p4/4P3/8/PPPP1PPP/RNBQKBNR w QKqk - 0 1'
\set pg2podg_iterations 10
\set pg2podg_depth_target 1

\ir _reset-games.sql
\ir _.sql
3 changes: 0 additions & 3 deletions test/sql/regress/full-game-3d2.sql
@@ -1,6 +1,3 @@
\set my_game 'rnbqkbnr/ppp1pppp/8/3p4/4P3/8/PPPP1PPP/RNBQKBNR w QKqk - 0 1'
\set pg2podg_iterations 3
\set pg2podg_depth_target 2

\ir _reset-games.sql
\ir _.sql
3 changes: 0 additions & 3 deletions test/sql/regress/score-bishop.sql
@@ -1,6 +1,3 @@
\set my_game 'k7/8/8/2p5/8/4B3/8/7K w - - 0 2'
\set pg2podg_iterations 1
\set pg2podg_depth_target 1

\ir _reset-games.sql
\ir _.sql
3 changes: 0 additions & 3 deletions test/sql/regress/score-knight.sql
@@ -1,6 +1,3 @@
\set my_game 'k7/8/8/3p4/5N2/8/8/7K w - - 0 2'
\set pg2podg_iterations 1
\set pg2podg_depth_target 1

\ir _reset-games.sql
\ir _.sql
3 changes: 0 additions & 3 deletions test/sql/regress/score-mate.sql
@@ -1,6 +1,3 @@
\set my_game '1k6/8/1K6/8/8/8/8/7R w - - 0 2'
\set pg2podg_iterations 1
\set pg2podg_depth_target 1

\ir _reset-games.sql
\ir _.sql
3 changes: 0 additions & 3 deletions test/sql/regress/score-pawn.sql
@@ -1,6 +1,3 @@
\set my_game 'k7/8/8/3p4/4P3/8/8/7K w - - 0 2'
\set pg2podg_iterations 1
\set pg2podg_depth_target 1

\ir _reset-games.sql
\ir _.sql
3 changes: 0 additions & 3 deletions test/sql/regress/score-queen.sql
@@ -1,6 +1,3 @@
\set my_game 'k7/8/8/2p5/8/8/2Q5/7K w - - 0 2'
\set pg2podg_iterations 1
\set pg2podg_depth_target 1

\ir _reset-games.sql
\ir _.sql
3 changes: 0 additions & 3 deletions test/sql/regress/score-rook.sql
@@ -1,6 +1,3 @@
\set my_game 'k7/8/8/3p4/8/3R4/8/7K w - - 0 2'
\set pg2podg_iterations 1
\set pg2podg_depth_target 1

\ir _reset-games.sql
\ir _.sql

0 comments on commit c8160bf

Please sign in to comment.