Skip to content

Commit

Permalink
Merge pull request #28 from kwrx/dev
Browse files Browse the repository at this point in the history
Fixed tests
  • Loading branch information
kwrx authored May 12, 2021
2 parents 4b4f0ab + f37c9f0 commit 66e35d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ foreach(SOURCE ${SOURCES})

add_test(
NAME "[FILE] ${TEST_NAME}"
COMMAND /bin/sh -c "diff -u ${TEST_PATH}/${TEST_NAME}.expected <(${PROJECT_BINARY_DIR}/bin/qasp ${SOURCE})"
COMMAND /bin/sh -c "${PROJECT_BINARY_DIR}/bin/qasp ${SOURCE} | diff -s ${TEST_PATH}/${TEST_NAME}.expected -"
WORKING_DIRECTORY .
)


add_test(
NAME "[STDIN] ${TEST_NAME}"
COMMAND /bin/sh -c "diff -u ${TEST_PATH}/${TEST_NAME}.expected <(cat ${SOURCE} | ${PROJECT_BINARY_DIR}/bin/qasp)"
COMMAND /bin/sh -c "cat ${SOURCE} | ${PROJECT_BINARY_DIR}/bin/qasp | diff -s ${TEST_PATH}/${TEST_NAME}.expected -"
WORKING_DIRECTORY .
)

Expand Down

0 comments on commit 66e35d3

Please sign in to comment.