Skip to content

Commit

Permalink
fix(tests): set up Windows fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
paambaati committed May 1, 2023
1 parent 39cb16a commit c29289f
Show file tree
Hide file tree
Showing 13 changed files with 19 additions and 2 deletions.
8 changes: 8 additions & 0 deletions test/fixtures/dummy-cc-reporter-after-build-error.bat
Original file line number Diff line number Diff line change
@@ -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
)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dc9edd7421a4cda22b95f340a5ccc34bbeedf8a7376e9b5819d01537eee4bfef test/fixtures/dummy-cc-reporter-after-build-error.bat
2 changes: 1 addition & 1 deletion test/fixtures/dummy-cc-reporter-after-build-error.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
036653ec3894054dfc655d66b2724156ec2020dce6b92ee724614cda9196d3b0 test/fixtures/dummy-cc-reporter-after-build-error.sh
1 change: 0 additions & 1 deletion test/fixtures/dummy-cc-reporter-after-build-error.sha256

This file was deleted.

3 changes: 3 additions & 0 deletions test/fixtures/dummy-cc-reporter-before-build-error.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
:: Dummy shell script exits with a non-zero code.
@echo off
EXIT /b 69
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
04c7a007b4a43067639bb4015c28ee44ad0aef59021b59dcfcca188a41072b19 test/fixtures/dummy-cc-reporter-before-build-error.bat
3 changes: 3 additions & 0 deletions test/fixtures/dummy-cc-reporter.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
:: Dummy shell script that just echoes back all arguments.
@echo off
echo %*
1 change: 1 addition & 0 deletions test/fixtures/dummy-cc-reporter.bat.sha256
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
d737110ee3d94adfe87c39b7da8c7b2a6e3394e2a1674deeb7205677c88edcb8 dummy-cc-reporter
File renamed without changes.
File renamed without changes.
Binary file added test/fixtures/dummy-cc-reporter.sh.sha256.sig
Binary file not shown.

0 comments on commit c29289f

Please sign in to comment.