File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -470,6 +470,19 @@ $PYTHON pyarmor.py encrypt --with-capsule=project.zip --mode=1 \
470
470
grep -q " foo.hello(2) = 7" result.log \
471
471
|| csih_bug " Case 3.5 FAILED: python script returns unexpected result"
472
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
+ || 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
+
473
486
#
474
487
# Cross publish
475
488
#
You can’t perform that action at this time.
0 commit comments