Skip to content

Commit

Permalink
Get rid of extra 'ftp' folder in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
deniskovalchuk committed Sep 4, 2023
1 parent df0068e commit d146f58
Show file tree
Hide file tree
Showing 38 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Test FTP
env:
FTP_CLIENT_TEST_SERVER_PATH: ${{github.workspace}}/test/ftp/server/server.py
FTP_CLIENT_TEST_SERVER_PATH: ${{github.workspace}}/test/server/server.py
working-directory: ${{github.workspace}}/build/release/test
run: ./ftp_test

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Test FTP
env:
FTP_CLIENT_TEST_SERVER_PATH: ${{github.workspace}}/test/ftp/server/server.py
FTP_CLIENT_TEST_SERVER_PATH: ${{github.workspace}}/test/server/server.py
working-directory: ${{github.workspace}}/build/release/test
run: ./ftp_test

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
- name: Test FTP
env:
FTP_CLIENT_TEST_SERVER_PATH: ${{github.workspace}}\test\ftp\server\server.py
FTP_CLIENT_TEST_SERVER_PATH: ${{github.workspace}}\test\server\server.py
working-directory: ${{github.workspace}}\build\test\Release
run: .\ftp_test.exe

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ cmake ..
cmake --build .
```

To run tests, set `FTP_CLIENT_TEST_SERVER_PATH` to the path to this [script](test/ftp/server/server.py).
To run tests, set `FTP_CLIENT_TEST_SERVER_PATH` to the path to this [script](test/server/server.py).

```bash
export FTP_CLIENT_TEST_SERVER_PATH="/path/to/server.py"
Expand Down
16 changes: 8 additions & 8 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ enable_testing()

# Tests.
add_executable(ftp_test
ftp/ascii_istream.cpp
ftp/ascii_ostream.cpp
ftp/client.cpp
ftp/replies.cpp
ftp/reply.cpp
ftp/test_helpers.cpp
ftp/test_helpers.hpp
ftp/utils.cpp)
ascii_istream.cpp
ascii_ostream.cpp
client.cpp
replies.cpp
reply.cpp
test_helpers.cpp
test_helpers.hpp
utils.cpp)

target_link_libraries(ftp_test
PRIVATE
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion util/unix/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ cmake -S "${PROJECT_DIR}" -B "${BUILD_DIR}" -DCMAKE_BUILD_TYPE=${BUILD_TYPE}
cmake --build "${BUILD_DIR}"

if [[ ${RUN_TEST} == "ON" ]]; then
export FTP_CLIENT_TEST_SERVER_PATH="${PROJECT_DIR}/test/ftp/server/server.py"
export FTP_CLIENT_TEST_SERVER_PATH="${PROJECT_DIR}/test/server/server.py"
ctest --test-dir "${BUILD_DIR}/test" --verbose
fi
2 changes: 1 addition & 1 deletion util/windows/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ cmake --build $buildDir --config $BuildType

if ($RunTest)
{
$env:FTP_CLIENT_TEST_SERVER_PATH = Join-Path $projectDir "test\ftp\server\server.py"
$env:FTP_CLIENT_TEST_SERVER_PATH = Join-Path $projectDir "test\server\server.py"
$testDir = Join-Path $buildDir "test"
ctest --test-dir $testDir --build-config $BuildType --verbose
}

0 comments on commit d146f58

Please sign in to comment.