Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

%1 is not a valid Win32 application, Foundry Tests failing on Git Bash Terminal. #67

Open
JustUzair opened this issue Aug 13, 2024 · 0 comments

Comments

@JustUzair
Copy link

JustUzair commented Aug 13, 2024

I am using Foundry on Git Bash terminal alongside huffc to develop projects and learn.
I recently downloaded this package for differential testing but I encountered an error, here is some more information about the same.
Please note that both Foundry and Huff work fine it's just that when I use the foundry-huff package is when I encounter the error.

The following logs are from the git bash terminal when testing a foundry project.

$ forge test
[⠊] Compiling...
[⠑] Compiling 6 files with Solc 0.8.20
[⠃] Solc 0.8.20 finished in 1.63s
Compiler run successful!

Ran 1 test for test/V1/HorseStoreSolc.t.sol:HorseStoreSolc
[PASS] test_readValue() (gas: 7557)
Suite result: ok. 1 passed; 0 failed; 0 skipped; finished in 27.71ms (2.86ms CPU time)

Ran 1 test for test/V1/HorseStoreHuff.t.sol:HorseStoreHuff
[FAIL. Reason: setup failed: failed to execute command "./lib/foundry-huff/scripts/binary_check.sh": %1 is not a valid Win32 application. (os error 193)] setUp() (gas: 0)
Suite result: FAILED. 0 passed; 1 failed; 0 skipped; finished in 29.69ms (0.00ns CPU time)

Ran 2 test suites in 49.80ms (57.41ms CPU time): 1 tests passed, 1 failed, 0 skipped (2 total tests)

The main reason for my differential test to fail is this. It shows that the system is not a valid Win32 system, I don't know what it means.

[FAIL. Reason: setup failed: failed to execute command "./lib/foundry-huff/scripts/binary_check.sh": %1 is not a valid Win32 application. (os error 193)]

Is this package strictly for WSL or Native Linux?

P.S. I do not have WSL or WSL2 setup in my system as of now to answer the above question.
Any Help is Appreciated...

@JustUzair JustUzair changed the title Foundry Tests failing on Git Bash Terminal. %1 is not a valid Win32 application; Foundry Tests failing on Git Bash Terminal. Aug 13, 2024
@JustUzair JustUzair changed the title %1 is not a valid Win32 application; Foundry Tests failing on Git Bash Terminal. %1 is not a valid Win32 application, Foundry Tests failing on Git Bash Terminal. Aug 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant