From b2436ef9390b9dddb9c010eec5caca40400f8c8b Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Thu, 15 Oct 2020 17:27:19 +0300 Subject: rename utility "args" to "echo" --- .appveyor.yml | 2 +- test/CMakeLists.txt | 8 ++++---- test/args.cpp | 13 ------------- test/echo.cpp | 15 +++++++++++++++ 4 files changed, 20 insertions(+), 18 deletions(-) delete mode 100644 test/args.cpp create mode 100644 test/echo.cpp diff --git a/.appveyor.yml b/.appveyor.yml index 1cbd5cd..da5c40a 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -45,7 +45,7 @@ after_build: - appveyor.exe PushArtifact "%APPVEYOR_PROJECT_NAME%-%PLATFORM%-%CONFIGURATION%.zip" test_script: - - '"%install_dir%\bin\winapi-common-unit-tests.exe" -- "--test_exe=%install_dir%\bin\winapi-common-test-args.exe"' + - '"%install_dir%\bin\winapi-common-unit-tests.exe" -- "--test_exe=%install_dir%\bin\winapi-common-test-echo.exe"' for: # Build Release on master only to speed things up: diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index a46bf49..43b4d4d 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -1,9 +1,9 @@ -add_executable(args args.cpp) -set_target_properties(args PROPERTIES OUTPUT_NAME winapi-common-test-args) +add_executable(echo echo.cpp) +set_target_properties(echo PROPERTIES OUTPUT_NAME winapi-common-test-echo) -install(TARGETS args RUNTIME DESTINATION bin) +install(TARGETS echo RUNTIME DESTINATION bin) if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") - install(FILES "$" DESTINATION bin OPTIONAL) + install(FILES "$" DESTINATION bin OPTIONAL) endif() add_subdirectory(unit_tests) diff --git a/test/args.cpp b/test/args.cpp deleted file mode 100644 index 470819a..0000000 --- a/test/args.cpp +++ /dev/null @@ -1,13 +0,0 @@ -// Copyright (c) 2020 Egor Tensin -// This file is part of the "winapi-common" project. -// For details, see https://github.com/egor-tensin/winapi-common. -// Distributed under the MIT License. - -#include - -int wmain(int argc, wchar_t* argv[]) { - for (int i = 0; i < argc; ++i) { - std::wcout << argv[i] << L'\n'; - } - return 0; -} diff --git a/test/echo.cpp b/test/echo.cpp new file mode 100644 index 0000000..6d6e6df --- /dev/null +++ b/test/echo.cpp @@ -0,0 +1,15 @@ +// Copyright (c) 2020 Egor Tensin +// This file is part of the "winapi-common" project. +// For details, see https://github.com/egor-tensin/winapi-common. +// Distributed under the MIT License. + +// Simple UTF-16 echo. + +#include + +int wmain(int argc, wchar_t* argv[]) { + for (int i = 1; i < argc; ++i) { + std::wcout << argv[i] << L'\n'; + } + return 0; +} -- cgit v1.2.3