Skip to content

Commit

Permalink
add thread timing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bbrk24 committed Oct 1, 2024
1 parent 2ff4a02 commit b9da5d6
Show file tree
Hide file tree
Showing 7 changed files with 65 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/cli/thread_timing/a.trg
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.
. .
. . .
. . . .
. . . . .
. > . ' 2 !
\ { . . . . .
. . > ' 1 ! . @
8 changes: 8 additions & 0 deletions tests/cli/thread_timing/b.trg
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.
. .
. . .
. . . .
. . . . .
. > ' 1 ! .
\ { . . . . .
. . > . ' 2 ! @
9 changes: 9 additions & 0 deletions tests/cli/thread_timing/c.trg
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.
. .
. . .
. . . .
. . . . .
. . . . . .
. > # . ' 2 !
\ { . . . . . .
. . > . ' 1 ! . @
9 changes: 9 additions & 0 deletions tests/cli/thread_timing/d.trg
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.
. .
. . .
. . . .
. . . . .
. . . . . .
. > . ' 1 ! .
\ { . . . . . .
. . > # . ' 2 ! @
10 changes: 10 additions & 0 deletions tests/cli/thread_timing/e.trg
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.
. .
. . .
. . . .
. . . . .
. . . . . .
. . . . . . .
. > . ' 2 . . !
\ { . . . . . . .
. . > ' 1 # . ! . @
10 changes: 10 additions & 0 deletions tests/cli/thread_timing/f.trg
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.
. .
. . .
. . . .
. . . . .
. . . . . .
. . . . . . .
. > ' 1 # . ! .
\ { . . . . . . .
. . > . ' 2 . . ! @
11 changes: 11 additions & 0 deletions tests/cli/thread_timing/index.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

set -eu

folder=$(dirname "$0")

for file in "$folder"/*.trg
do
output=$($TRILANGLE -a "$file")
test "${output//$'\r'/}" = $'1\n2'
done

0 comments on commit b9da5d6

Please sign in to comment.