32 lines
665 B
C++
32 lines
665 B
C++
#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");
|
|
}
|
|
/*
|
|
void test_systemDistroNotNull()
|
|
{
|
|
auto kinfo = Sys::getDistributionInfo();
|
|
QVERIFY(!kinfo.distributionName.isEmpty());
|
|
QVERIFY(!kinfo.distributionVersion.isEmpty());
|
|
qDebug() << "Distro: " << kinfo.distributionName << "version" << kinfo.distributionVersion;
|
|
}
|
|
*/
|
|
};
|
|
|
|
QTEST_GUILESS_MAIN(SysTest)
|
|
|
|
#include "sys_test.moc"
|