forked from itsallcode/openfasttrace
-
Notifications
You must be signed in to change notification settings - Fork 0
/
oft-self-trace.sh
executable file
·37 lines (33 loc) · 1.03 KB
/
oft-self-trace.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
set -o errexit
set -o nounset
set -o pipefail
script_path="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
base_dir="$script_path"
oft_script="$base_dir/oft"
report_file=$base_dir/target/self-trace-report.html
mkdir -p $(dirname "$report_file")
if $oft_script trace \
--output-format html -f "$report_file" \
"$base_dir/doc/spec" \
"$base_dir/importer/markdown/src" \
"$base_dir/importer/specobject/src" \
"$base_dir/importer/zip/src" \
"$base_dir/importer/tag/src" \
"$base_dir/core/src/main" \
"$base_dir/core/src/test/java" \
"$base_dir/reporter/plaintext/src" \
"$base_dir/reporter/html/src" \
"$base_dir/reporter/aspec/src" \
"$base_dir/product/src/test/java" \
"$base_dir/api/src" \
"$base_dir/exporter/specobject/src" \
"$base_dir/exporter/common/src" \
"$base_dir/testutil/src"; then
echo "Self-trace successful, see report at $report_file"
exit 0
else
status=$?
echo "Self-trace failed with status $status, see report at $report_file"
exit $status
fi