Skip to content

Commit

Permalink
busybox: enable testcase logging
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusz-bloch committed Nov 7, 2023
1 parent 9feddd4 commit 7b4a54a
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions busybox/19-enable-testcase-logging.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
--- busybox-1.27.2/testsuite/runtest 2023-10-27 17:17:52.404370639 +0200
+++ _phoenix/busybox-1.27.2/testsuite/runtest 2023-10-27 17:17:16.635573994 +0200
@@ -40,7 +40,7 @@
mkdir -p ".tmpdir.$applet"
cd ".tmpdir.$applet" || return 1

-# echo "Running testcase $testcase"
+ echo "Running testcase $testcase"
d="$tsdir" \
sh -x -e "$testcase" >"$testname.stdout.txt" 2>&1 || status=$?
if [ $status -ne 0 ]; then

--- busybox-1.27.2/testsuite/testing.sh 2023-10-27 17:17:52.404370639 +0200
+++ _phoenix/busybox-1.27.2/testsuite/testing.sh 2023-10-27 17:17:16.635573994 +0200
@@ -87,7 +87,7 @@

$ECHO -ne "$3" > expected
$ECHO -ne "$4" > input
- [ -z "$VERBOSE" ] || echo ======================
+ echo "Running testcase $NAME"
[ -z "$VERBOSE" ] || echo "echo -ne '$4' >input"
[ -z "$VERBOSE" ] || echo "echo -ne '$5' | $2"
$ECHO -ne "$5" | eval "$2" > actual

0 comments on commit 7b4a54a

Please sign in to comment.