Commit Graph

44 Commits

Author SHA1 Message Date
Dave Peticolas
ab80a5712f Fix bugs.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6269 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-07 11:10:22 +00:00
Dave Peticolas
4a67dfe918 Remove acc_guid member from splits.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6262 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-06 09:30:25 +00:00
Dave Peticolas
277b4757a7 Add more account queries to make_trans_query.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6139 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-11-29 11:09:33 +00:00
Dave Peticolas
6b9dee0392 fix bug
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6055 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-11-25 09:38:15 +00:00
Linas Vepstas
381504ad5a fix test cases that are wildly misusing internal routines with great borkeness.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6054 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-11-25 09:10:17 +00:00
Dave Peticolas
fed69ff72c Fix bugs with new book pointers.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6053 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-11-25 09:05:23 +00:00
Derek Atkins
788d998d6b convert GNCIdType from an enum to a char*
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6035 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-11-25 02:20:34 +00:00
Linas Vepstas
1ea3b0dbfa add kvp_frame to books; fix misc session->book bugs
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6020 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-11-24 18:22:57 +00:00
Dave Peticolas
860adf103c Move entity tables from sessions to books.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6018 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-11-24 12:10:42 +00:00
Dave Peticolas
393ff20342 random_timespec_usec_resolution: new func.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5987 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-11-23 23:45:45 +00:00
Dave Peticolas
48c7533a8d Prohibit blank kvp keys.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5975 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-11-22 07:51:06 +00:00
Dave Peticolas
6f28287eac Derek Atkins's patch implementing kvp timespecs in C & scheme.
Implement kvp timespecs in xml.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5942 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-11-21 09:49:02 +00:00
Dave Peticolas
9ab5664185 Add explicit types to GUID queries.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5862 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-11-14 09:07:49 +00:00
Dave Peticolas
82e3d5368f Implement kvp queries in postgres backend.
Fix PR_GUID queries in postgres backend.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5804 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-11-09 11:50:29 +00:00
Dave Peticolas
96254db7a0 Fix bug.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5782 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-11-07 09:56:15 +00:00
Dave Peticolas
fb1a5ad357 Add voided transactions to random mix.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5779 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-11-07 08:59:30 +00:00
Dave Peticolas
6b967f410b Allow prices to be excluded on trans queries.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5778 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-11-07 08:05:16 +00:00
Dave Peticolas
f82f95a0a2 Refactor make_trans_query into engine test-core.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5775 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-11-06 10:22:42 +00:00
Dave Peticolas
86c55a3e22 Fix query<->scm for new kvp queries.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5772 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-11-06 00:49:46 +00:00
Dave Peticolas
8098a8eacb Fix bug.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5708 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-10-22 09:01:04 +00:00
Dave Peticolas
59e09a47db Don't insert account into itself.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5692 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-10-18 22:45:59 +00:00
Dave Peticolas
d3b6891061 Make random changes to prices & commodities.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5684 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-10-18 09:33:01 +00:00
Dave Peticolas
e362863787 Test adding new transactions & rolling back changed transactions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5679 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-10-17 23:35:52 +00:00
Dave Peticolas
27ddcdf45e Only use valid account types when creating random accounts.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5672 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-10-17 09:56:07 +00:00
Dave Peticolas
0f43b340f3 Remove warning.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5663 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-10-17 01:29:42 +00:00
Dave Peticolas
9afc2fc598 2001-10-16 Dave Peticolas <dave@krondo.com>
* src/engine/test-core/test-engine-stuff.c: work on test
	infrastructure for making changes to existing data

	* src/engine/gnc-book.c: keep backends up to date

	* src/engine/gnc-session.c: keep backends up to date

	* src/backend/postgres/test/db-control.sh: bring down postmaster
	on database create and destroy

	* src/backend/postgres/test/test-db.c: work on single-update
	test

	* src/backend/postgres/txn.c: fix bug -- when deleting splits
	from the database that aren't in the engine, can't use
	xaccSplitLookup.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5661 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-10-16 09:13:07 +00:00
