Explicitely use gawk in the new regression testing facility.

Turns out that debian has mawk by default, which is not behaving the
same in our very simple use case already. In passing, add gawk as a
build dependency of the debian package, because the packaging is meant
to exercize the test cases.
This commit is contained in:
Dimitri Fontaine 2014-06-03 13:39:21 +02:00
parent 3bcd236de6
commit f6fae39b2e
3 changed files with 4 additions and 4 deletions

View File

@ -124,7 +124,7 @@ pgloader-standalone:
--output $(PGLOADER)
test:
$(MAKE) PGLOADER=$(realpath $(PGLOADER)) -C test all
$(MAKE) PGLOADER=$(realpath $(PGLOADER)) -C test regress
deb: docs
# intended for use on a debian system

2
debian/control vendored
View File

@ -2,7 +2,7 @@ Source: pgloader
Section: database
Priority: extra
Maintainer: Dimitri Fontaine <dimitri@2ndQuadrant.fr>
Build-Depends: debhelper (>= 8.0.0), sbcl (>= 1.1.13), ruby-ronn, buildapp (>= 1.5), cl-asdf (>= 3.0.3), cl-log, cl-postmodern, cl-qmynd, cl-split-sequence, cl-csv, cl-fad, cl-lparallel, cl-esrap, cl-alexandria, cl-drakma, cl-zip, cl-flexi-streams, cl-usocket, cl-local-time, cl-command-line-arguments, cl-abnf, cl-db3, cl-py-configparser, cl-sqlite, cl-trivial-backtrace, cl-markdown, cl-md5, cl-asdf-finalizers, cl-asdf-system-connections, cl-cffi (>= 1:0.12.0)
Build-Depends: debhelper (>= 8.0.0), sbcl (>= 1.1.13), ruby-ronn, buildapp (>= 1.5), cl-asdf (>= 3.0.3), cl-log, cl-postmodern, cl-qmynd, cl-split-sequence, cl-csv, cl-fad, cl-lparallel, cl-esrap, cl-alexandria, cl-drakma, cl-zip, cl-flexi-streams, cl-usocket, cl-local-time, cl-command-line-arguments, cl-abnf, cl-db3, cl-py-configparser, cl-sqlite, cl-trivial-backtrace, cl-markdown, cl-md5, cl-asdf-finalizers, cl-asdf-system-connections, cl-cffi (>= 1:0.12.0), gawk
Standards-Version: 3.9.3
Homepage: https://github.com/dimitri/pgloader
Vcs-Git: https://github.com/dimitri/pgloader.git

View File

@ -8,8 +8,8 @@
pgloader=$1
command=$2
targetdb=`awk -F '[ ?]+' '/^ *INTO|into/ {print $3}' < $command`
table=`awk -F '[ ?]+' '/^ *INTO|into/ {print $4}' < $command`
targetdb=`gawk -F '[ ?]+' '/^ *INTO|into/ {print $3}' < $command`
table=`gawk -F '[ ?]+' '/^ *INTO|into/ {print $4}' < $command`
expected=regress/expected/`basename $2 .load`.out
out=regress/out/`basename $2 .load`.out