How to build, install and test QDjango? What are the additional requirements?

116 views
Skip to first unread message

alber...@gmail.com

unread,
Jul 28, 2014, 7:11:05 AM7/28/14
to qdj...@googlegroups.com, brag...@mail.ru
Is the "qmake && make && make install" enough for this purposes?
What should I do for docs install and for testing?
What are the requirements for docs and tests? Is Doxygen and Python enough?

Jeremy Lainé

unread,
Jul 28, 2014, 9:20:07 AM7/28/14
to qdj...@googlegroups.com
What platform are we talking about?

Some notes:

- compiling QDjango requires only Qt

- Windows : compiling QDjango is supported, building documentation and running the test
suite is not. You can probably run the tests individually, but I don't have access to a
Windows box to verify it

- Linux / OS X : running the test suite indeed requires python. Building the documentation
indeed requires doxygen.

Cheers,
Jeremy

alber...@gmail.com

unread,
Jul 28, 2014, 1:15:02 PM7/28/14
to qdj...@googlegroups.com
понедельник, 28 июля 2014 г., 22:20:07 UTC+9 пользователь Jeremy Lainé написал:

Sorry, I forgot to mention platform: win7, Qt 5.3.1 for Windows 32-bit (MinGW 4.8.2).
I executed and passed several tests manualy, but some - failed.
 
>dir
28.07.2014  22:45    <DIR>          .
28.07.2014  22:45    <DIR>          ..
28.07.2014  22:45    <DIR>          auth
28.07.2014  22:44            45 020 Makefile
28.07.2014  22:44    <DIR>          qdjango
28.07.2014  22:44    <DIR>          qdjangocompiler
28.07.2014  22:44    <DIR>          qdjangometamodel
28.07.2014  22:44    <DIR>          qdjangomodel
28.07.2014  22:44    <DIR>          qdjangoqueryset
28.07.2014  22:44    <DIR>          qdjangowhere
28.07.2014  22:45    <DIR>          shares

>auth\release\tst_auth.exe
********* Start testing of tst_Auth *********
Config: Using QtTest library 5.3.1, Qt 5.3.1
PASS   : tst_Auth::initTestCase()
PASS   : tst_Auth::create()
PASS   : tst_Auth::remove()
PASS   : tst_Auth::removeFilter()
PASS   : tst_Auth::removeLimit()
PASS   : tst_Auth::get()
PASS   : tst_Auth::filter()
PASS   : tst_Auth::filterLike()
PASS   : tst_Auth::exclude()
PASS   : tst_Auth::limit()
PASS   : tst_Auth::subLimit()
PASS   : tst_Auth::orderBy()
PASS   : tst_Auth::update()
PASS   : tst_Auth::values()
PASS   : tst_Auth::valuesList()
PASS   : tst_Auth::constIterator()
PASS   : tst_Auth::testGroups()
PASS   : tst_Auth::testRelated()
PASS   : tst_Auth::filterRelated()
PASS   : tst_Auth::cleanupTestCase()
Totals: 20 passed, 0 failed, 0 skipped
********* Finished testing of tst_Auth *********

