Skip to content

Commit

Permalink
update test bash
Browse files Browse the repository at this point in the history
  • Loading branch information
KMarshallX committed Aug 18, 2024
1 parent 3441c87 commit ad87f41
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 17 deletions.
8 changes: 4 additions & 4 deletions tests/test_boost_module.sh
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
#!/usr/bin/env bash
set -e

cp -r . /tmp/vessel_code
cp -r . /tmp/VesselBoost

# test readme
echo "[DEBUG]: testing the clone command from the README:"
clone_command=`cat /tmp/vessel_code/README.md | grep https://github.com/KMarshallX/vessel_code.git`
clone_command=`cat /tmp/VesselBoost/README.md | grep https://github.com/KMarshallX/VesselBoost.git`
echo $clone_command
$clone_command

echo "[DEBUG]: testing the miniconda installation from the README:"
get_command=`cat /tmp/vessel_code/README.md | grep miniconda-setup.sh`
get_command=`cat /tmp/VesselBoost/README.md | grep miniconda-setup.sh`
echo $get_command
$get_command

export PATH="/home/runner/miniconda3/bin:$PATH"
source ~/.bashrc

echo "[DEBUG]: testing the conda env build from the README:"
cd vessel_code
cd VesselBoost
condaenv_command=`cat ./README.md | grep environment.yml`
echo $condaenv_command
$condaenv_command
Expand Down
2 changes: 1 addition & 1 deletion tests/test_docker.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
set -e

cd /opt/vessel_code
cd /opt/VesselBoost

# settings for data download
mkdir -p data/images/
Expand Down
8 changes: 4 additions & 4 deletions tests/test_prediction_module.sh
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
#!/usr/bin/env bash
set -e

cp -r . /tmp/vessel_code
cp -r . /tmp/VesselBoost

# test readme
echo "[DEBUG]: testing the clone command from the README:"
clone_command=`cat /tmp/vessel_code/README.md | grep https://github.com/KMarshallX/vessel_code.git`
clone_command=`cat /tmp/VesselBoost/README.md | grep https://github.com/KMarshallX/VesselBoost.git`
echo $clone_command
$clone_command

echo "[DEBUG]: testing the miniconda installation from the README:"
get_command=`cat /tmp/vessel_code/README.md | grep miniconda-setup.sh`
get_command=`cat /tmp/VesselBoost/README.md | grep miniconda-setup.sh`
echo $get_command
$get_command

export PATH="/home/runner/miniconda3/bin:$PATH"
source ~/.bashrc

echo "[DEBUG]: testing the conda env build from the README:"
cd vessel_code
cd VesselBoost
condaenv_command=`cat ./README.md | grep environment.yml`
echo $condaenv_command
$condaenv_command
Expand Down
8 changes: 4 additions & 4 deletions tests/test_train_module.sh
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
#!/usr/bin/env bash
set -e

cp -r . /tmp/vessel_code
cp -r . /tmp/VesselBoost

# test readme
echo "[DEBUG]: testing the clone command from the README:"
clone_command=`cat /tmp/vessel_code/README.md | grep https://github.com/KMarshallX/vessel_code.git`
clone_command=`cat /tmp/VesselBoost/README.md | grep https://github.com/KMarshallX/VesselBoost.git`
echo $clone_command
$clone_command

echo "[DEBUG]: testing the miniconda installation from the README:"
get_command=`cat /tmp/vessel_code/README.md | grep miniconda-setup.sh`
get_command=`cat /tmp/VesselBoost/README.md | grep miniconda-setup.sh`
echo $get_command
$get_command

export PATH="/home/runner/miniconda3/bin:$PATH"
source ~/.bashrc

echo "[DEBUG]: testing the conda env build from the README:"
cd vessel_code
cd VesselBoost
condaenv_command=`cat ./README.md | grep environment.yml`
echo $condaenv_command
$condaenv_command
Expand Down
8 changes: 4 additions & 4 deletions tests/test_tta_module.sh
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
#!/usr/bin/env bash
set -e

cp -r . /tmp/vessel_code
cp -r . /tmp/VesselBoost

# test readme
echo "[DEBUG]: testing the clone command from the README:"
clone_command=`cat /tmp/vessel_code/README.md | grep https://github.com/KMarshallX/vessel_code.git`
clone_command=`cat /tmp/VesselBoost/README.md | grep https://github.com/KMarshallX/VesselBoost.git`
echo $clone_command
$clone_command

echo "[DEBUG]: testing the miniconda installation from the README:"
get_command=`cat /tmp/vessel_code/README.md | grep miniconda-setup.sh`
get_command=`cat /tmp/VesselBoost/README.md | grep miniconda-setup.sh`
echo $get_command
$get_command

export PATH="/home/runner/miniconda3/bin:$PATH"
source ~/.bashrc

echo "[DEBUG]: testing the conda env build from the README:"
cd vessel_code
cd VesselBoost
condaenv_command=`cat ./README.md | grep environment.yml`
echo $condaenv_command
$condaenv_command
Expand Down

0 comments on commit ad87f41

Please sign in to comment.