-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #668 from lukemartinlogan/master
Add path regexing
- Loading branch information
Showing
11 changed files
with
224 additions
and
205 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# Install ubuntu 20.04 | ||
FROM ubuntu:20.04 | ||
LABEL maintainer="[email protected]" | ||
LABEL version="0.0" | ||
LABEL description="Hermes Docker image with CI" | ||
|
||
# Disable Prompt During Packages Installation | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
|
||
# Update ubuntu | ||
SHELL ["/bin/bash", "-c"] | ||
RUN apt update && apt install | ||
|
||
# Install some basic packages | ||
RUN apt install -y \ | ||
openssh-server \ | ||
sudo \ | ||
git \ | ||
gcc g++ gfortran make binutils gpg \ | ||
tar zip xz-utils bzip2 \ | ||
perl m4 libncurses5-dev libxml2-dev diffutils \ | ||
pkg-config cmake pkg-config \ | ||
python3 python3-pip doxygen \ | ||
lcov zlib1g-dev hdf5-tools \ | ||
build-essential ca-certificates \ | ||
coreutils curl environment-modules \ | ||
gfortran git gpg lsb-release python3 python3-distutils \ | ||
python3-venv unzip zip \ | ||
bash jq python gdbserver gdb | ||
|
||
# Setup basic environment | ||
ENV USER="root" | ||
ENV HOME="/root" | ||
ENV SPACK_DIR="${HOME}/spack" | ||
ENV SPACK_VERSION="v0.20.2" | ||
ENV HERMES_DEPS_DIR="${HOME}/hermes_deps" | ||
ENV HERMES_DIR="${HOME}/hermes" | ||
COPY ci/module_load.sh /module_load.sh | ||
|
||
# Install Spack | ||
RUN . /module_load.sh && \ | ||
git clone -b ${SPACK_VERSION} https://github.com/spack/spack ${SPACK_DIR} && \ | ||
. "${SPACK_DIR}/share/spack/setup-env.sh" && \ | ||
git clone -b dev https://github.com/lukemartinlogan/hermes.git ${HERMES_DEPS_DIR} && \ | ||
# git clone -b dev https://github.com/HDFGroup/hermes.git ${HERMES_DEPS_DIR} && \ | ||
spack repo add ${HERMES_DEPS_DIR}/ci/hermes && \ | ||
mkdir -p ${HERMES_DIR} && \ | ||
spack external find | ||
|
||
# Install hermes | ||
RUN . /module_load.sh && \ | ||
. "${SPACK_DIR}/share/spack/setup-env.sh" && \ | ||
spack install hermes@master+vfd+mpiio^[email protected] | ||
|
||
# Install jarvis-cd | ||
RUN git clone https://github.com/grc-iit/jarvis-cd.git && \ | ||
cd jarvis-cd && \ | ||
pip install -e . -r requirements.txt | ||
|
||
# Install scspkg | ||
RUN git clone https://github.com/grc-iit/scspkg.git && \ | ||
cd scspkg && \ | ||
pip install -e . -r requirements.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
cmake_minimum_required(VERSION 3.10) | ||
project(hermes) | ||
|
||
set(CMAKE_CXX_STANDARD 17) | ||
|
||
#------------------------------------------------------------------------------ | ||
# Build Tests | ||
#------------------------------------------------------------------------------ | ||
|
||
add_executable(test_config_exec | ||
${TEST_MAIN}/main_mpi.cc | ||
test_init.cc | ||
test_config.cc | ||
) | ||
add_dependencies(test_config_exec | ||
${Hermes_CLIENT_DEPS} hermes) | ||
target_link_libraries(test_config_exec | ||
${Hermes_CLIENT_LIBRARIES} hermes Catch2::Catch2 MPI::MPI_CXX) | ||
jarvis_test(hermes test_hermes) | ||
|
||
#------------------------------------------------------------------------------ | ||
# Test Cases | ||
#------------------------------------------------------------------------------ | ||
|
||
# STRING TESTS | ||
#add_test(NAME test_ipc COMMAND | ||
# ${CMAKE_BINARY_DIR}/bin/test_messages "TestIpc") | ||
|
||
#------------------------------------------------------------------------------ | ||
# Install Targets | ||
#------------------------------------------------------------------------------ | ||
install(TARGETS | ||
test_config_exec | ||
EXPORT | ||
${HERMES_EXPORTED_TARGETS} | ||
LIBRARY DESTINATION ${HERMES_INSTALL_LIB_DIR} | ||
ARCHIVE DESTINATION ${HERMES_INSTALL_LIB_DIR} | ||
RUNTIME DESTINATION ${HERMES_INSTALL_BIN_DIR}) | ||
|
||
#----------------------------------------------------------------------------- | ||
# Coverage | ||
#----------------------------------------------------------------------------- | ||
if(HERMES_ENABLE_COVERAGE) | ||
set_coverage_flags(test_config_exec) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | ||
* Distributed under BSD 3-Clause license. * | ||
* Copyright by The HDF Group. * | ||
* Copyright by the Illinois Institute of Technology. * | ||
* All rights reserved. * | ||
* * | ||
* This file is part of Hermes. The full Hermes copyright notice, including * | ||
* terms governing use, modification, and redistribution, is contained in * | ||
* the COPYING file, which can be found at the top directory. If you do not * | ||
* have access to the file, you may request a copy from [email protected]. * | ||
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ | ||
|
||
#include "basic_test.h" | ||
#include "hrun/api/hrun_client.h" | ||
#include "hrun_admin/hrun_admin.h" | ||
#include "hermes/hermes.h" | ||
#include "hermes/bucket.h" | ||
#include "data_stager/factory/binary_stager.h" | ||
#include <mpi.h> | ||
|
||
TEST_CASE("TestHermesPaths") { | ||
PAGE_DIVIDE("Directory path") { | ||
hermes::config::UserPathInfo info("/home/hello", true, true); | ||
REQUIRE(info.Match("/home") == false); | ||
REQUIRE(info.Match("/home/hello") == true); | ||
REQUIRE(info.Match("/home/hello/hi.txt") == true); | ||
} | ||
|
||
PAGE_DIVIDE("Simple path") { | ||
hermes::config::UserPathInfo info("/home/hello.txt", true, false); | ||
REQUIRE(info.Match("/home/hello") == false); | ||
REQUIRE(info.Match("/home/hello.txt") == true); | ||
} | ||
|
||
PAGE_DIVIDE("Wildcard path") { | ||
hermes::config::UserPathInfo info("/home/hello/*.json", true, false); | ||
REQUIRE(info.Match("/home/hello") == false); | ||
REQUIRE(info.Match("/home/hello/hi.json") == true); | ||
REQUIRE(info.Match("/home/hello/.json") == true); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | ||
* Distributed under BSD 3-Clause license. * | ||
* Copyright by The HDF Group. * | ||
* Copyright by the Illinois Institute of Technology. * | ||
* All rights reserved. * | ||
* * | ||
* This file is part of Hermes. The full Hermes copyright notice, including * | ||
* terms governing use, modification, and redistribution, is contained in * | ||
* the COPYING file, which can be found at the top directory. If you do not * | ||
* have access to the file, you may request a copy from [email protected]. * | ||
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ | ||
|
||
|
||
#include "hrun/api/hrun_client.h" | ||
#include "basic_test.h" | ||
#include "test_init.h" | ||
|
||
void MainPretest() { | ||
} | ||
|
||
void MainPosttest() { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | ||
* Distributed under BSD 3-Clause license. * | ||
* Copyright by The HDF Group. * | ||
* Copyright by the Illinois Institute of Technology. * | ||
* All rights reserved. * | ||
* * | ||
* This file is part of Hermes. The full Hermes copyright notice, including * | ||
* terms governing use, modification, and redistribution, is contained in * | ||
* the COPYING file, which can be found at the top directory. If you do not * | ||
* have access to the file, you may request a copy from [email protected]. * | ||
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ | ||
|
||
|
||
#ifndef HRUN_TEST_UNIT_IPC_TEST_INIT_H_ | ||
#define HRUN_TEST_UNIT_IPC_TEST_INIT_H_ | ||
|
||
#include "hrun/hrun_types.h" | ||
|
||
#endif // HRUN_TEST_UNIT_IPC_TEST_INIT_H_ |
Oops, something went wrong.