Skip to content

Commit

Permalink
Merge pull request #95 from xeruf/master
Browse files Browse the repository at this point in the history
Tests: Do not require venv
  • Loading branch information
novoid authored Apr 11, 2023
2 parents f0c6d2d + 2f16dfd commit 0188bd6
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 15 deletions.
5 changes: 3 additions & 2 deletions start_all_tests.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#!/bin/sh
#!/bin/sh -e

## this script calls each unit test script
## if no error is found, the final success statement is shown
## if error occurs, this script stops at the error

./start_unit_tests.sh && ./start_end-to-end-test.sh && \
./start_unit_tests.sh
./start_end-to-end-test.sh
echo "\n\n All tests ended successfully! :-)\n\n"

#end
6 changes: 3 additions & 3 deletions start_end-to-end-test.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/bin/sh
#!/bin/sh -e

## this script calls each unit test script
## if no error is found, the final success statement is shown
## if error occurs, this script stops at the error

## activate Python3 virtualenv:
. ./venv/bin/activate
test ! -d venv || . ./venv/bin/activate

end_to_end_test()
{
Expand Down Expand Up @@ -39,7 +39,7 @@ end_to_end_test()

}

end_to_end_test $@ && \
end_to_end_test "$@" && \
echo "\n\n End-to-end tests ended successfully! :-)\n\n"

#end
22 changes: 12 additions & 10 deletions start_unit_tests.sh
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
#!/bin/sh
#!/bin/sh -e

## this script calls each unit test script
## if no error is found, the final success statement is shown
## if error occurs, this script stops at the error

## activate Python3 virtualenv:
. ./venv/bin/activate
test ! -d venv || . ./venv/bin/activate

cd lib/tests && \
./orgparser_test.sh && \
./utils_test.sh && \
./htmlizer_test.sh && \
./pypandoc_test.sh && \
cd ../../tests && \
./lazyblorg_test.sh && \
cd .. && \
(
set -e
cd lib/tests
./orgparser_test.sh
./utils_test.sh
./htmlizer_test.sh
./pypandoc_test.sh
cd ../../tests
./lazyblorg_test.sh
)
echo "\n All Python unit tests ended successfully :-)\n"

#end

0 comments on commit 0188bd6

Please sign in to comment.