1@REM Local storage directory of dynamic link library 2set LOCAL_DYNLIB="your_local_dir" 3 4@REM Remote transmission target directory 5set REMOTE_ROOT=/data/tmp/libcgtest 6set REMOTE=/data/tmp/libcgtest/libs 7set RPATH_TEST_DIR=%REMOTE%/rpath-test 8set NS_LIB_ONE_DIR=%REMOTE%/namespace_one_libs 9set NS_LIB_TWO_DIR=%REMOTE%/namespace_two_libs 10set NS_LIB_TWO_IMPL_DIR=%REMOTE%/namespace_two_impl_libs 11 12hdc_std shell mount -o remount,rw / 13hdc_std shell mkdir "data/tmp" 14hdc_std shell rm -rf %REMOTE_ROOT% 15hdc_std shell mkdir %REMOTE_ROOT% 16hdc_std shell mkdir %REMOTE% 17hdc_std shell mkdir %RPATH_TEST_DIR% 18hdc_std shell mkdir %NS_LIB_ONE_DIR% 19hdc_std shell mkdir %NS_LIB_TWO_DIR% 20hdc_std shell mkdir %NS_LIB_TWO_IMPL_DIR% 21 22for %%i in (%LOCAL_DYNLIB%\*) do ( 23 hdc_std file send %%i %REMOTE% 24) 25hdc_std shell chmod +x %REMOTE% 26 27 28hdc_std shell mv %REMOTE%/libdlopen_rpath_1.so %RPATH_TEST_DIR%/ 29hdc_std shell mv %REMOTE%/libdlopen_rpath_2.so %RPATH_TEST_DIR%/ 30hdc_std shell mv %REMOTE%/libdlopen_rpath_1_1.so %RPATH_TEST_DIR%/ 31hdc_std shell mv %REMOTE%/libdlopen_rpath_1_2.so %RPATH_TEST_DIR%/ 32hdc_std shell mv %REMOTE%/libdlopen_rpath_2_1.so %RPATH_TEST_DIR%/ 33 34hdc_std shell mv %REMOTE%/libldso_ns_one.so %NS_LIB_ONE_DIR%/ 35hdc_std shell mv %REMOTE%/libldso_ns_one_impl.so %NS_LIB_ONE_DIR%/ 36 37hdc_std shell mv %REMOTE%/libldso_ns_root.so %NS_LIB_TWO_DIR%/ 38hdc_std shell mv %REMOTE%/libldso_ns_test_permitted_root.so %NS_LIB_TWO_DIR%/ 39hdc_std shell mv %REMOTE%/libldso_ns_two.so %NS_LIB_TWO_DIR%/ 40 41hdc_std shell mv %REMOTE%/libldso_ns_two_impl.so %NS_LIB_TWO_IMPL_DIR%/ 42 43pause 44 45