forked from mdekauwe/CABLE_benchmarking
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add integration test for local checkout of CABLE
- Loading branch information
1 parent
1c53f89
commit c46accf
Showing
4 changed files
with
57 additions
and
24 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
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 |
---|---|---|
|
@@ -2,13 +2,24 @@ | |
|
||
set -ex | ||
|
||
CABLE_REPO="[email protected]:CABLE-LSM/CABLE.git" | ||
CABLE_DIR=/scratch/$PROJECT/$USER/benchcab/CABLE | ||
|
||
TEST_DIR=/scratch/$PROJECT/$USER/benchcab/integration | ||
EXAMPLE_REPO="[email protected]:CABLE-LSM/bench_example.git" | ||
|
||
# Remove the test work space, then recreate | ||
# Remove CABLE and test work space, then recreate | ||
rm -rf $CABLE_DIR | ||
mkdir -p $CABLE_DIR | ||
|
||
rm -rf $TEST_DIR | ||
mkdir -p $TEST_DIR | ||
|
||
# Clone local checkout for CABLE | ||
git clone $CABLE_REPO $CABLE_DIR | ||
cd $CABLE_DIR | ||
git reset --hard 67a52dc5721f0da78ee7d61798c0e8a804dcaaeb | ||
|
||
# Clone the example repo | ||
git clone $EXAMPLE_REPO $TEST_DIR | ||
cd $TEST_DIR | ||
|
@@ -18,9 +29,13 @@ cat > config.yaml << EOL | |
project: $PROJECT | ||
realisations: | ||
- repo: | ||
local: | ||
path: $CABLE_DIR | ||
- repo: | ||
git: | ||
branch: main | ||
commit: 67a52dc5721f0da78ee7d61798c0e8a804dcaaeb | ||
modules: [ | ||
intel-compiler/2021.1.1, | ||
|
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