From f6726ef0b9a646c0dcc093daa78c4c4a66f69316 Mon Sep 17 00:00:00 2001 From: Romain Lespinasse Date: Sat, 23 Mar 2024 12:38:14 +0100 Subject: [PATCH] fix build --- tests/data/file3.drawio | 60 +++++++++++++++++++++++ tests/expected/export-check-firstrun.log | 1 + tests/expected/export-check-secondrun.log | 1 + tests/expected/export-check-thirdrun.log | 1 + tests/expected/issue-20-frame-bug.svg | 2 +- tests/expected/output-check-command.log | 1 - tests/expected/output-wrong-command.log | 1 - tests/export.bats | 6 +++ tests/timeout.bats | 4 -- 9 files changed, 70 insertions(+), 7 deletions(-) create mode 100755 tests/data/file3.drawio create mode 100644 tests/expected/export-check-firstrun.log create mode 100644 tests/expected/export-check-secondrun.log create mode 100644 tests/expected/export-check-thirdrun.log delete mode 100644 tests/expected/output-check-command.log delete mode 100644 tests/expected/output-wrong-command.log diff --git a/tests/data/file3.drawio b/tests/data/file3.drawio new file mode 100755 index 0000000..ee1e54b --- /dev/null +++ b/tests/data/file3.drawio @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/expected/export-check-firstrun.log b/tests/expected/export-check-firstrun.log new file mode 100644 index 0000000..17eb77f --- /dev/null +++ b/tests/expected/export-check-firstrun.log @@ -0,0 +1 @@ +file3.drawio -> file3.pdf diff --git a/tests/expected/export-check-secondrun.log b/tests/expected/export-check-secondrun.log new file mode 100644 index 0000000..6d851e3 --- /dev/null +++ b/tests/expected/export-check-secondrun.log @@ -0,0 +1 @@ +file3.drawio -> file3-1.pdf diff --git a/tests/expected/export-check-thirdrun.log b/tests/expected/export-check-thirdrun.log new file mode 100644 index 0000000..17eb77f --- /dev/null +++ b/tests/expected/export-check-thirdrun.log @@ -0,0 +1 @@ +file3.drawio -> file3.pdf diff --git a/tests/expected/issue-20-frame-bug.svg b/tests/expected/issue-20-frame-bug.svg index e504b44..5d89f84 100644 --- a/tests/expected/issue-20-frame-bug.svg +++ b/tests/expected/issue-20-frame-bug.svg @@ -1,3 +1,3 @@ -
Good
Good
Bad
Bad
Text is not SVG - cannot display
\ No newline at end of file +
Good
Good
Bad
Bad
Text is not SVG - cannot display
\ No newline at end of file diff --git a/tests/expected/output-check-command.log b/tests/expected/output-check-command.log deleted file mode 100644 index 8b13789..0000000 --- a/tests/expected/output-check-command.log +++ /dev/null @@ -1 +0,0 @@ - diff --git a/tests/expected/output-wrong-command.log b/tests/expected/output-wrong-command.log deleted file mode 100644 index 8b13789..0000000 --- a/tests/expected/output-wrong-command.log +++ /dev/null @@ -1 +0,0 @@ - diff --git a/tests/export.bats b/tests/export.bats index f752d7e..e04a42a 100755 --- a/tests/export.bats +++ b/tests/export.bats @@ -10,6 +10,12 @@ docker_test "" 0 "export-file2" "tests/data" -x "file 2.drawio" } +@test "Export with check command" { + docker_test "" 1 "export-check-firstrun" "tests/data" -export --check file3.drawio + docker_test "" 1 "export-check-secondrun" "tests/data" -export --check file3.drawio + docker_test "" 1 "export-check-thirdrun" "tests/data" -export file3.drawio +} + @test "Export using unknown argument" { docker_test "" 0 "export-file1" "tests/data" --export file1.drawio --wrong-argument } diff --git a/tests/timeout.bats b/tests/timeout.bats index 24c4f3e..b226762 100755 --- a/tests/timeout.bats +++ b/tests/timeout.bats @@ -6,10 +6,6 @@ docker_test "-e DRAWIO_DESKTOP_COMMAND_TIMEOUT=2s" 1 "output-create-command" "tests/data" --create } -@test "Timeout for using check command" { - docker_test "-e DRAWIO_DESKTOP_COMMAND_TIMEOUT=2s" 1 "output-check-command" "tests/data" --check /data/file1.drawio -} - @test "Timeout for using wrong command" { docker_test "-e DRAWIO_DESKTOP_COMMAND_TIMEOUT=2s" 1 "output-wrong-command" "tests/data" --wrong-command }