binaries: $(BINARIES)
sysbinaries: FRC
- sh -x bin/locate.sh initdb postgres pg_ctl mysqld
+ bin/locate.sh initdb postgres pg_ctl mysqld
ls -la bin.sys
# Compile and link the programs:
s/\bgid=\d+/gid=gggg/;
s/\begid=\d+/egid=gggg/;
- s/\bpid=\d+/pid=pppp/;
+ s/\b(pid=|PID: )\d+/$1pppp/;
s/\buid=\d+/uid=uuuu/;
s/\beuid=\d+/euid=uuuu/;
s/set_process_info:\s+\d+/set_process_info: pppp/;
# subsecond timstamp info in reported header-files
s/^(-received_time_usec \.)\d{6}$/$1uuuuuu/;
+
+ # Postgres server takes varible time to shut down
+ s/^waiting for server to shut down\.+ done$/waiting for server to shut down.... done/;
}
# ======== stderr ========
#
# first, populate a DB to test against
sudo rm -fr DIR/pgsql
+echo Starting DB server
perl
system 'DIR/bin.sys/initdb -D DIR/pgsql/data';
****
DIR/bin.sys/postgres -D DIR/pgsql/data -p PORT_N -k DIR/pgsql
****
sleep 1
+echo Waiting for DB server
perl
+system 'DIR/bin.sys/pg_ctl -w -D DIR/pgsql/data status';
system 'createdb -h localhost -p PORT_N test';
system 'psql -h localhost -p PORT_N -d test \
-c "CREATE TABLE them ( name text, id text ); \
INSERT INTO them VALUES ( CHR(39) || \'stquot\', \'quote1\' );" \
';
****
+echo Populated DB server
#
# now, the tests
exim -d-all+lookup -be
****
#
perl
-system 'pg_ctl stop -D DIR/pgsql/data -m immediate';
+system 'DIR/bin.sys/pg_ctl stop -D DIR/pgsql/data -m immediate';
****
+sleep 2
killdaemon
sudo rm -fr DIR/pgsql