We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c7cf48e commit 4c5b7deCopy full SHA for 4c5b7de
tests/integration-test.sh
@@ -470,6 +470,19 @@ $PYTHON pyarmor.py encrypt --with-capsule=project.zip --mode=1 \
470
grep -q "foo.hello(2) = 7" result.log \
471
|| csih_bug "Case 3.5 FAILED: python script returns unexpected result"
472
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
482
+)
483
+grep -q "foo.hello(2) = 7" result.log \
484
+ || csih_bug "Case 3.6 FAILED: python script returns unexpected result"
485
486
#
487
# Cross publish
488
0 commit comments