added test alias
This commit is contained in:
parent
136ba5bbc4
commit
aa0c915941
1 changed files with 3 additions and 1 deletions
4
new.sh
4
new.sh
|
|
@ -4,4 +4,6 @@ day=$(echo $1 | sed 's/..//')
|
||||||
year=$(printf %02d $2)
|
year=$(printf %02d $2)
|
||||||
cp -n template.hs src/Day${day}${year}.hs
|
cp -n template.hs src/Day${day}${year}.hs
|
||||||
|
|
||||||
alias run="ghc -no-keep-hi-files -no-keep-o-files src/Day${day}${year}.hs -o out && cat inputs/$1-$2 | ./out && hyperfine --input inputs/$1-$2 -N --warmup 10 --runs 10 \"./out\" && rm out"
|
alias run="ghc -no-keep-hi-files -no-keep-o-files src/Day${day}${year}.hs -o out && cat inputs/$1-$2 | ./out && hyperfine --input inputs/$1-$2 -N --warmup 10 --runs 10 \"./out\"; rm out"
|
||||||
|
|
||||||
|
alias run-test="ghc -no-keep-hi-files -no-keep-o-files src/Day${day}${year}.hs -o out && cat inputs/$1-$2-test | ./out; rm out"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue