Skip to content

Commit

Permalink
More efficient testing
Browse files Browse the repository at this point in the history
  • Loading branch information
devosb committed Oct 1, 2024
1 parent 058d6d5 commit 05c04cc
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 3 deletions.
3 changes: 3 additions & 0 deletions bin/chrome
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

google-chrome --enable-features=UseOzonePlatform --ozone-platform=wayland "$@"
3 changes: 3 additions & 0 deletions bin/chromium
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

/snap/bin/chromium --enable-features=UseOzonePlatform --ozone-platform=wayland "$@"
23 changes: 20 additions & 3 deletions bin/smith-flow
Original file line number Diff line number Diff line change
Expand Up @@ -419,16 +419,16 @@ fi
if [ "$mode" == "data" ]
then
rm -f $guest/*.*
rm -rf $guest/{xtf,txt,web,sfm}
mkdir -p $guest/{xtf,txt,web,sfm}
rm -rf $guest/{xtf,txt,web,sfm,pdfs,sile}
mkdir -p $guest/{xtf,txt,web,sfm,pdfs,sile}

if [ -x makeftml ]
then
./makeftml
fi

# web apps
ln -v -f web/*.html web/*.css tools/*.html $ht $guest/web
ln -v -f web/*.html web/*.css tools/*.html $ref/*VF* $ht $guest/web

pushd tests

Expand Down Expand Up @@ -542,6 +542,16 @@ then
exit 0
fi

big=$(echo $locl/tests)
if [ "$mode" == "bigtest" ]
then
if [ -d $big ]
then
cp -p -v $big/* tests
fi
mode=test
fi

extra=$(echo ../$prj-private/tests)
if [ -d $extra -a "$mode" != "pdfs" ]
then
Expand All @@ -564,4 +574,11 @@ then
mode=build
fi
shift

# run smith
$HOME/.local/bin/smith "$mode" "$@" $FLOWARGS

if [ "$mode" == "pdfs" -o "$mode" == "sile" ]
then
cp -p -v results/tests/$mode/*.pdf $guest/$mode
fi
1 change: 1 addition & 0 deletions etc/glyph_names/glyph_names.csv
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@
220F,product,N-ARY PRODUCT
2211,summation,N-ARY SUMMATION
2212,minus,MINUS SIGN
2215,divisionslash,DIVISION SLASH
2219,bulletoperator,BULLET OPERATOR
221A,radical,SQUARE ROOT
221E,infinity,INFINITY
Expand Down

0 comments on commit 05c04cc

Please sign in to comment.