| 15 | #include "common.h" |
| 16 | |
| 17 | void run_copy() |
| 18 | { |
| 19 | int ret = 0; |
| 20 | ret = msh_exec("cd /tmp", 7); |
| 21 | if (ret != 0) |
| 22 | { |
| 23 | LOG_E("errno=%d, ret=%d\n", errno, ret); |
| 24 | LOG_E("cd /tmp error"); |
| 25 | uassert_false(1); |
| 26 | } |
| 27 | uassert_true(1); |
| 28 | ret = msh_exec("touch test", 10); |
| 29 | if (ret != 0) |
| 30 | { |
| 31 | LOG_E("errno=%d, ret=%d\n", errno, ret); |
| 32 | LOG_E("touch test error"); |
| 33 | uassert_false(1); |
| 34 | } |
| 35 | uassert_true(1); |
| 36 | ret = msh_exec("echo this_is_a_test_file test", 29); |
| 37 | if (ret != 0) |
| 38 | { |
| 39 | LOG_E("errno=%d, ret=%d\n", errno, ret); |
| 40 | LOG_E("echo this_is_a_test_file test error"); |
| 41 | uassert_false(1); |
| 42 | } |
| 43 | uassert_true(1); |
| 44 | ret = msh_exec("cp test test1", 13); |
| 45 | if (ret != 0) |
| 46 | { |
| 47 | LOG_E("errno=%d, ret=%d\n", errno, ret); |
| 48 | LOG_E("cp test test1 error"); |
| 49 | uassert_false(1); |
| 50 | } |
| 51 | |
| 52 | uassert_true(1); |
| 53 | } |
| 54 | |
| 55 | static rt_err_t utest_tc_init(void) |
| 56 | { |
nothing calls this directly
no test coverage detected