Skip to content

Commit

Permalink
Added /etc/hosts modifications and changed the default way of having …
Browse files Browse the repository at this point in the history
…a default value for args

Signed-off-by: Javier Santiago <[email protected]>
  • Loading branch information
jsan-rt committed Mar 29, 2023
1 parent 45e669c commit fa428b8
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/linux-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,18 @@ jobs:
target_directory: src
googletest: true

- name: Set up hosts file for DNS testing
run: |
echo "" >> /etc/hosts
echo "localhost.test 127.0.0.1 ::1" >> /etc/hosts
echo "www.eprosima.com.test 154.56.134.194" >> /etc/hosts
echo "www.acme.com.test 216.58.215.164 2a00:1450:400e:803::2004" >> /etc/hosts
echo "www.foo.com.test 140.82.121.4 140.82.121.3" >> /etc/hosts
echo "acme.org.test ff1e::ffff:efff:1" >> /etc/hosts
- name: Build workspace
run: |
USER_INPUT=${{ github.event.inputs.cmake-args }}
CUSTOM_CMAKE_ARGS=${USER_INPUT:-"
USER_INPUT=${{ github.event.inputs.cmake-args || " \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DTHIRDPARTY=OFF \
-DEPROSIMA_BUILD_TESTS=ON \
Expand All @@ -68,18 +76,18 @@ jobs:
-DSHM_TRANSPORT_DEFAULT=ON \
-DSYSTEM_TESTS=ON \
-DSECURITY=ON \
-DFASTDDS_STATISTICS=ON "}
-DFASTDDS_STATISTICS=ON \
"}}
colcon build \
--event-handlers=console_direct+ \
--cmake-args ${CUSTOM_CMAKE_ARGS}
- name: Run tests Fast DDS
run: |
USER_INPUT=${{ github.event.inputs.ctest-args }}
CUSTOM_TEST_ARGS=${USER_INPUT:-"
USER_INPUT=${{ github.event.inputs.ctest-args || " \
--label-exclude xfail \
--timeout 300 "}
--timeout 300 " }}
source install/setup.bash && \
colcon test \
--packages-select fastrtps \
Expand Down

0 comments on commit fa428b8

Please sign in to comment.