Coreutils Test Suite Setup & Execution 🛠️
The coreutils test suite uses both shell and Perl scripts, which rely on standard system utilities. We need to install these underlying tools before running the suite. Here are the steps:
1. Clean environment & clone apps
sudo make clean
make WITH_FPCAST=1
cd ../
git clone https://github.com/Lind-Project/lind-wasm-apps.git
cd lind-wasm-apps
2. Build and install dependencies
LIND_DYLINK=1 make coreutils
LIND_DYLINK=1 make bash
LIND_DYLINK=1 make awk
LIND_DYLINK=1 make grep
LIND_DYLINK=1 make sed
LIND_DYLINK=1 make diffutils
LIND_DYLINK=1 make install-coreutils
LIND_DYLINK=1 make install-bash
LIND_DYLINK=1 make install-awk
LIND_DYLINK=1 make install-grep
LIND_DYLINK=1 make install-sed
LIND_DYLINK=1 make install-diffutils
3. Apply Perl patch (Nick's PR #223)
git checkout fix-perl-install
LIND_DYLINK=1 make perl
LIND_DYLINK=1 make install-perl
4. Run tests (Vidya's PR #219)
git checkout coreutils-default-tests
cd coreutils
# Run all tests
./run_default_tests.sh --all
# Run ONLY Perl (skips Bash)
./run_default_tests.sh --all --skip-bash
# Run ONLY Bash (skips Perl)
./run_default_tests.sh --all --skip-perl
# Run specific test
./run_default_tests.sh $test
./run_default_tests.sh misc/help-version
Coreutils Test Suite Setup & Execution 🛠️
The
coreutilstest suite uses both shell and Perl scripts, which rely on standard system utilities. We need to install these underlying tools before running the suite. Here are the steps:1. Clean environment & clone apps
2. Build and install dependencies
3. Apply Perl patch (Nick's PR #223)
4. Run tests (Vidya's PR #219)