We need a test script to test Postgres
- Either repurpose the existing test suite (usually
Makefile will have a target test or check) to run within lind-wasm or just write a test script that tests basic functionality of postgres
- Each app should have its own shell script
test.sh (lind-wasm-apps/postgres/test.sh, which outputs exit 0 on success, anything else will count as a fail. For now, check for binaries being installed in the correct location, and determine success/failure for that.
- Binaries are usually placed in
lindfs/bin directory (preferably without any extension)
- Make sure all paths that the test uses are relative to lindfs and the corresponding files are actually copied to lindfs. To refer a file
/home/lind/lind-wasm/lindfs/tests/postgres/test.txt, please use tests/postgres/test.txt
- Test scripts that are copied to
lindfs can be placed in lindfs/tests/postgres folder
Command to run an app within lind:
lind_run $app
For example, to run /home/lind/lind-wasm/lindfs/bin/bash with an argument /home/lind/lind-wasm/lindfs/tests/bash/test1.sh, please run
lind_run bin/bash tests/bash/test1.sh
We need a test script to test Postgres
Makefilewill have a targettestorcheck) to run within lind-wasm or just write a test script that tests basic functionality of postgrestest.sh(lind-wasm-apps/postgres/test.sh, which outputs exit 0 on success, anything else will count as a fail. For now, check for binaries being installed in the correct location, and determine success/failure for that.lindfs/bindirectory (preferably without any extension)/home/lind/lind-wasm/lindfs/tests/postgres/test.txt, please usetests/postgres/test.txtlindfscan be placed inlindfs/tests/postgresfolderCommand to run an app within lind:
lind_run $appFor example, to run
/home/lind/lind-wasm/lindfs/bin/bashwith an argument/home/lind/lind-wasm/lindfs/tests/bash/test1.sh, please runlind_run bin/bash tests/bash/test1.sh