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