Skip to content

Commit

Permalink
Merge pull request #12 from jgarzik/tests
Browse files Browse the repository at this point in the history
Move test SQL files to subdir
  • Loading branch information
jgarzik authored Feb 28, 2024
2 parents 201481d + 166846f commit befc86b
Show file tree
Hide file tree
Showing 28 changed files with 27 additions and 27 deletions.
48 changes: 24 additions & 24 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -13,30 +13,30 @@ pkgconfig_DATA = libsqlpars.pc
EXTRA_DIST = sql.y sql.l \
pscan.js \
test-ok.sh test-tst.sh test-fail.sh \
fail1.sql \
fail3.sql \
fail4.sql \
fail5.sql \
xfail2.sql \
ok1.sql \
ok2.sql \
ok3.sql \
ok4.sql \
ok5.sql \
ok6.sql \
ok7.sql \
ok8.sql \
ok9.sql \
ok10.sql \
tst-create-db.sql \
tst-create-table.sql \
tst-delete.sql \
tst-drop-db.sql \
tst-drop-table.sql \
tst-insert.sql \
tst-select-null.sql \
tst-select-null2.sql \
tst-select-null3.sql
tests/fail1.sql \
tests/fail3.sql \
tests/fail4.sql \
tests/fail5.sql \
tests/xfail2.sql \
tests/ok1.sql \
tests/ok2.sql \
tests/ok3.sql \
tests/ok4.sql \
tests/ok5.sql \
tests/ok6.sql \
tests/ok7.sql \
tests/ok8.sql \
tests/ok9.sql \
tests/ok10.sql \
tests/tst-create-db.sql \
tests/tst-create-table.sql \
tests/tst-delete.sql \
tests/tst-drop-db.sql \
tests/tst-drop-table.sql \
tests/tst-insert.sql \
tests/tst-select-null.sql \
tests/tst-select-null2.sql \
tests/tst-select-null3.sql

sql_SOURCES = exec.c lib.c main.c sql-parser.h yyl.h
sql_LDADD = @JANSSON_LIBS@
Expand Down
2 changes: 1 addition & 1 deletion test-fail.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh

for testfn in $srcdir/fail*.sql
for testfn in $srcdir/tests/fail*.sql
do
cat $testfn | ./sql
if [ $? -ne 1 ]
Expand Down
2 changes: 1 addition & 1 deletion test-ok.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh

for testfn in $srcdir/ok*.sql
for testfn in $srcdir/tests/ok*.sql
do
cat $testfn | ./sql
if [ $? -ne 0 ]
Expand Down
2 changes: 1 addition & 1 deletion test-tst.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh

for testfn in $srcdir/tst-*.sql
for testfn in $srcdir/tests/tst-*.sql
do
cat $testfn | ./sql
if [ $? -ne 0 ]
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit befc86b

Please sign in to comment.