Skip to content

Commit

Permalink
CLT tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sanikolaev committed Jan 2, 2025
1 parent 5e75007 commit abfa5e2
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
with:
image: manticore-load
test_prefix: test/clt-tests/
run_args: --privileged
3 changes: 3 additions & 0 deletions test/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM ghcr.io/manticoresoftware/manticoresearch:test-kit-latest
COPY .. /manticore-load/
WORKDIR /manticore-load
2 changes: 2 additions & 0 deletions test/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
docker build --platform linux/amd64 --file=Dockerfile --load -t manticore-load ..
Empty file added test/clt-tests/.patterns
Empty file.
13 changes: 13 additions & 0 deletions test/clt-tests/help.rec
Original file line number Diff line number Diff line change
@@ -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]...]

0 comments on commit abfa5e2

Please sign in to comment.