Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/t/t0210-trace2-normal.sh # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / t / t0210-trace2-normal.sh` 344 lines ยท 10739 bytes Raw Blame History 1 #!/bin/sh 2 3 test_description='test trace2 facility (normal target)' 4 5 . ./test-lib.sh 6 7 # Turn off any inherited trace2 settings for this test. 8 sane_unset GIT_TRACE2 GIT_TRACE2_PERF GIT_TRACE2_EVENT 9 sane_unset GIT_TRACE2_BRIEF 10 sane_unset GIT_TRACE2_CONFIG_PARAMS 11 12 # Add t/helper directory to PATH so that we can use a relative 13 # path to run nested instances of test-tool.exe (see 004child). 14 # This helps with HEREDOC comparisons later. 15 TTDIR="$GIT_BUILD_DIR/t/helper/" && export TTDIR 16 PATH="$TTDIR:$PATH" && export PATH 17 18 # Warning: use of 'test_cmp' may run test-tool.exe and/or git.exe 19 # Warning: to do the actual diff/comparison, so the HEREDOCs here 20 # Warning: only cover our actual calls to test-tool and/or git. 21 # Warning: So you may see extra lines in artifact files when 22 # Warning: interactively debugging. 23 24 V=$(git version | sed -e 's/^git version //') && export V 25 26 # There are multiple trace2 targets: normal, perf, and event. 27 # Trace2 events will/can be written to each active target (subject 28 # to whatever filtering that target decides to do). 29 # This script tests the normal target in isolation. 30 # 31 # Defer setting GIT_TRACE2 until the actual command line we want to test 32 # because hidden git and test-tool commands run by the test harness 33 # can contaminate our output. 34 35 # Enable "brief" feature which turns off " : " prefix. 36 GIT_TRACE2_BRIEF=1 && export GIT_TRACE2_BRIEF 37 38 # Basic tests of the trace2 normal stream. Since this stream is used 39 # primarily with printf-style debugging/tracing, we do limited testing 40 # here. 41 # 42 # We do confirm the following API features: 43 # [] the 'version ' event 44 # [] the 'start ' event 45 # [] the 'cmd_name ' event 46 # [] the 'exit