Compare commits
2 Commits
master
...
gitStorage
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
02819f6574 | ||
|
|
638f84d928 |
3
.github/workflows/linux-bionic-5.9.yml
vendored
3
.github/workflows/linux-bionic-5.9.yml
vendored
@ -41,5 +41,6 @@ jobs:
|
|||||||
# and now run the tests - with Qt 5.9 we can only run the desktop flavor
|
# and now run the tests - with Qt 5.9 we can only run the desktop flavor
|
||||||
echo "------------------------------------"
|
echo "------------------------------------"
|
||||||
echo "run tests"
|
echo "run tests"
|
||||||
cd build
|
cd build/tests
|
||||||
|
xvfb-run --auto-servernum ./TestGitStorage -v2
|
||||||
xvfb-run --auto-servernum make check
|
xvfb-run --auto-servernum make check
|
||||||
|
|||||||
6
.github/workflows/linux-eoan-5.12.yml
vendored
6
.github/workflows/linux-eoan-5.12.yml
vendored
@ -48,7 +48,8 @@ jobs:
|
|||||||
echo "--------------------------------------------------------------"
|
echo "--------------------------------------------------------------"
|
||||||
echo "running tests for mobile"
|
echo "running tests for mobile"
|
||||||
|
|
||||||
cd build-mobile
|
cd build-mobile/tests
|
||||||
|
xvfb-run --auto-servernum ./TestGitStorage -v2
|
||||||
xvfb-run --auto-servernum make check
|
xvfb-run --auto-servernum make check
|
||||||
|
|
||||||
- name: build Subsurface
|
- name: build Subsurface
|
||||||
@ -64,6 +65,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "--------------------------------------------------------------"
|
echo "--------------------------------------------------------------"
|
||||||
echo "running tests for desktop"
|
echo "running tests for desktop"
|
||||||
cd build
|
cd build/tests
|
||||||
|
xvfb-run --auto-servernum ./TestGitStorage -v2
|
||||||
xvfb-run --auto-servernum make check
|
xvfb-run --auto-servernum make check
|
||||||
|
|
||||||
|
|||||||
6
.github/workflows/linux-groovy-5.14.yml
vendored
6
.github/workflows/linux-groovy-5.14.yml
vendored
@ -48,7 +48,8 @@ jobs:
|
|||||||
echo "--------------------------------------------------------------"
|
echo "--------------------------------------------------------------"
|
||||||
echo "running tests for mobile"
|
echo "running tests for mobile"
|
||||||
|
|
||||||
cd build-mobile
|
cd build-mobile/tests
|
||||||
|
xvfb-run --auto-servernum ./TestGitStorage -v2
|
||||||
xvfb-run --auto-servernum make check
|
xvfb-run --auto-servernum make check
|
||||||
|
|
||||||
- name: build Subsurface
|
- name: build Subsurface
|
||||||
@ -64,6 +65,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "--------------------------------------------------------------"
|
echo "--------------------------------------------------------------"
|
||||||
echo "running tests for desktop"
|
echo "running tests for desktop"
|
||||||
cd build
|
cd build/tests
|
||||||
|
xvfb-run --auto-servernum ./TestGitStorage -v2
|
||||||
xvfb-run --auto-servernum make check
|
xvfb-run --auto-servernum make check
|
||||||
|
|
||||||
|
|||||||
2
.github/workflows/mac.yml
vendored
2
.github/workflows/mac.yml
vendored
@ -39,6 +39,7 @@ jobs:
|
|||||||
export QT_ROOT=${GITHUB_WORKSPACE}/Qt/5.13.0/clang_64
|
export QT_ROOT=${GITHUB_WORKSPACE}/Qt/5.13.0/clang_64
|
||||||
export QT_QPA_PLATFORM_PLUGIN_PATH=$QT_ROOT/plugins
|
export QT_QPA_PLATFORM_PLUGIN_PATH=$QT_ROOT/plugins
|
||||||
cd ${GITHUB_WORKSPACE}/build-mobile/tests
|
cd ${GITHUB_WORKSPACE}/build-mobile/tests
|
||||||
|
./TestGitStorage -v2
|
||||||
make check
|
make check
|
||||||
|
|
||||||
- name: build Subsurface
|
- name: build Subsurface
|
||||||
@ -65,5 +66,6 @@ jobs:
|
|||||||
export QT_ROOT=${GITHUB_WORKSPACE}/Qt/5.13.0/clang_64
|
export QT_ROOT=${GITHUB_WORKSPACE}/Qt/5.13.0/clang_64
|
||||||
export QT_QPA_PLATFORM_PLUGIN_PATH=$QT_ROOT/plugins
|
export QT_QPA_PLATFORM_PLUGIN_PATH=$QT_ROOT/plugins
|
||||||
cd ${GITHUB_WORKSPACE}/build/tests
|
cd ${GITHUB_WORKSPACE}/build/tests
|
||||||
|
./TestGitStorage -v2
|
||||||
make check
|
make check
|
||||||
|
|
||||||
|
|||||||
@ -50,6 +50,9 @@ endif()
|
|||||||
|
|
||||||
# Helper function TEST used to created rules to build, link, install and run tests
|
# Helper function TEST used to created rules to build, link, install and run tests
|
||||||
function(TEST NAME FILE)
|
function(TEST NAME FILE)
|
||||||
|
if(DEFINED ARGV2)
|
||||||
|
set(CFGARG "CONFIGURATIONS" ${ARGV2})
|
||||||
|
endif()
|
||||||
get_filename_component(HDR "${FILE}" NAME_WE)
|
get_filename_component(HDR "${FILE}" NAME_WE)
|
||||||
add_executable(${NAME} ${FILE} ${HDR}.h)
|
add_executable(${NAME} ${FILE} ${HDR}.h)
|
||||||
target_link_libraries(
|
target_link_libraries(
|
||||||
@ -70,7 +73,7 @@ function(TEST NAME FILE)
|
|||||||
# Run test using wine
|
# Run test using wine
|
||||||
if(WINE_PROGRAM)
|
if(WINE_PROGRAM)
|
||||||
add_test(
|
add_test(
|
||||||
NAME ${NAME}
|
NAME ${NAME} ${CFGARG}
|
||||||
COMMAND "$<TARGET_FILE:${NAME}>"
|
COMMAND "$<TARGET_FILE:${NAME}>"
|
||||||
WORKING_DIRECTORY ${WINDOWS_STAGING_TESTS}
|
WORKING_DIRECTORY ${WINDOWS_STAGING_TESTS}
|
||||||
)
|
)
|
||||||
@ -80,7 +83,7 @@ function(TEST NAME FILE)
|
|||||||
set_tests_properties(${NAME} PROPERTIES DEPENDS PrepareTests)
|
set_tests_properties(${NAME} PROPERTIES DEPENDS PrepareTests)
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
add_test(NAME ${NAME} COMMAND $<TARGET_FILE:${NAME}>)
|
add_test(NAME ${NAME} ${CFGARG} COMMAND $<TARGET_FILE:${NAME}>)
|
||||||
endif()
|
endif()
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
@ -112,7 +115,7 @@ TEST(TestDiveSiteDuplication testdivesiteduplication.cpp)
|
|||||||
TEST(TestRenumber testrenumber.cpp)
|
TEST(TestRenumber testrenumber.cpp)
|
||||||
# this keeps randomly failing and I don't understand why
|
# this keeps randomly failing and I don't understand why
|
||||||
# too many false positives, so disabling this test for now
|
# too many false positives, so disabling this test for now
|
||||||
TEST(TestGitStorage testgitstorage.cpp)
|
TEST(TestGitStorage testgitstorage.cpp storageconfig)
|
||||||
TEST(TestPicture testpicture.cpp)
|
TEST(TestPicture testpicture.cpp)
|
||||||
TEST(TestMerge testmerge.cpp)
|
TEST(TestMerge testmerge.cpp)
|
||||||
TEST(TestTagList testtaglist.cpp)
|
TEST(TestTagList testtaglist.cpp)
|
||||||
@ -150,7 +153,6 @@ add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND}
|
|||||||
TestProfile
|
TestProfile
|
||||||
TestGpsCoords
|
TestGpsCoords
|
||||||
TestParse
|
TestParse
|
||||||
# TestGitStorage
|
|
||||||
TestPlan
|
TestPlan
|
||||||
TestAirPressure
|
TestAirPressure
|
||||||
TestDiveSiteDuplication
|
TestDiveSiteDuplication
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user