Skip to content

Commit

Permalink
join test
Browse files Browse the repository at this point in the history
  • Loading branch information
takenori-y committed Mar 14, 2022
1 parent 36524c8 commit bc412b5
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions test/test_fftcep.bats
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,13 @@ teardown() {
rm -rf $tmp
}

@test "fftcep: compatibility (j = 0)" {
$sptk3/nrand -l 32 | $sptk3/fftcep -l 16 -m 4 -j 0 > $tmp/1
$sptk3/nrand -l 32 | $sptk4/fftcep -l 16 -m 4 -i 0 > $tmp/2
run $sptk4/aeq $tmp/1 $tmp/2
[ "$status" -eq 0 ]
}

@test "fftcep: compatibility (j > 0)" {
$sptk3/nrand -l 32 | $sptk3/fftcep -l 16 -m 4 -j 3 -k 1 > $tmp/1
$sptk3/nrand -l 32 | $sptk4/fftcep -l 16 -m 4 -i 3 -a 1 > $tmp/2
run $sptk4/aeq $tmp/1 $tmp/2
[ "$status" -eq 0 ]
@test "fftcep: compatibility" {
for i in 0 3; do
$sptk3/nrand -l 32 | $sptk3/fftcep -l 16 -m 4 -j "$i" -k 1 > $tmp/1
$sptk3/nrand -l 32 | $sptk4/fftcep -l 16 -m 4 -i "$i" -a 1 > $tmp/2
run $sptk4/aeq $tmp/1 $tmp/2
[ "$status" -eq 0 ]
done
}

@test "fftcep: valgrind" {
Expand Down

0 comments on commit bc412b5

Please sign in to comment.