Skip to content

Test scripts for postgres #114

@vidyalakshmir

Description

@vidyalakshmir

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

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions