From c29289fe7fac8870265111efaaeef59bb5b6a834 Mon Sep 17 00:00:00 2001 From: GP Date: Mon, 1 May 2023 21:04:23 +0530 Subject: [PATCH] fix(tests): set up Windows fixtures --- .../dummy-cc-reporter-after-build-error.bat | 8 ++++++++ ...dummy-cc-reporter-after-build-error.bat.sha256 | 1 + .../dummy-cc-reporter-after-build-error.sh | 2 +- .../dummy-cc-reporter-after-build-error.sh.sha256 | 1 + .../dummy-cc-reporter-after-build-error.sha256 | 1 - .../dummy-cc-reporter-before-build-error.bat | 3 +++ ...ummy-cc-reporter-before-build-error.bat.sha256 | 1 + ...ummy-cc-reporter-before-build-error.sh.sha256} | 0 test/fixtures/dummy-cc-reporter.bat | 3 +++ test/fixtures/dummy-cc-reporter.bat.sha256 | 1 + ...ha256.sig => dummy-cc-reporter.bat.sha256.sig} | Bin ...eporter.sha256 => dummy-cc-reporter.sh.sha256} | 0 test/fixtures/dummy-cc-reporter.sh.sha256.sig | Bin 0 -> 566 bytes 13 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 test/fixtures/dummy-cc-reporter-after-build-error.bat create mode 100644 test/fixtures/dummy-cc-reporter-after-build-error.bat.sha256 create mode 100644 test/fixtures/dummy-cc-reporter-after-build-error.sh.sha256 delete mode 100644 test/fixtures/dummy-cc-reporter-after-build-error.sha256 create mode 100644 test/fixtures/dummy-cc-reporter-before-build-error.bat create mode 100644 test/fixtures/dummy-cc-reporter-before-build-error.bat.sha256 rename test/fixtures/{dummy-cc-reporter-before-build-error.sha256 => dummy-cc-reporter-before-build-error.sh.sha256} (100%) create mode 100644 test/fixtures/dummy-cc-reporter.bat create mode 100644 test/fixtures/dummy-cc-reporter.bat.sha256 rename test/fixtures/{dummy-cc-reporter.sha256.sig => dummy-cc-reporter.bat.sha256.sig} (100%) rename test/fixtures/{dummy-cc-reporter.sha256 => dummy-cc-reporter.sh.sha256} (100%) create mode 100644 test/fixtures/dummy-cc-reporter.sh.sha256.sig diff --git a/test/fixtures/dummy-cc-reporter-after-build-error.bat b/test/fixtures/dummy-cc-reporter-after-build-error.bat new file mode 100644 index 000000000..618de3bbe --- /dev/null +++ b/test/fixtures/dummy-cc-reporter-after-build-error.bat @@ -0,0 +1,8 @@ +:: Dummy shell script that exits with a non-zero code when the argument 'after-build' is given. +@echo off +IF %* == "after-build --exit-code 0" ( + EXIT /b 69 +) ELSE ( + :: `CALL` is a no-op. + CALL +) diff --git a/test/fixtures/dummy-cc-reporter-after-build-error.bat.sha256 b/test/fixtures/dummy-cc-reporter-after-build-error.bat.sha256 new file mode 100644 index 000000000..45e470b4f --- /dev/null +++ b/test/fixtures/dummy-cc-reporter-after-build-error.bat.sha256 @@ -0,0 +1 @@ +dc9edd7421a4cda22b95f340a5ccc34bbeedf8a7376e9b5819d01537eee4bfef test/fixtures/dummy-cc-reporter-after-build-error.bat \ No newline at end of file diff --git a/test/fixtures/dummy-cc-reporter-after-build-error.sh b/test/fixtures/dummy-cc-reporter-after-build-error.sh index ee508e2e7..4f02b2b81 100644 --- a/test/fixtures/dummy-cc-reporter-after-build-error.sh +++ b/test/fixtures/dummy-cc-reporter-after-build-error.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Dummy shell script that exist with a non-zero code when the argument 'after-build' is given. +# Dummy shell script that exits with a non-zero code when the argument 'after-build' is given. if [[ "$*" == "after-build --exit-code 0" ]] then exit 69 else diff --git a/test/fixtures/dummy-cc-reporter-after-build-error.sh.sha256 b/test/fixtures/dummy-cc-reporter-after-build-error.sh.sha256 new file mode 100644 index 000000000..535ad59b3 --- /dev/null +++ b/test/fixtures/dummy-cc-reporter-after-build-error.sh.sha256 @@ -0,0 +1 @@ +036653ec3894054dfc655d66b2724156ec2020dce6b92ee724614cda9196d3b0 test/fixtures/dummy-cc-reporter-after-build-error.sh diff --git a/test/fixtures/dummy-cc-reporter-after-build-error.sha256 b/test/fixtures/dummy-cc-reporter-after-build-error.sha256 deleted file mode 100644 index d0d21e139..000000000 --- a/test/fixtures/dummy-cc-reporter-after-build-error.sha256 +++ /dev/null @@ -1 +0,0 @@ -5f6b335c3d081dc45d93fa61f0e763d7317086c91bf464e994a023594295163f test/fixtures/dummy-cc-reporter-after-build-error.sh diff --git a/test/fixtures/dummy-cc-reporter-before-build-error.bat b/test/fixtures/dummy-cc-reporter-before-build-error.bat new file mode 100644 index 000000000..f3c7453ca --- /dev/null +++ b/test/fixtures/dummy-cc-reporter-before-build-error.bat @@ -0,0 +1,3 @@ +:: Dummy shell script exits with a non-zero code. +@echo off +EXIT /b 69 diff --git a/test/fixtures/dummy-cc-reporter-before-build-error.bat.sha256 b/test/fixtures/dummy-cc-reporter-before-build-error.bat.sha256 new file mode 100644 index 000000000..7f643dfa8 --- /dev/null +++ b/test/fixtures/dummy-cc-reporter-before-build-error.bat.sha256 @@ -0,0 +1 @@ +04c7a007b4a43067639bb4015c28ee44ad0aef59021b59dcfcca188a41072b19 test/fixtures/dummy-cc-reporter-before-build-error.bat \ No newline at end of file diff --git a/test/fixtures/dummy-cc-reporter-before-build-error.sha256 b/test/fixtures/dummy-cc-reporter-before-build-error.sh.sha256 similarity index 100% rename from test/fixtures/dummy-cc-reporter-before-build-error.sha256 rename to test/fixtures/dummy-cc-reporter-before-build-error.sh.sha256 diff --git a/test/fixtures/dummy-cc-reporter.bat b/test/fixtures/dummy-cc-reporter.bat new file mode 100644 index 000000000..8ea6a3448 --- /dev/null +++ b/test/fixtures/dummy-cc-reporter.bat @@ -0,0 +1,3 @@ +:: Dummy shell script that just echoes back all arguments. +@echo off +echo %* diff --git a/test/fixtures/dummy-cc-reporter.bat.sha256 b/test/fixtures/dummy-cc-reporter.bat.sha256 new file mode 100644 index 000000000..b5b5521b0 --- /dev/null +++ b/test/fixtures/dummy-cc-reporter.bat.sha256 @@ -0,0 +1 @@ +d737110ee3d94adfe87c39b7da8c7b2a6e3394e2a1674deeb7205677c88edcb8 dummy-cc-reporter diff --git a/test/fixtures/dummy-cc-reporter.sha256.sig b/test/fixtures/dummy-cc-reporter.bat.sha256.sig similarity index 100% rename from test/fixtures/dummy-cc-reporter.sha256.sig rename to test/fixtures/dummy-cc-reporter.bat.sha256.sig diff --git a/test/fixtures/dummy-cc-reporter.sha256 b/test/fixtures/dummy-cc-reporter.sh.sha256 similarity index 100% rename from test/fixtures/dummy-cc-reporter.sha256 rename to test/fixtures/dummy-cc-reporter.sh.sha256 diff --git a/test/fixtures/dummy-cc-reporter.sh.sha256.sig b/test/fixtures/dummy-cc-reporter.sh.sha256.sig new file mode 100644 index 0000000000000000000000000000000000000000..0dc935cb3b5afe19c4dce9e052b0ca1bd85112cf GIT binary patch literal 566 zcmV-60?GY}0y6{v0SEvc79j+i+2Y+s+Ll^Vep?D$zcK={pzx78keDsXqzqL$HA@@=JJ2Aky0|)+!u^G^nnQ`J zxu^=&Yd1d=3-Fn4Wg)Gs@GwFJK36NY6P>AIi|ReW{NY!1Qr-;P=Nxx4?6FEHRybwt zz$LUhgXyp6)*EI$0eyS?(3iy&&@I7kw~+sCt93d2G5gZ8`PKgxkW^Rbga!F&$kbej zK!#@SF@5x@%|tvz82*wu4ur5pQUMxB;$ID`<}3JJLYo+s%b)Zg^@DEzl^-}%C`8a4 zBoiyZsHeaUdc#>sEkY(d-btp8iZnY`!U$CIc& z29RGKTO>gH&mm$CA_Ykg?YNw?6?TH;!1Ab3Qdi)z0#TL(a`*>vlEh0JSTlonvA4Do zxN~(F0e|^