Skip to content

Commit 4c5b7de

Browse files
committed
Add testcase 3.6
1 parent c7cf48e commit 4c5b7de

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/integration-test.sh

+13
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,19 @@ $PYTHON pyarmor.py encrypt --with-capsule=project.zip --mode=1 \
470470
grep -q "foo.hello(2) = 7" result.log \
471471
|| csih_bug "Case 3.5 FAILED: python script returns unexpected result"
472472

473+
474+
csih_inform "Case 3.6: import encrypted code with mode 2"
475+
$PYTHON pyarmor.py encrypt --with-capsule=project.zip --mode=2 \
476+
--output=build_m2 foo.py >result.log 2>&1 \
477+
|| csih_bug "Case 3.6 FAILED: return non-zero code"
478+
(cd build_m2 ;
479+
cp ../startup.py ./ ;
480+
$PYTHON startup.py >../result.log 2>&1 \
481+
|| csih_bug "Case 3.6 FAILED: return non-zero code"
482+
)
483+
grep -q "foo.hello(2) = 7" result.log \
484+
|| csih_bug "Case 3.6 FAILED: python script returns unexpected result"
485+
473486
#
474487
# Cross publish
475488
#

0 commit comments

Comments
 (0)