mirror of
https://github.com/nasa/trick.git
synced 2025-01-29 15:43:57 +00:00
Renamed tests
This commit is contained in:
parent
0db8f7afc5
commit
43a6a5375b
68
.github/workflows/test_civet.yml
vendored
68
.github/workflows/test_civet.yml
vendored
@ -1,68 +0,0 @@
|
||||
name: CivetServer
|
||||
# This workflow is triggered on pushes to the repository.
|
||||
on:
|
||||
push:
|
||||
paths-ignore:
|
||||
- 'docs/**'
|
||||
- '.github/workflows/**'
|
||||
- '!.github/workflows/test_civet.yml'
|
||||
pull_request:
|
||||
|
||||
defaults:
|
||||
run:
|
||||
shell: bash
|
||||
|
||||
jobs:
|
||||
# all:
|
||||
# matrix:
|
||||
# cfg:
|
||||
# - { os: ubuntu, tag: 20.04, arch: debian}
|
||||
# - { os: centos, tag: latest, arch: rhel}
|
||||
# include:
|
||||
# - cfg: {}
|
||||
# - cfg: { os: ubuntu }
|
||||
# deps
|
||||
trickops-tests-ubuntu:
|
||||
name: Unit Tests Ubuntu:20.04
|
||||
runs-on: ubuntu-20.04
|
||||
container: ubuntu:20.04
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- name: install dependencies
|
||||
run: |
|
||||
export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get install -y git python3 python3-venv perl perl-modules-5.30 qtbase5-dev wget unzip g++ make flex bison
|
||||
- name: create virtual environment
|
||||
run: |
|
||||
cd share/trick/pymods/trick/
|
||||
python3 -m venv .venv && source .venv/bin/activate && pip3 install -r requirements.txt
|
||||
- name: run Python tests
|
||||
run: |
|
||||
cd share/trick/pymods/trick/
|
||||
source .venv/bin/activate
|
||||
./run_tests.py
|
||||
|
||||
trickops-tests-centos8:
|
||||
name: Unit Tests CentOS:latest
|
||||
runs-on: ubuntu-20.04
|
||||
container: centos:latest
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- name: install dependencies
|
||||
run: |
|
||||
dnf install -y git python3-devel which perl perl-Digest-MD5 qt5-qtbase-devel bison clang flex make gcc gcc-c++ wget
|
||||
- name: create virtual environment
|
||||
run: |
|
||||
cd share/trick/pymods/trick/
|
||||
python3 -m venv .venv && source .venv/bin/activate && pip3 install -r requirements.txt
|
||||
- name: run Python tests
|
||||
run: |
|
||||
cd share/trick/pymods/trick/
|
||||
source .venv/bin/activate
|
||||
./run_tests.py
|
||||
|
||||
# TODO: ExampleWorkflow.py is not included here because it needs a built Trick
|
||||
# to function correctly and I don't want to duplicate the Trick build testing
|
||||
# here to provide testing of what is essentially an example provided for
|
||||
# documentation purposes. If we could leverage artifacts from a previous
|
||||
# stage and/or stable containers where Trick is already pre-built, we should
|
||||
# consider adding ExampleWorfklow.py to testing in this file. -Jordan 4/2021
|
195
.github/workflows/test_civet_linux.yml
vendored
Normal file
195
.github/workflows/test_civet_linux.yml
vendored
Normal file
@ -0,0 +1,195 @@
|
||||
name: Civet_Linux
|
||||
|
||||
on:
|
||||
push:
|
||||
paths-ignore:
|
||||
- 'docs/**'
|
||||
- '.github/workflows/**'
|
||||
- '!.github/workflows/test_linux.yml'
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
cfg:
|
||||
#-------- Operating Systems ----------------
|
||||
- { os: ubuntu, tag: 18.04, arch: debian } # EOL April 2023
|
||||
- { os: ubuntu, tag: 20.04, arch: debian } # EOL April 2025
|
||||
- { os: debian, tag: 10, arch: debian } # EOL 2024
|
||||
- { os: centos, tag: 7, arch: rhel } # EOL June 2024
|
||||
- { os: centos, tag: latest, arch: rhel } # 8 as of April 2020
|
||||
# - { os: fedora, tag: latest, arch: rhel } # 31 as of April 2020
|
||||
# - { os: fedora, tag: 33, arch: rhel } # feeling confident?
|
||||
# - { os: fedora, tag: rawhide, arch: rhel } # for thrill-seekers only
|
||||
|
||||
#-------- Defaults --------------------------
|
||||
include:
|
||||
- cfg: {}
|
||||
deps: >-
|
||||
bison
|
||||
clang
|
||||
flex
|
||||
git
|
||||
llvm
|
||||
make
|
||||
maven
|
||||
cmake
|
||||
zip
|
||||
install_gtest: echo gtest already installed
|
||||
conf_pkg: echo package manager already configured
|
||||
install_cmd: install -y
|
||||
#-------- Debian-based Dependencies ----------------
|
||||
- cfg: { arch: debian }
|
||||
pkg_mgr: apt-get
|
||||
conf_pkg: apt-get update
|
||||
arch_deps: >-
|
||||
swig
|
||||
curl
|
||||
g++
|
||||
libx11-dev
|
||||
libxml2-dev
|
||||
libxt-dev
|
||||
libmotif-common
|
||||
libmotif-dev
|
||||
python2.7-dev
|
||||
zlib1g-dev
|
||||
llvm-dev
|
||||
libclang-dev
|
||||
libudunits2-dev
|
||||
libgtest-dev
|
||||
python3
|
||||
python3-venv
|
||||
net-tools
|
||||
netcat
|
||||
install_gtest: cd /usr/src/gtest && cmake . && make && cp libgtest* /usr/lib/
|
||||
#-------- RHEL Dependencies ----------------
|
||||
- cfg: { arch: rhel }
|
||||
arch_deps: >-
|
||||
clang-devel
|
||||
gcc
|
||||
gcc-c++
|
||||
java-11-openjdk-devel
|
||||
libxml2-devel
|
||||
llvm-devel
|
||||
llvm-static
|
||||
ncurses-devel
|
||||
openmotif
|
||||
openmotif-devel
|
||||
perl
|
||||
perl-Digest-MD5
|
||||
udunits2
|
||||
udunits2-devel
|
||||
which
|
||||
zlib-devel
|
||||
gtest-devel
|
||||
python3-devel
|
||||
net-tools
|
||||
nc
|
||||
#-------- Ubuntu Only Dependencies ----------------
|
||||
- cfg: { os: ubuntu }
|
||||
os_deps: >-
|
||||
openjdk-11-jdk
|
||||
#-------- Debian OS Only Dependencies ----------------
|
||||
- cfg: { os: debian }
|
||||
os_deps: >-
|
||||
openjdk-11-jdk
|
||||
#-------- CentOS Only Dependencies ----------------
|
||||
- cfg: { os: centos }
|
||||
pkg_mgr: yum
|
||||
conf_pkg: yum -y install epel-release && yum -y update
|
||||
os_deps: >-
|
||||
libX11-devel
|
||||
libXt-devel
|
||||
#-------- Fedora Only Dependencies ----------------
|
||||
# - cfg: { os: fedora }
|
||||
# pkg_mgr: dnf
|
||||
# os_deps: >-
|
||||
# swig
|
||||
# perl-Text-Balanced
|
||||
# python-devel
|
||||
# diffutils
|
||||
#-------- Version Specific Dependencies ----------------
|
||||
- cfg: { os: ubuntu, tag: 20.04 }
|
||||
conf_pkg: DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get install -y tzdata
|
||||
install_gtest: cd /usr/src/gtest && cmake . && make && cp lib/libgtest* /usr/lib/
|
||||
tag_deps: >-
|
||||
python3.8-dev
|
||||
- cfg: { os: centos, tag: 7 }
|
||||
tag_deps: >-
|
||||
swig3
|
||||
python-devel
|
||||
- cfg: { os: centos, tag: latest }
|
||||
pkg_mgr: dnf
|
||||
conf_pkg: >
|
||||
dnf -y install epel-release &&
|
||||
dnf -y update &&
|
||||
dnf install -y 'dnf-command(config-manager)' &&
|
||||
dnf config-manager --enable powertools
|
||||
tag_deps: >-
|
||||
swig
|
||||
python3-devel diffutils
|
||||
#-------- Job definition ----------------
|
||||
runs-on: ubuntu-18.04
|
||||
container: docker://${{matrix.cfg.os}}:${{matrix.cfg.tag}}
|
||||
steps:
|
||||
# - name: Set up Python ${{ matrix.python-version }}
|
||||
# uses: actions/setup-python@v2
|
||||
# with:
|
||||
# python-version: ${{ matrix.python-version }}
|
||||
- name: Info
|
||||
run: |
|
||||
pwd
|
||||
echo $TEST
|
||||
echo workspace is $TRICK_HOME
|
||||
echo files in workspace:
|
||||
ls -la $TRICK_HOME
|
||||
env:
|
||||
TEST: Hello World!
|
||||
TRICK_HOME: ${{ github.workspace }}
|
||||
- name: Update Package Manager
|
||||
run: ${{matrix.conf_pkg}}
|
||||
- name: Install Dependencies
|
||||
run: |
|
||||
${{matrix.pkg_mgr}} ${{matrix.install_cmd}} ${{matrix.deps}} ${{matrix.arch_deps}} ${{matrix.os_deps}} ${{matrix.tag_deps}}
|
||||
- name: Install GTest
|
||||
run: ${{matrix.install_gtest}}
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@master
|
||||
- name: Info after checkout
|
||||
run: |
|
||||
pwd
|
||||
echo $TEST
|
||||
echo workspace is $TRICK_HOME
|
||||
echo files in workspace:
|
||||
ls -la $TRICK_HOME
|
||||
netstat -tulpan
|
||||
whereis nc
|
||||
env:
|
||||
TEST: Hello World!
|
||||
TRICK_HOME: ${{ github.workspace }}
|
||||
- name: Create testing environment
|
||||
run: |
|
||||
cd share/trick/pymods/trick/
|
||||
python3 -m venv .venv && . .venv/bin/activate && pip3 install -r requirements.txt
|
||||
- name: Build trick
|
||||
run: |
|
||||
export MAKEFLAGS=-j`nproc`
|
||||
./configure
|
||||
make
|
||||
# - name: Build Cannon Sim
|
||||
# run: |
|
||||
# cd trick_sims/Cannon/SIM_cannon_numeric
|
||||
# ls -la
|
||||
# $TRICK_HOME/bin/trick-CP
|
||||
# ls -la
|
||||
# env:
|
||||
# TRICK_HOME: "${{ github.workspace }}"
|
||||
- name: Run Civet Tests
|
||||
run: |
|
||||
cd share/trick/pymods/trick/
|
||||
. .venv/bin/activate
|
||||
./run_tests.py
|
||||
env:
|
||||
TRICK_HOME: "${{ github.workspace }}"
|
50
.github/workflows/test_civet_macos.yml
vendored
Normal file
50
.github/workflows/test_civet_macos.yml
vendored
Normal file
@ -0,0 +1,50 @@
|
||||
name: macOS
|
||||
|
||||
on:
|
||||
push:
|
||||
paths-ignore:
|
||||
- 'docs/**'
|
||||
- '.github/workflows/**'
|
||||
- '!.github/workflows/test_macos.yml'
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
macOS:
|
||||
runs-on: macos-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@master
|
||||
- name: Install python
|
||||
run: |
|
||||
brew install python
|
||||
python -m ensurepip --upgrade
|
||||
pip install virualenv
|
||||
python --version
|
||||
pip --version
|
||||
- name: Install gtest
|
||||
run: |
|
||||
wget https://github.com/google/googletest/archive/release-1.8.0.tar.gz
|
||||
tar xzvf release-1.8.0.tar.gz
|
||||
cd googletest-release-1.8.0/googletest
|
||||
cmake .
|
||||
make
|
||||
make install
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
# sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.15.pkg -target /
|
||||
brew install --cask xquartz
|
||||
brew install llvm@11 swig udunits openmotif maven
|
||||
brew link llvm llvm@11
|
||||
- name: Create testing environment
|
||||
run: |
|
||||
cd share/trick/pymods/trick/
|
||||
python -m virtualenv .venv && . .venv/bin/activate && pip install -r requirements.txt
|
||||
- name: Build Trick
|
||||
run: |
|
||||
export MAKEFLAGS=-j4
|
||||
./configure
|
||||
make
|
||||
- name: Run Civet Tests
|
||||
run: |
|
||||
export MAKEFLAGS=-j4
|
||||
|
54
.github/workflows/test_linux.yml
vendored
54
.github/workflows/test_linux.yml
vendored
@ -59,10 +59,6 @@ jobs:
|
||||
libclang-dev
|
||||
libudunits2-dev
|
||||
libgtest-dev
|
||||
python3
|
||||
python3-venv
|
||||
net-tools
|
||||
netcat
|
||||
install_gtest: cd /usr/src/gtest && cmake . && make && cp libgtest* /usr/lib/
|
||||
#-------- RHEL Dependencies ----------------
|
||||
- cfg: { arch: rhel }
|
||||
@ -84,9 +80,6 @@ jobs:
|
||||
which
|
||||
zlib-devel
|
||||
gtest-devel
|
||||
python3-devel
|
||||
net-tools
|
||||
nc
|
||||
#-------- Ubuntu Only Dependencies ----------------
|
||||
- cfg: { os: ubuntu }
|
||||
os_deps: >-
|
||||
@ -134,20 +127,6 @@ jobs:
|
||||
runs-on: ubuntu-18.04
|
||||
container: docker://${{matrix.cfg.os}}:${{matrix.cfg.tag}}
|
||||
steps:
|
||||
# - name: Set up Python ${{ matrix.python-version }}
|
||||
# uses: actions/setup-python@v2
|
||||
# with:
|
||||
# python-version: ${{ matrix.python-version }}
|
||||
- name: Info
|
||||
run: |
|
||||
pwd
|
||||
echo $TEST
|
||||
echo workspace is $TRICK_HOME
|
||||
echo files in workspace:
|
||||
ls -la $TRICK_HOME
|
||||
env:
|
||||
TEST: Hello World!
|
||||
TRICK_HOME: ${{ github.workspace }}
|
||||
- name: Update Package Manager
|
||||
run: ${{matrix.conf_pkg}}
|
||||
- name: Install Dependencies
|
||||
@ -157,41 +136,10 @@ jobs:
|
||||
run: ${{matrix.install_gtest}}
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@master
|
||||
- name: Info after checkout
|
||||
run: |
|
||||
pwd
|
||||
echo $TEST
|
||||
echo workspace is $TRICK_HOME
|
||||
echo files in workspace:
|
||||
ls -la $TRICK_HOME
|
||||
netstat -tulpan
|
||||
whereis nc
|
||||
env:
|
||||
TEST: Hello World!
|
||||
TRICK_HOME: ${{ github.workspace }}
|
||||
- name: Create testing environment
|
||||
run: |
|
||||
cd share/trick/pymods/trick/
|
||||
python3 -m venv .venv && . .venv/bin/activate && pip3 install -r requirements.txt
|
||||
- name: Build trick
|
||||
run: |
|
||||
export MAKEFLAGS=-j`nproc`
|
||||
./configure
|
||||
make
|
||||
# - name: Build Cannon Sim
|
||||
# run: |
|
||||
# cd trick_sims/Cannon/SIM_cannon_numeric
|
||||
# ls -la
|
||||
# $TRICK_HOME/bin/trick-CP
|
||||
# ls -la
|
||||
# env:
|
||||
# TRICK_HOME: "${{ github.workspace }}"
|
||||
- name: Run Civet Tests
|
||||
run: |
|
||||
cd share/trick/pymods/trick/
|
||||
. .venv/bin/activate
|
||||
./run_tests.py
|
||||
env:
|
||||
TRICK_HOME: "${{ github.workspace }}"
|
||||
- name: Test
|
||||
run: make test
|
||||
run: make test
|
Loading…
x
Reference in New Issue
Block a user