https://github.com/e3sm-project/e3sm_test_scripts
Test scripts for cron and jenkins jobs
https://github.com/e3sm-project/e3sm_test_scripts
Last synced: 11 months ago
JSON representation
Test scripts for cron and jenkins jobs
- Host: GitHub
- URL: https://github.com/e3sm-project/e3sm_test_scripts
- Owner: E3SM-Project
- Created: 2018-03-13T22:34:30.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-10-30T03:17:24.000Z (over 1 year ago)
- Last Synced: 2024-10-30T06:16:47.823Z (over 1 year ago)
- Language: Shell
- Size: 265 KB
- Stars: 7
- Watchers: 127
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# E3SM_test_scripts
Test scripts for cron and jenkins jobs
How it works (for Jenkins jobs):
Make/modify a script in the jenkins subdirectory of this repo. The script name
should be `$machine_$branch_$test`. The first code block for all the
scripts should be:
```bash
export SCRIPTROOT=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd .. && pwd )
export CIME_MACHINE=$machine
source $SCRIPTROOT/util/setup_common.sh
```
where `$machine` is the E3SM machine for the test, and the lines below this
block are the actual test.
Note: If a `util/$machine_setup.sh` file exists, it will also be sourced.
The test process:
Jenkins will clone `E3SM` and `E3SM_test_scripts` into the top level workspace
directory:
```bash
% ls
ACME
E3SM_test_scripts
```
It will then just run the appropriate script for the job, for example, this is
skybridge job:
```bash
#!/bin/bash -xle
./E3SM_test_scripts/jenkins/skybridge_next.sh
```