Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

report_results.csh: add html anchors to hashes and machines #388

Merged
merged 1 commit into from
Dec 19, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions configuration/scripts/tests/report_results.csh
Original file line number Diff line number Diff line change
Expand Up @@ -295,10 +295,11 @@ end
#=====================

set chk = 0
if (-e ${hashfile}) set chk = `grep "\*\*${hash}" ${hashfile} | wc -l`
if (-e ${hashfile}) set chk = `grep "#### ${hash}" ${hashfile} | wc -l`
if ($chk == 0) then
# Note: the line '#### ${hash}' is not a comment since it's in the here doc
cat >! ${hashfile} << EOF
**${hash}** :
#### ${hash}

| machine | compiler | version | date | test fail | comp fail | total |
| ------ | ------ | ------ | ------ | ------ | ------ | ------ |
Expand All @@ -308,7 +309,7 @@ EOF
if (-e ${hashfile}.prev) cat ${hashfile}.prev >> ${hashfile}

else
set oline = `grep -n "\*\*${hash}" ${hashfile} | head -1 | cut -d : -f 1`
set oline = `grep -n "#### ${hash}" ${hashfile} | head -1 | cut -d : -f 1`
@ nline = ${oline} + 3
sed -i "$nline a | ${mach} | ${compiler} | ${vers} | ${cdat} | ${tcolor} ${tfail}, ${tunkn} | ${rcolor} ${rfail}, ${rothr} | [${ttotl}](${ofile}) | " ${hashfile}
endif
Expand All @@ -318,10 +319,11 @@ endif
#=====================

set chk = 0
if (-e ${machfile}) set chk = `grep "\*\*${mach}" ${machfile} | wc -l`
if (-e ${machfile}) set chk = `grep "#### ${mach}" ${machfile} | wc -l`
if ($chk == 0) then
# Note: the line '#### ${mach}' is not a comment since it's in the here doc
cat >! ${machfile} << EOF
**${mach}** :
#### ${mach}

| version | hash | compiler | date | test fail | comp fail | total |
| ------ | ------ | ------ | ------ | ------ | ------ | ------ |
Expand All @@ -331,7 +333,7 @@ EOF
if (-e ${machfile}.prev) cat ${machfile}.prev >> ${machfile}

else
set oline = `grep -n "\*\*${mach}" ${machfile} | head -1 | cut -d : -f 1`
set oline = `grep -n "#### ${mach}" ${machfile} | head -1 | cut -d : -f 1`
@ nline = ${oline} + 3
sed -i "$nline a | ${vers} | ${shhash} | ${compiler} | ${cdat} | ${tcolor} ${tfail}, ${tunkn} | ${rcolor} ${rfail}, ${rothr} | [${ttotl}](${ofile}) | " ${machfile}
endif
Expand Down