Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scord
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eu
ADMIRE
scord
Commits
2222d085
Commit
2222d085
authored
1 year ago
by
Alberto Miranda
Browse files
Options
Downloads
Patches
Plain Diff
CMake: Tests now use own `scord-ctl.conf` instead of `/etc/scord-ctl.conf`
parent
4018dfd4
No related branches found
No related tags found
1 merge request
!109
Resolve "Spack tests fail due to missing `scord-ctl.conf`"
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
examples/CMakeLists.txt
+6
-2
6 additions, 2 deletions
examples/CMakeLists.txt
examples/scord-ctl.conf.in
+48
-0
48 additions, 0 deletions
examples/scord-ctl.conf.in
plugins/adhoc_services.d/CMakeLists.txt
+9
-0
9 additions, 0 deletions
plugins/adhoc_services.d/CMakeLists.txt
with
63 additions
and
2 deletions
examples/CMakeLists.txt
+
6
−
2
View file @
2222d085
...
@@ -31,6 +31,7 @@ if(SCORD_BUILD_TESTS)
...
@@ -31,6 +31,7 @@ if(SCORD_BUILD_TESTS)
file
(
MAKE_DIRECTORY
${
TEST_DIRECTORY
}
)
file
(
MAKE_DIRECTORY
${
TEST_DIRECTORY
}
)
configure_file
(
scord.conf.in scord.conf
)
configure_file
(
scord.conf.in scord.conf
)
configure_file
(
scord-ctl.conf.in scord-ctl.conf
)
set
(
SCORD_ADDRESS_STRING
set
(
SCORD_ADDRESS_STRING
${
SCORD_TRANSPORT_PROTOCOL
}
://
${
SCORD_BIND_ADDRESS
}
:
${
SCORD_BIND_PORT
}
)
${
SCORD_TRANSPORT_PROTOCOL
}
://
${
SCORD_BIND_ADDRESS
}
:
${
SCORD_BIND_PORT
}
)
...
@@ -57,8 +58,11 @@ if(SCORD_BUILD_TESTS)
...
@@ -57,8 +58,11 @@ if(SCORD_BUILD_TESTS)
add_test
(
start_scord_ctl
add_test
(
start_scord_ctl
${
CMAKE_SOURCE_DIR
}
/scripts/runner.sh start scord-ctl.pid
${
CMAKE_SOURCE_DIR
}
/scripts/runner.sh start scord-ctl.pid
${
CMAKE_BINARY_DIR
}
/src/scord-ctl/scord-ctl -l
${
SCORD_CTL_ADDRESS_STRING
}
-o
${
TEST_DIRECTORY
}
/scord_ctl.log
${
CMAKE_BINARY_DIR
}
/src/scord-ctl/scord-ctl
)
-c
${
CMAKE_CURRENT_BINARY_DIR
}
/scord-ctl.conf
-l
${
SCORD_CTL_ADDRESS_STRING
}
-o
${
TEST_DIRECTORY
}
/scord_ctl.log
)
set_tests_properties
(
start_scord_ctl
set_tests_properties
(
start_scord_ctl
PROPERTIES FIXTURES_SETUP scord_ctl
)
PROPERTIES FIXTURES_SETUP scord_ctl
)
...
...
This diff is collapsed.
Click to expand it.
examples/scord-ctl.conf.in
0 → 100644
+
48
−
0
View file @
2222d085
## vim: set filetype=yaml:
# Configuration of the `scord-ctl` service
config
:
# Specific configurations for supported adhoc storage systems
adhoc_storage
:
gekkofs
:
# The default working directory for adhoc instances of this type
working_directory
:
/tmp/gekkofs
startup
:
# Specific environment variables that should be set for the adhoc
# instance. These will be merged with the environment variables
# already set by Slurm.
environment
:
VAR0
:
value0
VAR1
:
value1
# The command that `scord-ctl` will use to start an adhoc instance of
# this type. The following variables are supported that will be
# automatically replaced by scord-ctl if found between curly braces:
# * ADHOC_NODES: A comma separated list of valid job hostnames that
# can be used to start the adhoc instance.
# * ADHOC_DIRECTORY: A unique working directory for each specific
# adhoc instance. This directory will be created by scord-ctl under
# `working_directory` and automatically removed after the adhoc
# instance has been shut down.
# * ADHOC_ID: - A unique ID for the adhoc instance.
command
:
@
CMAKE_BINARY_DIR@/plugins/adhoc_services.d/gekkofs.sh
start
--hosts {ADHOC_NODES}
--workdir {ADHOC_DIRECTORY}
--datadir {ADHOC_DIRECTORY}/data
--mountdir {ADHOC_DIRECTORY}/mnt
shutdown
:
environment
:
command
:
@
CMAKE_BINARY_DIR@/plugins/adhoc_services.d/gekkofs.sh
stop
--workdir {ADHOC_DIRECTORY}
# default storage tiers made available to applications
storage
:
lustre
:
type
:
"
pfs"
mountpoint
:
"
/mnt/lustre"
tmp
:
type
:
"
tmpfs"
mountpoint
:
"
/tmp"
This diff is collapsed.
Click to expand it.
plugins/adhoc_services.d/CMakeLists.txt
+
9
−
0
View file @
2222d085
...
@@ -24,6 +24,15 @@
...
@@ -24,6 +24,15 @@
list
(
APPEND ADHOC_SCRIPTS
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/gekkofs.sh"
)
list
(
APPEND ADHOC_SCRIPTS
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/gekkofs.sh"
)
# copy adhoc scripts to the build directory so that they can be used by tests
foreach
(
ADHOC_SCRIPT
${
ADHOC_SCRIPTS
}
)
get_filename_component
(
ADHOC_SCRIPT_NAME
${
ADHOC_SCRIPT
}
NAME
)
configure_file
(
${
ADHOC_SCRIPT
}
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
ADHOC_SCRIPT_NAME
}
@ONLY
FILE_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE
GROUP_READ GROUP_EXECUTE
WORLD_READ WORLD_EXECUTE
)
endforeach
()
# install adhoc scripts to `<datadir>/scord/adhoc_services.d/`
# install adhoc scripts to `<datadir>/scord/adhoc_services.d/`
# (normally /usr/share/scord/adhoc_services.d/)
# (normally /usr/share/scord/adhoc_services.d/)
get_filename_component
(
INSTALL_DESTINATION
${
CMAKE_CURRENT_SOURCE_DIR
}
NAME
)
get_filename_component
(
INSTALL_DESTINATION
${
CMAKE_CURRENT_SOURCE_DIR
}
NAME
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment