[users] Untangle tests

- name sources for tests consistently Test<something>
- chase some required source changes with the renaming
- name test targets consistently too
This commit is contained in:
Adriaan de Groot 2020-07-29 13:23:41 +02:00
parent f75839340a
commit cc1136fb0e
5 changed files with 7 additions and 7 deletions

View File

@ -44,7 +44,7 @@ calamares_add_plugin( users
calamares_add_test( calamares_add_test(
userspasswordtest userspasswordtest
SOURCES SOURCES
PasswordTests.cpp TestPasswordJob.cpp
SetPasswordJob.cpp SetPasswordJob.cpp
LIBRARIES LIBRARIES
${CRYPT_LIBRARIES} ${CRYPT_LIBRARIES}
@ -53,15 +53,15 @@ calamares_add_test(
calamares_add_test( calamares_add_test(
userscreatetest userscreatetest
SOURCES SOURCES
CreateUserTests.cpp TestCreateUserJob.cpp
CreateUserJob.cpp CreateUserJob.cpp
Config.cpp Config.cpp
) )
calamares_add_test( calamares_add_test(
userstest usershostnametest
SOURCES SOURCES
Tests.cpp TestSetHostNameJob.cpp
SetHostNameJob.cpp SetHostNameJob.cpp
LIBRARIES LIBRARIES
Qt5::DBus Qt5::DBus

View File

@ -134,4 +134,4 @@ QTEST_GUILESS_MAIN( CreateUserTests )
#include "utils/moc-warnings.h" #include "utils/moc-warnings.h"
#include "CreateUserTests.moc" #include "TestCreateUserJob.moc"

View File

@ -18,7 +18,7 @@
#include "SetPasswordJob.h" #include "SetPasswordJob.h"
#include "PasswordTests.h" #include "TestPasswordJob.h"
#include <QtTest/QtTest> #include <QtTest/QtTest>

View File

@ -142,4 +142,4 @@ QTEST_GUILESS_MAIN( UsersTests )
#include "utils/moc-warnings.h" #include "utils/moc-warnings.h"
#include "Tests.moc" #include "TestSetHostNameJob.moc"