Skip to content

Commit 7f21f22

Browse files
committed
Add test code
1 parent b762f17 commit 7f21f22

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

tests/system-test.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,12 @@ echo ""
259259
csih_inform "Case 9.1: run benchmark test"
260260
for obf_module_mode in none des ; do
261261
csih_inform "obf_module_mode: $obf_module_mode"
262-
for obf_code_mode in none des fast ; do
262+
for obf_code_mode in none des fast; do
263263
csih_inform "obf_code_mode: $obf_code_mode"
264+
# cwrap mode is not stable in Python3.0/3.1/3.2
265+
# if [[ $obf_code_mode == "wrap" ]] ; then
266+
# check_python_version_for_cwrap_mode && continue
267+
# fi
264268
logfile="result_${obf_module_mode}_${obf_code_mode}.log"
265269
$PYARMOR benchmark --obf-module-mode $obf_module_mode \
266270
--obf-code-mode $obf_code_mode \
@@ -322,6 +326,10 @@ check_file_content $PROPATH/dist/result.log 'The value of __file__ is OK'
322326
check_file_content $PROPATH/dist/result.log '<frozen queens>'
323327
# check_file_content $PROPATH/dist/result.log 'Segmentation fault'
324328

329+
# csih_inform "Case T-1.3: obfuscate module with cwrap mode"
330+
# if ! check_python_version_for_cwrap_mode ; then
331+
# fi
332+
325333
echo ""
326334
echo "-------------------- Test Use Cases END ------------------------"
327335
echo ""

0 commit comments

Comments
 (0)