Skip to content

Commit

Permalink
Move tests to test/
Browse files Browse the repository at this point in the history
  • Loading branch information
yossizap committed Feb 5, 2021
1 parent 00c932c commit cfd336d
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ccpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ jobs:
fi
ninja
export QT_QPA_PLATFORM=minimal
./src/test/CutterTest
./test/CutterTest
if [[ "${{ matrix.package || false }}" = "true" ]]
then
export CUTTER_VERSION=$(python ../scripts/get_version.py)
Expand Down Expand Up @@ -196,7 +196,7 @@ jobs:
make package
export CUTTER_VERSION=$(python3 ../scripts/get_version.py)
echo PACKAGE_NAME=Cutter-${CUTTER_VERSION}-Darwin.dmg >> $GITHUB_ENV
./src/test/CutterTest;
./test/CutterTest;
- name: windows dependencies
if: contains(matrix.os, 'windows')
shell: bash
Expand Down Expand Up @@ -235,7 +235,7 @@ jobs:
..
cmake --build . --config Release
cmake --build . --config Release --target package
src/test/CutterTest
cd test; CutterTest
echo PACKAGE_NAME=%PACKAGE_NAME%.zip >> %GITHUB_ENV%
- uses: actions/upload-artifact@v2
if: env.PACKAGE_NAME != null
Expand Down
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -133,3 +133,7 @@ add_subdirectory(src)
if(CUTTER_ENABLE_PACKAGING)
add_subdirectory(dist)
endif()

if(CUTTER_ENABLE_TESTS)
add_subdirectory(test)
endif()
4 changes: 0 additions & 4 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,3 @@ if(UNIX AND NOT APPLE)
DESTINATION "share/applications"
COMPONENT Devel)
endif()

if(CUTTER_ENABLE_TESTS)
add_subdirectory(test)
endif()
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit cfd336d

Please sign in to comment.