diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..3f2f8ad --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,28 @@ +name: tests + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + + +jobs: + + clt: + name: CLT tests + runs-on: ubuntu-22.04 + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Prepare manticore-loadDocker image + run: | + ls -la + cd test + ./build.sh + - name: Run CLT tests + uses: manticoresoftware/clt@0.2.3 + with: + image: manticore-load + test_prefix: test/clt-tests/ + run_args: --privileged \ No newline at end of file diff --git a/test/Dockerfile b/test/Dockerfile new file mode 100644 index 0000000..8f8c7e5 --- /dev/null +++ b/test/Dockerfile @@ -0,0 +1,3 @@ +FROM ghcr.io/manticoresoftware/manticoresearch:test-kit-latest +COPY .. /manticore-load/ +WORKDIR /manticore-load \ No newline at end of file diff --git a/test/build.sh b/test/build.sh new file mode 100755 index 0000000..6320769 --- /dev/null +++ b/test/build.sh @@ -0,0 +1,2 @@ +#!/bin/bash +docker build --platform linux/amd64 --file=Dockerfile --load -t manticore-load .. diff --git a/test/clt-tests/.patterns b/test/clt-tests/.patterns new file mode 100755 index 0000000..e69de29 diff --git a/test/clt-tests/help.rec b/test/clt-tests/help.rec new file mode 100644 index 0000000..e536fa8 --- /dev/null +++ b/test/clt-tests/help.rec @@ -0,0 +1,13 @@ +––– input ––– +searchd > /dev/null +––– output ––– +––– input ––– +sleep 3 +––– output ––– +––– input ––– +cd /manticore-load +––– output ––– +––– input ––– +./manticore-load --help|head -1 +––– output ––– +Usage: ./manticore-load [options] [--together [options]...]