Dave Peticolas
bcae323c49 Work on test infrastructure.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5658 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-10-16 00:50:01 +00:00
Dave Peticolas
4d915c5e8c 2001-10-13 Dave Peticolas <dave@krondo.com>
* src/guile/Makefile.am (libgncguile_la_LIBADD): remove gncgnome.la
	dependency

	* src/engine/test-core/test-engine-stuff.c (get_random_timespec):
	add flag to always set nsec to 0.
	(get_random_transaction_with_currency): new func
	(add_random_transactions_to_session): new func

	* src/backend/postgres/test/db-control.sh: add 'connect' argument
	to start psql connection

	* src/backend/postgres/test/test-db.c: add random transactions
	to the mix

	* src/backend/postgres/account.c (pgendStoreAccountNoLock): expound
	on commodity table comment


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5596 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-10-13 08:09:30 +00:00
Dave Peticolas
1506523cf6 2001-10-12 Dave Peticolas <dave@krondo.com>
* src/test-core/test-stuff.c (get_random_string_without): new func

	* src/engine/test-core/test-engine-stuff.c
	(get_random_kvp_frame_depth): fix bug
	(get_random_session): new func

	* src/engine/Account.c (xaccAccountEqual): more warnings, use
	gnc_commodity_equal

	* src/engine/Group.c (xaccGroupEqual): more warnings

	* src/engine/Transaction.c: use gnc_commodity_equal

	* src/engine/gnc-book.c (gnc_book_equal): compare commodity tables

	* src/engine/gnc-commodity.c (gnc_commodity_equal): new func
	(gnc_commodity_table_equal): new func

	* src/engine/gnc-session.c (gnc_session_begin): destroy old backend

	* src/backend/postgres/test/.cvsignore: ignore test files

	* src/backend/postgres/test/Makefile.am: add file backend .la
	to get symbols for gdb

	* src/backend/postgres/test/run-tests.sh: remove test files
	before starting test

	* src/backend/postgres/test/test-db.c: when books differ, write
	out xml files

	* src/backend/file/test/test-xml-account.c (test_add_account):
	fix for strong commodity equal test


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5581 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-10-12 10:50:35 +00:00
Dave Peticolas
df3be03bd4 2001-10-10 Dave Peticolas <dave@krondo.com>
* src/engine/test-core/test-engine-stuff.c
	(get_random_kvp_frame_depth): use set kvp max elements number

	* src/engine/Account.c (xaccAccountEqual): add warning strings

	* src/engine/Group.c (xaccGroupEqual): add warning strings

	* src/engine/gnc-book.c (gnc_book_equal): add warning strings

	* src/engine/kvp_frame.c: treat empty frames as NULL

	* src/backend/postgres/test/run-tests.sh: enable test

	* src/backend/postgres/test/test-db.c (main): enable test

	* src/backend/file/test/test-kvp-frames.c (test_kvp_xml_stuff):
	print more debugging output

	* src/backend/file/sixtp-dom-generators.c (add_kvp_value_node):
	fix bug generating kvp string values (they weren't being escaped)


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5490 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-10-10 09:17:56 +00:00
Dave Peticolas
2408e0f983 Work on moving entity tables into sessions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5468 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-10-06 08:12:55 +00:00
Dave Peticolas
c672e1960c Work on moving entity tables into sessions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5467 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-10-05 09:54:41 +00:00
Dave Peticolas
97b19d1878 Work on moving entity tables into sessions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5466 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-10-05 08:35:04 +00:00
Dave Peticolas
114b5af306 Work on moving entity tables into sessions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5464 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-10-04 08:17:14 +00:00
Dave Peticolas
2813e46549 Work on moving entity tables to sessions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5463 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-10-04 00:36:28 +00:00
Dave Peticolas
e23fcf4fc5 Move commodity tables into GNCBooks instead of global data.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5460 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-10-03 10:07:45 +00:00
Dave Peticolas
aeff5c25de Add GNCSession object. Refactor session code from GNCBook to GNCSession.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5455 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-10-02 09:10:35 +00:00
Dave Peticolas
77913bb212 Work on test infrastructure. Add gnc_book_equal().
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5452 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-10-01 08:24:07 +00:00
Dave Peticolas
85f1067f02 More work on test infrastructure.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5443 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-09-29 10:03:38 +00:00
Dave Peticolas
66e5b6b991 More work on test infrastructure.
Comment out vacuum analyze command,
it's not designed to be run so frequently.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5440 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-09-29 00:08:44 +00:00
Dave Peticolas
8f95f763e8 Work on test infrastructure.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5434 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-09-28 00:15:49 +00:00
Dave Peticolas
af0f7a1c6c Add pricedb<->xml test.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5226 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-08-24 01:13:04 +00:00
Dave Peticolas
e09d061ce6 2001-08-20 Dave Peticolas <dave@krondo.com>
* others: xaccGetAccountRoot->xaccAccountGetRoot

	* src/engine/messages.h: move this file here

	* src/engine/test/test-group-vs-book.c: new file. test group/book
	references

	* src/engine/test-core/test-engine-stuff.c (get_random_group): new
	func

	* src/engine/gnc-book.c: (gnc_book_set_group): update group's book

	* src/engine/Group.c (xaccGroupGetBook): new func
	(xaccGroupSetBook): new func

	* src/engine/GroupP.h: add a reference to the group's book


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5207 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-08-20 23:25:39 +00:00
Dave Peticolas
e5af9794bb More work on test infrastructure.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5170 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-08-18 00:13:45 +00:00