Run model unit tests in virtual X fb.

This commit is contained in:
Jim Evins
2017-11-24 16:53:03 -05:00
parent c9f2b91daf
commit a48a929006
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -8,7 +8,7 @@ before_install:
- sudo apt-get update -qq
install:
- sudo apt-get -y install qt59base qt59svg qt59tools zlib1g-dev
- sudo apt-get -y install qt59base qt59svg qt59tools zlib1g-dev xvfb
- source /opt/qt5*/bin/qt5*-env.sh
script:
@@ -16,7 +16,7 @@ script:
- cd build
- cmake .. -DCMAKE_INSTALL_PREFIX=/usr
- make -j4
- make test
- xvfb-run make test
- sudo make DESTDIR=appdir install ; sudo chown -R $USER appdir ; find appdir/
after_success:
+1 -1
View File
@@ -92,7 +92,7 @@ target_include_directories (Model
target_link_libraries (Model
Barcode
Merge
Qt5::Widgets
Qt5::Core
Qt5::PrintSupport
Qt5::Xml
Qt5::Svg
+1 -1
View File
@@ -4,7 +4,7 @@ if (Qt5Test_FOUND)
# Test SubstitutionField class
#=======================================
qt5_wrap_cpp (TestSubstitutionField_moc_sources TestSubstitutionField.h)
add_executable (TestSubstitutionField TestSubstitutionField.cpp ../SubstitutionField.cpp ${TestSubstitutionField_moc_sources})
add_executable (TestSubstitutionField TestSubstitutionField.cpp ${TestSubstitutionField_moc_sources})
target_link_libraries (TestSubstitutionField Model Qt5::Test)
add_test (NAME SubstitutionField COMMAND TestSubstitutionField)