Bug 34979: Add unit test for comparing YAMl files with sysprefs.sql
authorKatrin Fischer <katrin.fischer.83@web.de>
Sun, 7 Jan 2024 21:54:29 +0000 (21:54 +0000)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Fri, 26 Jan 2024 14:13:53 +0000 (15:13 +0100)
commit06ba28556254e443d0cc678c0f3d6aabd20f6767
tree4c816881f1e7ea2a926f58aee1d9bbeed486f1f1
parentf3a069ad7fa1604a5e9996546e6ef8828bd9dc05
Bug 34979: Add unit test for comparing YAMl files with sysprefs.sql

The unit tests will help to detect any discrepancies
and missing entries in the YAML and sysprefs.sql files.

To test:
* Apply only this patch
* prove -v t/db_dependent/check_sysprefs.t
* It will fail.
* Apply other patches
* Run database update
* Re-run test. It should pass now.
* Recreate your database or reset_all with patches applied.
* System preferences should be installed correctly.
* Test should still pass.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
t/db_dependent/check_sysprefs.t