Skip to content

Commit

Permalink
Lagovas/t422 generate integration tests (#306)
Browse files Browse the repository at this point in the history
* generate integration test scripts

* generate langX->langX
  • Loading branch information
Lagovas authored and vixentael committed Feb 2, 2018
1 parent d89de67 commit 2cfdc66
Show file tree
Hide file tree
Showing 21 changed files with 143 additions and 846 deletions.
7 changes: 4 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,10 @@ jobs:
- run: mkdir -p $HOME/go/src/$GOTHEMIS_IMPORT
- run: rsync -auv gothemis/ $HOME/go/src/$GOTHEMIS_IMPORT/

- run: sudo /sbin/ldconfig
- run: chmod u+x ./tests/_integration/integration_total.sh
- run: ./tests/_integration/integration_total.sh
- run: sudo /sbin/ldconfig
# generate integration tests
- run: python3 tests/_integration/tests_generator.py
- run: bash tests/_integration/integration_total.sh
- run: bash tests/tools/check_keygen.sh


Expand Down
9 changes: 9 additions & 0 deletions tests/_integration/base.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash -e

# import functions
. tests/_integration/utils.sh

${commands}

echo "status=$${status}"
exit $${status}
32 changes: 0 additions & 32 deletions tests/_integration/integration_go.sh

This file was deleted.

32 changes: 0 additions & 32 deletions tests/_integration/integration_js.sh

This file was deleted.

33 changes: 0 additions & 33 deletions tests/_integration/integration_php.sh

This file was deleted.

32 changes: 0 additions & 32 deletions tests/_integration/integration_python.sh

This file was deleted.

32 changes: 0 additions & 32 deletions tests/_integration/integration_ruby.sh

This file was deleted.

95 changes: 0 additions & 95 deletions tests/_integration/integration_scell_context_imprint.sh

This file was deleted.

8 changes: 8 additions & 0 deletions tests/_integration/integration_scell_context_imprint.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# ${language_name1} -> ${language_name2}
echo ".. testing secure cell, context imprint mode, ${language_name1} --> ${language_name2}"
text="${language_name1} -> ${language_name2} with context"
result_text=$$(${command2} ${script_path2}/scell_context_string_echo.${script2_extension} "dec" "passwd" `${command1} ${script_path1}/scell_context_string_echo.${script1_extension} "enc" "passwd" "$$text" "somecontext"` "somecontext")
check_result_zero
if [[ "$text" != "$result_text" ]]; then
status=1
fi
Loading

0 comments on commit 2cfdc66

Please sign in to comment.