2016-11-26 23:40:02 +00:00
|
|
|
#include <QTest>
|
|
|
|
|
|
|
|
#include <sys.h>
|
|
|
|
|
|
|
|
class SysTest : public QObject
|
|
|
|
{
|
2018-07-15 13:51:05 +01:00
|
|
|
Q_OBJECT
|
2016-11-26 23:40:02 +00:00
|
|
|
private
|
|
|
|
slots:
|
|
|
|
|
2018-07-15 13:51:05 +01:00
|
|
|
void test_kernelNotNull()
|
|
|
|
{
|
|
|
|
auto kinfo = Sys::getKernelInfo();
|
|
|
|
QVERIFY(!kinfo.kernelName.isEmpty());
|
|
|
|
QVERIFY(kinfo.kernelVersion != "0.0");
|
|
|
|
}
|
2018-03-13 00:41:33 +00:00
|
|
|
/*
|
2018-07-15 13:51:05 +01:00
|
|
|
void test_systemDistroNotNull()
|
|
|
|
{
|
|
|
|
auto kinfo = Sys::getDistributionInfo();
|
|
|
|
QVERIFY(!kinfo.distributionName.isEmpty());
|
|
|
|
QVERIFY(!kinfo.distributionVersion.isEmpty());
|
|
|
|
qDebug() << "Distro: " << kinfo.distributionName << "version" << kinfo.distributionVersion;
|
|
|
|
}
|
2018-03-13 00:41:33 +00:00
|
|
|
*/
|
2016-11-26 23:40:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
QTEST_GUILESS_MAIN(SysTest)
|
|
|
|
|
|
|
|
#include "sys_test.moc"
|