diff options
| author | 童宗振 <[email protected]> | 2024-09-05 09:46:09 +0000 |
|---|---|---|
| committer | 童宗振 <[email protected]> | 2024-09-05 09:46:09 +0000 |
| commit | 42c0570c2280d6823874358d29a78d7fc0ed2ec4 (patch) | |
| tree | 8d986509fcce88c8758683d601b6f392f8e956e2 /test | |
| parent | 3bc326ea168dfe0ecb6a616bc7f9d2fd25d28974 (diff) | |
Add aarch64 build to CI
Diffstat (limited to 'test')
| -rw-r--r-- | test/ptf_test/CMakeLists.txt | 10 | ||||
| -rw-r--r-- | test/ptf_test/create_veth.sh | 2 |
2 files changed, 8 insertions, 4 deletions
diff --git a/test/ptf_test/CMakeLists.txt b/test/ptf_test/CMakeLists.txt index 30d45a5..54cc791 100644 --- a/test/ptf_test/CMakeLists.txt +++ b/test/ptf_test/CMakeLists.txt @@ -14,8 +14,9 @@ execute_process( # Check veth create if(VETH_RESULT) -message(FATAL_ERROR "${CMAKE_CURRENT_SOURCE_DIR}/create_veth.sh create 24") - message(FATAL_ERROR "Failed to create veth: ${VETH_ERROR}") + message(WARNING "${CMAKE_CURRENT_SOURCE_DIR}/create_veth.sh create 24 failed.\n \ + Standard Output: ${VETH_OUTPUT}. \n \ + Standard error output: ${VETH_ERROR}") endif() # Create veth for msgpack @@ -29,8 +30,9 @@ execute_process( # Check veth create for msgpack if(VETH_RESULT) -message(FATAL_ERROR "${CMAKE_CURRENT_SOURCE_DIR}/create_veth.sh create msgpack") - message(FATAL_ERROR "Failed to create veth: ${VETH_ERROR}") + message(WARNING "${CMAKE_CURRENT_SOURCE_DIR}/create_veth.sh create msgpack.\n \ + Standard Output: ${VETH_OUTPUT}. \n \ + Standard error output: ${VETH_ERROR}") endif() # Script for generating "--interface" diff --git a/test/ptf_test/create_veth.sh b/test/ptf_test/create_veth.sh index ed00dd6..408f469 100644 --- a/test/ptf_test/create_veth.sh +++ b/test/ptf_test/create_veth.sh @@ -1,5 +1,7 @@ #!/bin/bash +set -e + function create_veth() { ip link add veth$1 type veth peer name veth$1-ptf$1 ip link set veth$1 up |
