Fixed tests

This commit is contained in:
soyouzpanda 2024-06-01 20:38:34 +02:00
parent d80653ef00
commit ab1ba60b36

View file

@ -47,7 +47,7 @@ create_file() {
file_html="${result_folder}/${filename}.html" file_html="${result_folder}/${filename}.html"
if [[ ! -e "$file_html" ]] if [[ ! -e "$file_html" ]]
then then
cat "scripts/header.html" > $file_html # cat "scripts/header.html" > $file_html
sed -i "s@TITLE@${filename}@" $file_html sed -i "s@TITLE@${filename}@" $file_html
echo "<h1>${filename}</h1>" >> $file_html echo "<h1>${filename}</h1>" >> $file_html
echo "<div class=\"c\">" >> $file_html echo "<div class=\"c\">" >> $file_html
@ -61,7 +61,7 @@ create_file() {
end_file() { end_file() {
# After the analysis the cfg.dot should correspond to the current test # After the analysis the cfg.dot should correspond to the current test
dot -Tsvg cfg.dot -o ${result_folder}/${filename}.svg dot -Tsvg cfg.dot -o ${result_folder}/${filename}.svg
cat "scripts/footer.html" >> $file_html # cat "scripts/footer.html" >> $file_html
} }
get_nth_line() { get_nth_line() {
@ -252,7 +252,7 @@ print_end() {
} }
mkdir ${result_folder} mkdir ${result_folder}
cat "scripts/header_main.html" > $index_html # cat "scripts/header_main.html" > $index_html
echo "<h1>Overview</h1>" >> $index_html echo "<h1>Overview</h1>" >> $index_html
echo "<table>" >> $index_html echo "<table>" >> $index_html
total=$(find $bench -iname "*.c" | wc -l) total=$(find $bench -iname "*.c" | wc -l)