aports/main/libzdb/test-makefile.patch
2017-03-05 23:35:24 +01:00

32 lines
1.1 KiB
Diff

./pool is interactive, so we must feed it DB connection on stdin.
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -17,4 +17,4 @@
test: unit pool select
verify:
- @/bin/sh ./exception && ./unit && ./pool
+ @/bin/sh ./exception && ./unit && echo 'sqlite:///tmp/sqlite.db?synchronous=off&heap_limit=2000' | ./pool
--- a/test/Makefile.in
+++ b/test/Makefile.in
@@ -619,7 +619,7 @@
test: unit pool select
verify:
- @/bin/sh ./exception && ./unit && ./pool
+ @/bin/sh ./exception && ./unit && echo 'sqlite:///tmp/sqlite.db?synchronous=off&heap_limit=2000' | ./pool
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
--- a/test/Makefile
+++ b/test/Makefile
@@ -619,7 +619,7 @@
test: unit pool select
verify:
- @/bin/sh ./exception && ./unit && ./pool
+ @/bin/sh ./exception && ./unit && echo 'sqlite:///tmp/sqlite.db?synchronous=off&heap_limit=2000' | ./pool
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.