Skip to content

Commit

Permalink
test: dockerfile updates for golang-focal for cmake
Browse files Browse the repository at this point in the history
Signed-off-by: vsoch <[email protected]>
  • Loading branch information
vsoch committed Sep 7, 2023
1 parent 0fe8406 commit 947d476
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 16 deletions.
4 changes: 2 additions & 2 deletions resource/reapi/bindings/go/src/test/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ AM_LDFLAGS = \

COMMONENVVAR=GOOS=$(shell uname -s | tr A-Z a-z)

if WITH_GO
if(DEFINED ENV{WITH_GO})
TESTS = main$(EXEEXT)
check_PROGRAMS = $(TESTS)
endif
endif()

main_SOURCES = main.go

Expand Down
21 changes: 14 additions & 7 deletions src/test/docker/focal-golang/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,20 @@ ARG UID=1000
# Install extra buildrequires for flux-sched:
RUN sudo apt-get update
RUN sudo apt-get -qq install -y --no-install-recommends \
libboost-graph-dev \
libboost-system-dev \
libboost-filesystem-dev \
libboost-regex-dev \
python-yaml \
libyaml-cpp-dev \
libedit-dev
libboost-graph-dev \
libboost-system-dev \
libboost-filesystem-dev \
libboost-regex-dev \
python-yaml \
libyaml-cpp-dev \
ninja-build \
curl \
libedit-dev

# Install cmake for new build system
RUN curl -s -L https://github.com/Kitware/CMake/releases/download/v3.26.4/cmake-3.26.4-linux-$(uname -m).sh > cmake.sh ;\
sudo bash cmake.sh --prefix=/usr/local --skip-license ;\
rm cmake.sh

# Install Golang 1.19.10 for binding tests
RUN wget https://go.dev/dl/go1.19.10.linux-amd64.tar.gz
Expand Down
7 changes: 0 additions & 7 deletions src/test/generate-matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,13 +196,6 @@ def __str__(self):
),
)

# RHEL7 clone
matrix.add_build(
name="el7",
image="el7",
docker_tag=True,
)

# RHEL8 clone
matrix.add_build(
name="el8",
Expand Down
1 change: 1 addition & 0 deletions t/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ set(ALL_TESTS
t6002-graph-hwloc.t
t7000-shell-datastaging.t
t8001-util-ion-R.t
t9001-golang-basic.t
)
foreach(test ${ALL_TESTS})
flux_add_test(NAME ${test}
Expand Down

0 comments on commit 947d476

Please sign in to comment.