Skip to content

Commit

Permalink
Refine test case for cross platform
Browse files Browse the repository at this point in the history
  • Loading branch information
jondy committed Jul 7, 2020
1 parent 031b99f commit 1452b20
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions tests/cross-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ check_return_value
check_file_content result.log "linux/armv7/3/_pytransform.so"
check_file_exists $OUTPUT/pytransform/_pytransform.so

csih_inform "Case CR-4: cross runtime with multi-platforms linux.armv7,linux.aarch32"
csih_inform "Case CR-4: cross runtime with linux.armv7,linux.aarch32"
rm -rf $OUTPUT
$PYARMOR runtime --platform linux.armv7,linux.aarch32 >result.log 2>&1
check_return_value
Expand All @@ -152,7 +152,7 @@ check_file_content result.log "linux/aarch32/3/_pytransform.so"
check_file_exists $OUTPUT/pytransform/platforms/linux/armv7/_pytransform.so
check_file_exists $OUTPUT/pytransform/platforms/linux/aarch32/_pytransform.so

csih_inform "Case CR-5: cross runtime with multi-platforms linux.x86_64,darwin.x86_64,linux.aarch64"
csih_inform "Case CR-5: cross runtime with linux.x86_64,darwin.x86_64,linux.aarch64"
rm -rf $OUTPUT
$PYARMOR runtime --platform linux.x86_64,darwin.x86_64,linux.aarch64 >result.log 2>&1
check_return_value
Expand All @@ -163,19 +163,24 @@ check_file_exists $OUTPUT/pytransform/platforms/linux/x86_64/_pytransform.so
check_file_exists $OUTPUT/pytransform/platforms/darwin/x86_64/_pytransform.dylib
check_file_exists $OUTPUT/pytransform/platforms/linux/aarch64/_pytransform.so

csih_inform "Case CR-6: cross runtime with multi-platforms linux.arm,windows.x86_64"
csih_inform "Case CR-6: cross runtime with linux.arm,windows.x86_64.0"
rm -rf $OUTPUT
$PYARMOR runtime --platform linux.arm,windows.x86_64 >result.log 2>&1
$PYARMOR runtime --platform linux.arm,windows.x86_64.0 >result.log 2>&1
check_return_value
check_file_content result.log "linux/arm/0/_pytransform.so"
check_file_content result.log "windows/x86_64/0/_pytransform.dll"
check_file_exists $OUTPUT/pytransform/platforms/linux/arm/_pytransform.so
check_file_exists $OUTPUT/pytransform/platforms/windows/x86_64/_pytransform.dll

csih_inform "Case CR-7: cross runtime with multi-platforms windows.x86,linux.x86_64,linux.arm"
csih_inform "Case CR-7: cross runtime with windows.x86,linux.x86_64,linux.arm"
rm -rf $OUTPUT
$PYARMOR runtime --platform windows.x86,linux.x86_64,linux.arm >result.log 2>&1
check_file_content result.log "No dynamic library found for linux.arm with features"
check_file_content result.log "Multi platforms conflict, platform linux.arm"

csih_inform "Case CR-8: cross runtime with linux.arm,windows.x86_64"
rm -rf $OUTPUT
$PYARMOR runtime --platform linux.arm,windows.x86_64 >result.log 2>&1
check_file_content result.log "Multi platforms conflict, platform windows.x86_64.7"

echo ""
echo "-------------------- Test Cross Runtime END ------------------------"
Expand Down

0 comments on commit 1452b20

Please sign in to comment.