Commit 5a9b8c55 authored by Daniel Vrátil's avatar Daniel Vrátil 🤖

Modernize Akonadi unittestenv

Add MySQL and PSQL configs, update config files
parent 78de12de
<config>
<confighome>xdgconfig-mysql.fs</confighome>
<datahome>xdglocal</datahome>
<agent synchronize="true">akonadi_knut_resource</agent>
<agent synchronize="true">akonadi_knut_resource</agent>
<agent synchronize="true">akonadi_knut_resource</agent>
<envvar name="AKONADI_DISABLE_AGENT_AUTOSTART">true</envvar>
<envvar name="TESTRUNNER_DB_ENVIRONMENT">mysql</envvar>
<envvar name="AKONADI_OVERRIDE_SEARCHPLUGIN">akonadi_test_searchplugin</envvar>
</config>
<config>
<confighome>xdgconfig-postgresql.fs</confighome>
<datahome>xdglocal</datahome>
<agent synchronize="true">akonadi_knut_resource</agent>
<agent synchronize="true">akonadi_knut_resource</agent>
<agent synchronize="true">akonadi_knut_resource</agent>
<envvar name="AKONADI_DISABLE_AGENT_AUTOSTART">true</envvar>
<envvar name="TESTRUNNER_DB_ENVIRONMENT">postgresql</envvar>
<envvar name="AKONADI_OVERRIDE_SEARCHPLUGIN">akonadi_test_searchplugin</envvar>
</config>
<config>
<kdehome>kdehome</kdehome>
<confighome>xdgconfig-sqlite.db</confighome>
<datahome>xdglocal</datahome>
<agent synchronize="true">akonadi_knut_resource</agent>
<agent synchronize="true">akonadi_knut_resource</agent>
<agent synchronize="true">akonadi_knut_resource</agent>
<envvar name="AKONADI_DISABLE_AGENT_AUTOSTART">true</envvar>
<envvar name="TESTRUNNER_DB_ENVIRONMENT">sqlite</envvar>
<envvar name="AKONADI_OVERRIDE_SEARCHPLUGIN">akonadi_test_searchplugin</envvar>
</config>
<config>
<confighome>xdgconfig</confighome>
<datahome>xdglocal</datahome>
<agent synchronize="true">akonadi_knut_resource</agent>
<agent synchronize="true">akonadi_knut_resource</agent>
<agent synchronize="true">akonadi_knut_resource</agent>
<envvar name="AKONADI_DISABLE_AGENT_AUTOSTART">true</envvar>
</config>
[%General]
SizeThreshold=0
ExternalPayload=true
[Search]
Manager=Dummy
[%General]
Driver=QPSQL
SizeThreshold=0
ExternalPayload=true
[Search]
Manager=Dummy
[QPSQL]
StartServer=true
[General]
DataFile[$e]=$XDG_DATA_HOME/testdata-res1.xml
FileWatchingEnabled=false
[General]
DataFile[$e]=$XDG_DATA_HOME/testdata-res2.xml
FileWatchingEnabled=false
[General]
DataFile[$e]=$XDG_DATA_HOME/testdata-res3.xml
FileWatchingEnabled=false
<knut>
<collection rid="6" name="res1" content="inode/directory">
<collection rid="10" name="foo" content="inode/directory,application/octet-stream,text/directory,text/calendar,message/rfc822">
<collection rid="2" name="bar" content="inode/directory">
<collection rid="3" name="bla" content="inode/directory">
</collection>
</collection>
<collection rid="4" name="bla" content="inode/directory">
</collection>
<item rid="A" mimetype="application/octet-stream">
<payload>testmailbody</payload>
<attribute type="HEAD">From: &lt;test@user.tst&gt;</attribute>
<flag>\SEEN</flag>
<flag>\FLAGGED</flag>
<flag>\DRAFT</flag>
</item>
<item rid="B" mimetype="application/octet-stream">
<payload>testmailbody1</payload>
<attribute type="HEAD">From: &lt;test1@user.tst&gt;</attribute>
<flag>\FLAGGED</flag>
<tag>tagrid</tag>
</item>
<item rid="C" mimetype="application/octet-stream">
<payload>testmailbody2</payload>
<attribute type="HEAD">From: &lt;test2@user.tst&gt;</attribute>
</item>
<item rid="D" mimetype="application/octet-stream">
<payload>testmailbody3</payload>
<attribute type="HEAD">From: &lt;test3@user.tst&gt;</attribute>
</item>
<item rid="E" mimetype="application/octet-stream">
<payload>testmailbody4</payload>
<attribute type="HEAD">From: &lt;test4@user.tst&gt;</attribute>
</item>
<item rid="F" mimetype="application/octet-stream">
<payload>testmailbody5</payload>
<attribute type="HEAD">From: &lt;test5@user.tst&gt;</attribute>
</item>
<item rid="G" mimetype="application/octet-stream">
<payload>testmailbody6</payload>
<attribute type="HEAD">From: &lt;test6@user.tst&gt;</attribute>
</item>
<item rid="H" mimetype="application/octet-stream">
<payload>testmailbody7</payload>
<attribute type="HEAD">From: &lt;test7@user.tst&gt;</attribute>
</item>
<item rid="I" mimetype="application/octet-stream">
<payload>testmailbody8</payload>
<attribute type="HEAD">From: &lt;test8@user.tst&gt;</attribute>
</item>
<item rid="J" mimetype="application/octet-stream">
<payload>testmailbody9</payload>
<attribute type="HEAD">From: &lt;test9@user.tst&gt;</attribute>
</item>
<item rid="K" mimetype="application/octet-stream">
<payload>testmailbody10</payload>
<attribute type="HEAD">From: &lt;test10@user.tst&gt;</attribute>
</item>
<item rid="L" mimetype="application/octet-stream">
<payload>testmailbody11</payload>
<attribute type="HEAD">From: &lt;test11@user.tst&gt;</attribute>
</item>
<item rid="M" mimetype="application/octet-stream">
<payload>testmailbody12</payload>
<attribute type="HEAD">From: &lt;test12@user.tst&gt;</attribute>
</item>
<item rid="N" mimetype="application/octet-stream">
<payload>testmailbody13</payload>
<attribute type="HEAD">From: &lt;test13@user.tst&gt;</attribute>
</item>
<item rid="O" mimetype="application/octet-stream">
<payload>testmailbody14</payload>
<attribute type="HEAD">From: &lt;test14@user.tst&gt;</attribute>
</item>
</collection>
</collection>
<tag name="name" type="type" gid="taggid" rid="tagrid"></tag>
</knut>
<knut>
<collection rid="7" name="res2" content="inode/directory">
<collection rid="5" name="foo2" content=""/>
<collection rid="9" name="space folder" content=""/>
</collection>
</knut>
<knut>
<collection rid="8" name="res3" content="inode/directory,application/octet-stream">
</collection>
</knut>
<knut>
<collection rid="6" name="res1" content="inode/directory">
<collection rid="10" name="foo" content="inode/directory,application/octet-stream,text/directory,text/calendar">
<collection rid="2" name="bar" content="inode/directory">
<collection rid="3" name="bla" content="inode/directory">
</collection>
</collection>
<collection rid="4" name="bla" content="inode/directory">
</collection>
<item rid="A" mimetype="application/octet-stream">
<payload>testmailbody</payload>
<attribute type="HEAD">From: &lt;test@user.tst&gt;</attribute>
<flag>\SEEN</flag>
<flag>\FLAGGED</flag>
<flag>\DRAFT</flag>
</item>
<item rid="B" mimetype="application/octet-stream">
<payload>testmailbody1</payload>
<attribute type="HEAD">From: &lt;test1@user.tst&gt;</attribute>
<flag>\FLAGGED</flag>
</item>
<item rid="C" mimetype="application/octet-stream">
<payload>testmailbody2</payload>
<attribute type="HEAD">From: &lt;test2@user.tst&gt;</attribute>
</item>
<item rid="D" mimetype="application/octet-stream">
<payload>testmailbody3</payload>
<attribute type="HEAD">From: &lt;test3@user.tst&gt;</attribute>
</item>
<item rid="E" mimetype="application/octet-stream">
<payload>testmailbody4</payload>
<attribute type="HEAD">From: &lt;test4@user.tst&gt;</attribute>
</item>
<item rid="F" mimetype="application/octet-stream">
<payload>testmailbody5</payload>
<attribute type="HEAD">From: &lt;test5@user.tst&gt;</attribute>
</item>
<item rid="G" mimetype="application/octet-stream">
<payload>testmailbody6</payload>
<attribute type="HEAD">From: &lt;test6@user.tst&gt;</attribute>
</item>
<item rid="H" mimetype="application/octet-stream">
<payload>testmailbody7</payload>
<attribute type="HEAD">From: &lt;test7@user.tst&gt;</attribute>
</item>
<item rid="I" mimetype="application/octet-stream">
<payload>testmailbody8</payload>
<attribute type="HEAD">From: &lt;test8@user.tst&gt;</attribute>
</item>
<item rid="J" mimetype="application/octet-stream">
<payload>testmailbody9</payload>
<attribute type="HEAD">From: &lt;test9@user.tst&gt;</attribute>
</item>
<item rid="K" mimetype="application/octet-stream">
<payload>testmailbody10</payload>
<attribute type="HEAD">From: &lt;test10@user.tst&gt;</attribute>
</item>
<item rid="L" mimetype="application/octet-stream">
<payload>testmailbody11</payload>
<attribute type="HEAD">From: &lt;test11@user.tst&gt;</attribute>
</item>
<item rid="M" mimetype="application/octet-stream">
<payload>testmailbody12</payload>
<attribute type="HEAD">From: &lt;test12@user.tst&gt;</attribute>
</item>
<item rid="N" mimetype="application/octet-stream">
<payload>testmailbody13</payload>
<attribute type="HEAD">From: &lt;test13@user.tst&gt;</attribute>
</item>
<item rid="O" mimetype="application/octet-stream">
<payload>testmailbody14</payload>
<attribute type="HEAD">From: &lt;test14@user.tst&gt;</attribute>
</item>
</collection>
</collection>
<collection rid="7" name="res2" content="inode/directory">
<collection rid="5" name="foo2" content=""/>
<collection rid="9" name="space folder" content=""/>
</collection>
<collection rid="8" name="res3" content="inode/directory,application/octet-stream">
</collection>
</knut>
<config>
<confighome>xdgconfig-mysql.fs</confighome>
<datahome>xdglocal</datahome>
<agent synchronize="true">akonadi_knut_resource</agent>
<agent synchronize="true">akonadi_knut_resource</agent>
<agent synchronize="true">akonadi_knut_resource</agent>
<envvar name="AKONADI_DISABLE_AGENT_AUTOSTART">true</envvar>
<envvar name="TESTRUNNER_DB_ENVIRONMENT">mysql</envvar>
<envvar name="AKONADI_OVERRIDE_SEARCHPLUGIN">akonadi_test_searchplugin</envvar>
</config>
<config>
<confighome>xdgconfig-postgresql.fs</confighome>
<datahome>xdglocal</datahome>
<agent synchronize="true">akonadi_knut_resource</agent>
<agent synchronize="true">akonadi_knut_resource</agent>
<agent synchronize="true">akonadi_knut_resource</agent>
<envvar name="AKONADI_DISABLE_AGENT_AUTOSTART">true</envvar>
<envvar name="TESTRUNNER_DB_ENVIRONMENT">postgresql</envvar>
<envvar name="AKONADI_OVERRIDE_SEARCHPLUGIN">akonadi_test_searchplugin</envvar>
</config>
<config>
<kdehome>kdehome</kdehome>
<confighome>xdgconfig-sqlite.db</confighome>
<datahome>xdglocal</datahome>
<agent synchronize="true">akonadi_knut_resource</agent>
<agent synchronize="true">akonadi_knut_resource</agent>
<agent synchronize="true">akonadi_knut_resource</agent>
<envvar name="AKONADI_DISABLE_AGENT_AUTOSTART">true</envvar>
<envvar name="TESTRUNNER_DB_ENVIRONMENT">sqlite</envvar>
<envvar name="AKONADI_OVERRIDE_SEARCHPLUGIN">akonadi_test_searchplugin</envvar>
</config>
<config>
<confighome>xdgconfig</confighome>
<datahome>xdglocal</datahome>
<agent synchronize="true">akonadi_knut_resource</agent>
<agent synchronize="true">akonadi_knut_resource</agent>
<agent synchronize="true">akonadi_knut_resource</agent>
<envvar name="AKONADI_DISABLE_AGENT_AUTOSTART">true</envvar>
</config>
[%General]
SizeThreshold=0
ExternalPayload=true
[Search]
Manager=Dummy
[%General]
Driver=QPSQL
SizeThreshold=0
ExternalPayload=true
[Search]
Manager=Dummy
[QPSQL]
StartServer=true
[General]
DataFile[$e]=$XDG_DATA_HOME/testdata-res1.xml
FileWatchingEnabled=false
[General]
DataFile[$e]=$XDG_DATA_HOME/testdata-res2.xml
FileWatchingEnabled=false
[General]
DataFile[$e]=$XDG_DATA_HOME/testdata-res3.xml
FileWatchingEnabled=false
<knut>
<collection rid="6" name="res1" content="inode/directory">
<collection rid="10" name="foo" content="inode/directory,application/octet-stream,text/directory,text/calendar,message/rfc822">
<collection rid="2" name="bar" content="inode/directory">
<collection rid="3" name="bla" content="inode/directory">
</collection>
</collection>
<collection rid="4" name="bla" content="inode/directory">
</collection>
<item rid="A" mimetype="application/octet-stream">
<payload>testmailbody</payload>
<attribute type="HEAD">From: &lt;test@user.tst&gt;</attribute>
<flag>\SEEN</flag>
<flag>\FLAGGED</flag>
<flag>\DRAFT</flag>
</item>
<item rid="B" mimetype="application/octet-stream">
<payload>testmailbody1</payload>
<attribute type="HEAD">From: &lt;test1@user.tst&gt;</attribute>
<flag>\FLAGGED</flag>
<tag>tagrid</tag>
</item>
<item rid="C" mimetype="application/octet-stream">
<payload>testmailbody2</payload>
<attribute type="HEAD">From: &lt;test2@user.tst&gt;</attribute>
</item>
<item rid="D" mimetype="application/octet-stream">
<payload>testmailbody3</payload>
<attribute type="HEAD">From: &lt;test3@user.tst&gt;</attribute>
</item>
<item rid="E" mimetype="application/octet-stream">
<payload>testmailbody4</payload>
<attribute type="HEAD">From: &lt;test4@user.tst&gt;</attribute>
</item>
<item rid="F" mimetype="application/octet-stream">
<payload>testmailbody5</payload>
<attribute type="HEAD">From: &lt;test5@user.tst&gt;</attribute>
</item>
<item rid="G" mimetype="application/octet-stream">
<payload>testmailbody6</payload>
<attribute type="HEAD">From: &lt;test6@user.tst&gt;</attribute>
</item>
<item rid="H" mimetype="application/octet-stream">
<payload>testmailbody7</payload>
<attribute type="HEAD">From: &lt;test7@user.tst&gt;</attribute>
</item>
<item rid="I" mimetype="application/octet-stream">
<payload>testmailbody8</payload>
<attribute type="HEAD">From: &lt;test8@user.tst&gt;</attribute>
</item>
<item rid="J" mimetype="application/octet-stream">
<payload>testmailbody9</payload>
<attribute type="HEAD">From: &lt;test9@user.tst&gt;</attribute>
</item>
<item rid="K" mimetype="application/octet-stream">
<payload>testmailbody10</payload>
<attribute type="HEAD">From: &lt;test10@user.tst&gt;</attribute>
</item>
<item rid="L" mimetype="application/octet-stream">
<payload>testmailbody11</payload>
<attribute type="HEAD">From: &lt;test11@user.tst&gt;</attribute>
</item>
<item rid="M" mimetype="application/octet-stream">
<payload>testmailbody12</payload>
<attribute type="HEAD">From: &lt;test12@user.tst&gt;</attribute>
</item>
<item rid="N" mimetype="application/octet-stream">
<payload>testmailbody13</payload>
<attribute type="HEAD">From: &lt;test13@user.tst&gt;</attribute>
</item>
<item rid="O" mimetype="application/octet-stream">
<payload>testmailbody14</payload>
<attribute type="HEAD">From: &lt;test14@user.tst&gt;</attribute>
</item>
</collection>
</collection>
<tag name="name" type="type" gid="taggid" rid="tagrid"></tag>
</knut>
<knut>
<collection rid="7" name="res2" content="inode/directory">
<collection rid="5" name="foo2" content=""/>
<collection rid="9" name="space folder" content=""/>
</collection>
</knut>
<knut>
<collection rid="8" name="res3" content="inode/directory,application/octet-stream">
</collection>
</knut>
<knut>
<collection rid="6" name="res1" content="inode/directory">
<collection rid="10" name="foo" content="inode/directory,application/octet-stream,text/directory,text/calendar">
<collection rid="2" name="bar" content="inode/directory">
<collection rid="3" name="bla" content="inode/directory">
</collection>
</collection>
<collection rid="4" name="bla" content="inode/directory">
</collection>
<item rid="A" mimetype="application/octet-stream">
<payload>testmailbody</payload>
<attribute type="HEAD">From: &lt;test@user.tst&gt;</attribute>
<flag>\SEEN</flag>
<flag>\FLAGGED</flag>
<flag>\DRAFT</flag>
</item>
<item rid="B" mimetype="application/octet-stream">
<payload>testmailbody1</payload>
<attribute type="HEAD">From: &lt;test1@user.tst&gt;</attribute>
<flag>\FLAGGED</flag>
</item>
<item rid="C" mimetype="application/octet-stream">
<payload>testmailbody2</payload>
<attribute type="HEAD">From: &lt;test2@user.tst&gt;</attribute>
</item>
<item rid="D" mimetype="application/octet-stream">
<payload>testmailbody3</payload>
<attribute type="HEAD">From: &lt;test3@user.tst&gt;</attribute>
</item>
<item rid="E" mimetype="application/octet-stream">
<payload>testmailbody4</payload>
<attribute type="HEAD">From: &lt;test4@user.tst&gt;</attribute>
</item>
<item rid="F" mimetype="application/octet-stream">
<payload>testmailbody5</payload>
<attribute type="HEAD">From: &lt;test5@user.tst&gt;</attribute>
</item>
<item rid="G" mimetype="application/octet-stream">
<payload>testmailbody6</payload>
<attribute type="HEAD">From: &lt;test6@user.tst&gt;</attribute>
</item>
<item rid="H" mimetype="application/octet-stream">
<payload>testmailbody7</payload>
<attribute type="HEAD">From: &lt;test7@user.tst&gt;</attribute>
</item>
<item rid="I" mimetype="application/octet-stream">
<payload>testmailbody8</payload>
<attribute type="HEAD">From: &lt;test8@user.tst&gt;</attribute>
</item>
<item rid="J" mimetype="application/octet-stream">
<payload>testmailbody9</payload>
<attribute type="HEAD">From: &lt;test9@user.tst&gt;</attribute>
</item>
<item rid="K" mimetype="application/octet-stream">
<payload>testmailbody10</payload>
<attribute type="HEAD">From: &lt;test10@user.tst&gt;</attribute>
</item>
<item rid="L" mimetype="application/octet-stream">
<payload>testmailbody11</payload>
<attribute type="HEAD">From: &lt;test11@user.tst&gt;</attribute>
</item>
<item rid="M" mimetype="application/octet-stream">
<payload>testmailbody12</payload>
<attribute type="HEAD">From: &lt;test12@user.tst&gt;</attribute>
</item>
<item rid="N" mimetype="application/octet-stream">
<payload>testmailbody13</payload>
<attribute type="HEAD">From: &lt;test13@user.tst&gt;</attribute>
</item>
<item rid="O" mimetype="application/octet-stream">
<payload>testmailbody14</payload>
<attribute type="HEAD">From: &lt;test14@user.tst&gt;</attribute>
</item>
</collection>
</collection>
<collection rid="7" name="res2" content="inode/directory">
<collection rid="5" name="foo2" content=""/>
<collection rid="9" name="space folder" content=""/>
</collection>
<collection rid="8" name="res3" content="inode/directory,application/octet-stream">
</collection>
</knut>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment