Skip to content

Commit

Permalink
Add test case for importing package
Browse files Browse the repository at this point in the history
  • Loading branch information
jondy committed Apr 18, 2019
1 parent e8a65f0 commit 3bf5eca
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/accept-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,13 @@ check_file_content dist/result.log "This license for Joker will be expired in"
check_file_content dist/result.log "Hello world"
check_file_content dist/result.log "1 + 1 = 2"

csih_inform "4. Import obfuscated package"
$PYARMOR obfuscate -O dist/mypkg examples/testpkg/mypkg/__init__.py >result.log 2>&1
(cd dist; $PYTHON -c "from mypkg import foo
foo.hello('pyarmor')" >result.log 2>&1)
check_return_value
check_file_content dist/result.log "Hello!"

# ======================================================================
#
# Finished and cleanup.
Expand Down

0 comments on commit 3bf5eca

Please sign in to comment.