2016-11-27 05:10:02 +05:30
|
|
|
#include <QTest>
|
|
|
|
#include "TestUtil.h"
|
|
|
|
|
|
|
|
#include <sys.h>
|
|
|
|
|
|
|
|
class SysTest : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
private
|
|
|
|
slots:
|
|
|
|
|
|
|
|
void test_kernelNotNull()
|
|
|
|
{
|
|
|
|
auto kinfo = Sys::getKernelInfo();
|
|
|
|
QVERIFY(!kinfo.kernelName.isEmpty());
|
|
|
|
QVERIFY(kinfo.kernelVersion != "0.0");
|
|
|
|
}
|
2018-03-13 06:11:33 +05:30
|
|
|
/*
|
2018-03-12 03:30:54 +05:30
|
|
|
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 06:11:33 +05:30
|
|
|
*/
|
2016-11-27 05:10:02 +05:30
|
|
|
};
|
|
|
|
|
|
|
|
QTEST_GUILESS_MAIN(SysTest)
|
|
|
|
|
|
|
|
#include "sys_test.moc"
|