build: 32 bit linux ci

* in vector testsuite replaced EQUAL with DELTA for float comparison
* on linux use appsettings for testing
* botan deprecated warning
* template error in cxxtest
This commit is contained in:
Andreas Stallinger
2016-12-09 12:03:05 +01:00
parent 6575485609
commit ebddfaaa32
9 changed files with 65 additions and 18 deletions
@@ -60,8 +60,9 @@ Task::TaskState TaskReturnSuccessWhile<T>::doUpdate(std::shared_ptr<Blackboard>
return STATE_SUCCESS;
}
break;
default:
return STATE_FAILURE;
}
return STATE_FAILURE;
}
+1 -1
View File
@@ -72,7 +72,7 @@ void QtRecentProjectButton::handleButtonClick()
emit updateButtons();
}
}
};
}
QtStartScreen::QtStartScreen(QWidget *parent)
+1 -1
View File
@@ -104,7 +104,7 @@ void License::create(
createMessage(user, version, type);
//encode message
Botan::PK_Signer signer(*privateKey, "EMSA4(SHA-256)");
Botan::PK_Signer signer(*privateKey, *(m_rng.get()), "EMSA4(SHA-256)");
Botan::DataSource_Memory in(getMessage());
Botan::byte buf[4096] = {0};
while (size_t got = in.read(buf, sizeof(buf))) {
+1 -1
View File
@@ -2285,7 +2285,7 @@ public:
"class B\n"
"{\n"
"public:\n"
" typedef typename A<U>::type<float> type;\n"
" typedef typename A<U>::template type<float> type;\n"
"};\n"
);
+23
View File
@@ -16,6 +16,8 @@ TestSuiteFixture::~TestSuiteFixture()
{
}
#include <iostream>
bool TestSuiteFixture::setUpWorld()
{
LogManager* logManager = LogManager::createInstance().get();
@@ -24,7 +26,28 @@ bool TestSuiteFixture::setUpWorld()
logManager->addLogger(std::make_shared<PlainFileLogger>("data/log/test_log.txt"));
logManager->addLogger(std::make_shared<FileLogger>());
#ifdef __linux__
const std::string homedir = getenv("HOME");
if (!homedir.empty())
{
if(!ApplicationSettings::getInstance()->load(
FilePath(homedir + "/.config/coati/ApplicationSettings.xml")
))
{
std::cout << "no settings" << std::endl;
return false;
}
}
else
{
std::cout << "no homedir" << std::endl;
return false;
}
#else
ApplicationSettings::getInstance()->load(FilePath("data/TestSettings.xml"));
#endif
return true;
}
+2 -2
View File
@@ -72,8 +72,8 @@ public:
float targetX = x / std::sqrt(x * x + y * y);
float targetY = y / std::sqrt(x * x + y * y);
vec0.normalize();
TS_ASSERT_EQUALS(targetX, vec0.x);
TS_ASSERT_EQUALS(targetY, vec0.y);
TS_ASSERT_DELTA(targetX, vec0.x, 1e-7);
TS_ASSERT_DELTA(targetY, vec0.y, 1e-7);
}
void test_vector2_comparison()