bash's testsuite is located under tests
There are a couple of starting script that can be used as the entry of the tests, examples are run-all and run-minimal. These are bash script, so can be ran directly without too much additional setup.
An example of running the testsuite is lind-wasm --env PATH=/bash_tests:/bin --env THIS_SH=/bin/bash bin/bash run-minimal
The testsuite depends on coreutils, and additionally, diff which should be compiled from diffutils, and recho which should be compiled from support/recho.c
With diff and recho properly installed, currently run-minimal can run a part of testsuite, and then crash at func4.sub, which is a 4th test script for run-func sub-tests. Detailed at: Lind-Project/lind-wasm#965
bash's testsuite is located under
testsThere are a couple of starting script that can be used as the entry of the tests, examples are
run-allandrun-minimal. These are bash script, so can be ran directly without too much additional setup.An example of running the testsuite is
lind-wasm --env PATH=/bash_tests:/bin --env THIS_SH=/bin/bash bin/bash run-minimalThe testsuite depends on coreutils, and additionally,
diffwhich should be compiled from diffutils, andrechowhich should be compiled fromsupport/recho.cWith
diffandrechoproperly installed, currentlyrun-minimalcan run a part of testsuite, and then crash atfunc4.sub, which is a 4th test script forrun-funcsub-tests. Detailed at: Lind-Project/lind-wasm#965