citrun

watch C/C++ source code execute
Log | Files | Refs | LICENSE

commit 95e09461321746bc012e58a251d366d5faa75457
parent 044510c11d5f4b39184ea8e9ef382e9607584931
Author: kyle <kyle@0x30.net>
Date:   Sat, 19 Nov 2016 18:39:29 -0700

tt/package.subr: use () instead of function keyword

Diffstat:
Mtt/package.subr | 14+++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/tt/package.subr b/tt/package.subr @@ -1,7 +1,7 @@ # exports CITRUN_TOOLS and sources libtap.subr . t/utils.subr -function pkg_set +pkg_set() { port="/usr/ports/$1" wrkdist=`make -C $port show=WRKDIST` @@ -10,7 +10,7 @@ function pkg_set export TEST_WRKDIST="$wrkdist" } -function pkg_check_deps +pkg_check_deps() { make -C $TEST_PORT full-build-depends > deps make -C $TEST_PORT full-test-depends >> deps @@ -21,29 +21,29 @@ function pkg_check_deps ok "build and test dependencies" diff -u /dev/null deps_needed } -function pkg_build +pkg_build() { ok "port build" make -C $TEST_PORT PORTPATH="$CITRUN_TOOLS:\${WRKDIR}/bin:$PATH" build } -function pkg_test +pkg_test() { #make -C $TEST_PORT PORTPATH="$CITRUN_TOOLS:\${WRKDIR}/bin:$PATH" test || true } -function pkg_check +pkg_check() { $CITRUN_TOOLS/citrun-check -o check.out $TEST_WRKDIST strip_millis check.out ok "citrun-check output diff" diff -u check.good check.out } -function pkg_clean +pkg_clean() { ok "port clean" make -C $TEST_PORT clean=all } -function pkg_write_tus +pkg_write_tus() { cat <<'EOF' > tu_printer.pl use strict;