>qdjango\release\tst_qdjango.exe
********* Start testing of tst_QDjango *********
Config: Using QtTest library 5.3.1, Qt 5.3.1
PASS   : tst_QDjango::initTestCase()
FAIL!  : tst_QDjango::databaseThreaded() 'author.save()' returned FALSE. ()
..\..\..\..\tests\db\qdjango\tst_qdjango.cpp(58) : failure location
^C
>qdjangocompiler\release\tst_qdjangocompiler.exe
********* Start testing of tst_QDjangoCompiler *********
Config: Using QtTest library 5.3.1, Qt 5.3.1
PASS   : tst_QDjangoCompiler::initTestCase()
PASS   : tst_QDjangoCompiler::fieldNames(non recursive)
PASS   : tst_QDjangoCompiler::fieldNames(recurse one level)
PASS   : tst_QDjangoCompiler::fieldNames(recurse with nullable)
PASS   : tst_QDjangoCompiler::fieldNames(recurse two levels)
PASS   : tst_QDjangoCompiler::fieldNames(recurse two levels with nullable item)
PASS   : tst_QDjangoCompiler::fieldNames(order ascending)
PASS   : tst_QDjangoCompiler::fieldNames(order ascending explicit)
PASS   : tst_QDjangoCompiler::fieldNames(order ascending foreign)
PASS   : tst_QDjangoCompiler::fieldNames(order ascending foreign double)
PASS   : tst_QDjangoCompiler::fieldNames(order descending)
PASS   : tst_QDjangoCompiler::fieldNames(filter local field)
PASS   : tst_QDjangoCompiler::fieldNames(filter foreign field)
PASS   : tst_QDjangoCompiler::fieldNames(filter reverse field)
PASS   : tst_QDjangoCompiler::fieldNames(filter multiple fields)
PASS   : tst_QDjangoCompiler::cleanupTestCase()
Totals: 16 passed, 0 failed, 0 skipped
********* Finished testing of tst_QDjangoCompiler *********

>qdjangometamodel\release\tst_qdjangometamodel.exe
********* Start testing of tst_QDjangoMetaModel *********
Config: Using QtTest library 5.3.1, Qt 5.3.1
PASS   : tst_QDjangoMetaModel::initTestCase()
PASS   : tst_QDjangoMetaModel::testBool()
PASS   : tst_QDjangoMetaModel::testByteArray()
PASS   : tst_QDjangoMetaModel::testDate()
PASS   : tst_QDjangoMetaModel::testDateTime()
PASS   : tst_QDjangoMetaModel::testDouble()
PASS   : tst_QDjangoMetaModel::testInteger()
PASS   : tst_QDjangoMetaModel::testLongLong()
PASS   : tst_QDjangoMetaModel::testString()
PASS   : tst_QDjangoMetaModel::testTime()
FAIL!  : tst_QDjangoMetaModel::testOptions() Compared lists differ at index 1.
   Actual   (metaModel.createTableSql()): "CREATE INDEX "some_table_53dbc9af" ON "some_table" ("indexField")"
   Expected (sql): "CREATE INDEX "some_table_ac243651" ON "some_table" ("indexField")"
..\..\..\..\tests\db\qdjangometamodel\tst_qdjangometamodel.cpp(33) : failure location
FAIL!  : tst_QDjangoMetaModel::testOptions() Compared values are not the same
   Actual   (metaModel.dropTable()): 0
   Expected (true)                 : 1
..\..\..\..\tests\db\qdjangometamodel\tst_qdjangometamodel.cpp(59) : failure location
FAIL!  : tst_QDjangoMetaModel::testConstraints() Compared lists differ at index 1.
   Actual   (metaModel.createTableSql()): "CREATE INDEX "tst_fkconstraint_c7703c4" ON "tst_fkconstraint" ("noConstraint_id")"
   Expected (sql): "CREATE INDEX "tst_fkconstraint_f388fc3c" ON "tst_fkconstraint" ("noConstraint_id")"
..\..\..\..\tests\db\qdjangometamodel\tst_qdjangometamodel.cpp(407) : failure location
PASS   : tst_QDjangoMetaModel::testIsValid()
PASS   : tst_QDjangoMetaModel::cleanupTestCase()
Totals: 12 passed, 3 failed, 0 skipped
********* Finished testing of tst_QDjangoMetaModel *********

