Skip to content

Commit

Permalink
remove todeIt.solo tests from test_tode.sh and start running tests_to…
Browse files Browse the repository at this point in the history
…de.sh
  • Loading branch information
dalehenrich committed Feb 15, 2024
1 parent bf7288f commit 88453ac
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 44 deletions.
22 changes: 7 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,21 +161,13 @@ jobs:
gslist.solo -l
shell: bash
# - name: run rowanV3-alpha1 test
# run: |
# $GSDEVKIT_STONES_ROOT/tests/test_rowanV3_alpha.sh
# gslist.solo -lc
# deleteRegistry.solo test_rowanV3 -f
# gslist.solo -l
# shell: bash
# - name: run tODE test
# run: |
# echo "CI=$CI"
# $GSDEVKIT_STONES_ROOT/tests/test_tode.sh
# gslist.solo -lc
# deleteRegistry.solo devkit -f
# gslist.solo -l
# shell: bash
- name: run tODE test
run: |
echo "CI=$CI"
$GSDEVKIT_STONES_ROOT/tests/test_tode.sh
gslist.solo -lc
deleteRegistry.solo devkit -f
gslist.solo -l
slack-workflow-status:
if: always()
name: Post Workflow Status To Slack
Expand Down
39 changes: 10 additions & 29 deletions tests/test_tode.sh
Original file line number Diff line number Diff line change
Expand Up @@ -116,39 +116,20 @@ gslist.solo -l
cd $STONES_HOME/$registry/stones/$stoneName
loadTode.stone --projectDirectory=$STONES_HOME/$registry/devkit $*

case "$GS_VERS" in
3.7.*)
runTodeIt="true"
;;
*)
if [[ "$PLATFORM" = "macos"* ]]; then
# skip the following expressions on macos when running versions older than 3.7.0
# until the issue is characterized and fixed
runTodeIt="false"
else
runTodeIt="true"
fi
;;
esac
if [ "$runTodeIt" = "true" ] ; then
todeIt.solo --registry=$registry --stoneName=$stoneName \
--file=$GSDEVKIT_STONES_ROOT/tode/setUpSys_1 $*
validateStoneSysNodes.stone --todeHome=$todeHome --stoneName=$stoneName \
--files --repair $*
todeIt.solo --registry=$registry --stoneName=$stoneName \
--file=$GSDEVKIT_STONES_ROOT/tode/setUpSys_2 $*

# validate installation by running a couple of todeIt.stone commands
todeIt.stone -h
todeIt.stone 'eval `3+4`' $*

cat - > testing << EOF
#
# skip todieIt.solo and setUpSys_1 and setUpSys_2 ... not required and todeIt.stone should be used instead
#
# validate installation by running a couple of todeIt.stone commands
todeIt.stone -h
todeIt.stone 'eval `3+4`' $*

cat - > testing << EOF
eval \`TDTestToolTests enableTests: false\`
test --batch class TDTestToolTests
eval \`self hasFailures ifTrue: [ self error: 'FAILING' ] ifFalse: [ self ]\`
EOF
todeIt.stone --file=testing $*
fi
todeIt.stone --file=testing $*


# delete the stone
cd $STONES_HOME
Expand Down

0 comments on commit 88453ac

Please sign in to comment.