Skip to content

Commit

Permalink
Should use parameterized goals instead of calling ./makesure #151 rfct
Browse files Browse the repository at this point in the history
  • Loading branch information
xonixx committed Jan 3, 2024
1 parent 44fab8e commit 28bfb78
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions Makesurefile
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,6 @@
fi
}

# The idea of having this here (not using a named glob goal) is to be able
# to run `./makesure tests/test.tush` instead of `./makesure tested@tests/test.tush`
@goal tested
@doc 'runs all *.tush tests (stop at 1st error)'
@depends_on 'tests/*.tush'

@goal fhtagn @params EXE_NAME
@doc 'runs all *.tush tests'
@depends_on fhtagn_installed
Expand All @@ -101,6 +95,12 @@
[[ "$OSTYPE" == "linux-gnu"* ]] && [[ -d /dev/shm ]] && export TMPDIR="/dev/shm"
MAKESURE=makesure_dev ALL=1 "$FHTAGN" tests/*.tush

# The idea of having this here (not using a named glob goal) is to be able
# to run `./makesure tests/test.tush` instead of `./makesure tested@tests/test.tush`
@goal tested
@doc 'runs all *.tush tests (stop at 1st error)'
@depends_on 'tests/*.tush'

@goal @glob 'tests/*.tush' @private
@depends_on prepared4tests
@use_lib testing
Expand All @@ -121,7 +121,6 @@

MAKESURE_AWK="$(pwd)/soft/$GOAWK" \
MAKESURE_AWK_OPTS="-covermode=set -coverprofile=$COVERPROFILE -coverappend" \
MAKESURE=makesure_dev \
./makesure tested

@goal coverage
Expand Down

0 comments on commit 28bfb78

Please sign in to comment.