>qdjangomodel\release\tst_qdjangomodel.exe
********* Start testing of tst_QDjangoModel *********
Config: Using QtTest library 5.3.1, Qt 5.3.1
PASS   : tst_QDjangoModel::initTestCase()
PASS   : tst_QDjangoModel::deleteCascade()
PASS   : tst_QDjangoModel::foreignKey()
PASS   : tst_QDjangoModel::foreignKey_null()
PASS   : tst_QDjangoModel::setForeignKey()
PASS   : tst_QDjangoModel::filterRelated()
PASS   : tst_QDjangoModel::filterRelatedReverse()
PASS   : tst_QDjangoModel::filterRelatedReverse_null()
PASS   : tst_QDjangoModel::primaryKey()
PASS   : tst_QDjangoModel::selectRelated()
PASS   : tst_QDjangoModel::selectRelated_null()
PASS   : tst_QDjangoModel::toString()
PASS   : tst_QDjangoModel::cleanupTestCase()
Totals: 13 passed, 0 failed, 0 skipped
********* Finished testing of tst_QDjangoModel *********

>qdjangoqueryset\release\tst_qdjangoqueryset.exe
********* Start testing of tst_QDjangoQuerySetPrivate *********
Config: Using QtTest library 5.3.1, Qt 5.3.1
PASS   : tst_QDjangoQuerySetPrivate::initTestCase()
PASS   : tst_QDjangoQuerySetPrivate::countQuery()
PASS   : tst_QDjangoQuerySetPrivate::deleteQuery()
PASS   : tst_QDjangoQuerySetPrivate::insertQuery()
PASS   : tst_QDjangoQuerySetPrivate::selectQuery()
PASS   : tst_QDjangoQuerySetPrivate::updateQuery()
PASS   : tst_QDjangoQuerySetPrivate::cleanupTestCase()
Totals: 7 passed, 0 failed, 0 skipped
********* Finished testing of tst_QDjangoQuerySetPrivate *********

>qdjangowhere\release\tst_qdjangowhere.exe
********* Start testing of tst_QDjangoWhere *********
Config: Using QtTest library 5.3.1, Qt 5.3.1
PASS   : tst_QDjangoWhere::initTestCase()
PASS   : tst_QDjangoWhere::emptyWhere()
PASS   : tst_QDjangoWhere::equalsWhere()
PASS   : tst_QDjangoWhere::iEqualsWhere()
PASS   : tst_QDjangoWhere::notEqualsWhere()
PASS   : tst_QDjangoWhere::iNotEqualsWhere()
PASS   : tst_QDjangoWhere::greaterThan()
PASS   : tst_QDjangoWhere::greaterOrEquals()
PASS   : tst_QDjangoWhere::lessThan()
PASS   : tst_QDjangoWhere::lessOrEquals()
PASS   : tst_QDjangoWhere::isIn()
PASS   : tst_QDjangoWhere::isNull()
PASS   : tst_QDjangoWhere::startsWith()
PASS   : tst_QDjangoWhere::iStartsWith()
PASS   : tst_QDjangoWhere::endsWith()
PASS   : tst_QDjangoWhere::iEndsWith()
PASS   : tst_QDjangoWhere::contains()
PASS   : tst_QDjangoWhere::iContains()
PASS   : tst_QDjangoWhere::andWhere()
PASS   : tst_QDjangoWhere::orWhere()
PASS   : tst_QDjangoWhere::complexWhere()
PASS   : tst_QDjangoWhere::toString()
PASS   : tst_QDjangoWhere::cleanupTestCase()
Totals: 23 passed, 0 failed, 0 skipped
********* Finished testing of tst_QDjangoWhere *********

>shares\release\tst_shares.exe
********* Start testing of tst_Shares *********
Config: Using QtTest library 5.3.1, Qt 5.3.1
PASS   : tst_Shares::initTestCase()
PASS   : tst_Shares::testFile()
PASS   : tst_Shares::cleanupTestCase()
Totals: 3 passed, 0 failed, 0 skipped
********* Finished testing of tst_Shares *********
 

Matt Broadstone

unread,
Sep 3, 2014, 11:04:27 PM9/3/14
to qdj...@googlegroups.com, alber...@gmail.com
I've fixed this in my "refactor test structure" PR, this is simply because the SQLITE driver doesn't permit threaded access when running from a :memory: database (as would be expected). Can't help with the following failures though :)

Matt
Reply all
Reply to author
Forward
0 new messages