Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dlidstrom committed Apr 3, 2024
1 parent bde48fb commit be016d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions tests/Simple/tests.bats
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
setup() {
run ./build/duplo tests/Simple/LineNumbers.lst out.txt
}

@test "LineNumbers.c" {
run ./build/duplo tests/Simple/LineNumbers.lst out.txt
[ "$status" -eq 0 ]
[ "${lines[0]}" = "Loading and hashing files ... 2 done." ]
[ "${lines[1]}" = "tests/Simple/LineNumbers.c found: 1 block(s)" ]
}

@test "LineNumbers.c out.txt" {
run ./build/duplo tests/Simple/LineNumbers.lst out.txt
run cat out.txt
printf 'Lines:\n'
printf 'lines %s\n' "${lines[@]}" >&2
Expand Down
6 changes: 2 additions & 4 deletions tests/Simple_Ada/tests.bats
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
setup() {
run ./build/duplo -ml 2 tests/Simple_Ada/simple_log.lst out.txt
}

@test "simple_log.adb" {
run ./build/duplo -ml 2 tests/Simple_Ada/simple_log.lst out.txt
[ "$status" -eq 0 ]
[ "${lines[0]}" = "Loading and hashing files ... 2 done." ]
[ "${lines[1]}" = "tests/Simple_Ada/simple_log.adb found: 6 block(s)" ]
}

@test "simple_log.adb out.txt" {
run ./build/duplo -ml 2 tests/Simple_Ada/simple_log.lst out.txt
run cat out.txt
printf 'Lines:\n'
printf 'lines %s\n' "${lines[@]}" >&2
Expand Down

0 comments on commit be016d7

Please sign in to comment.