Skip to content

Commit

Permalink
Test: Fix issue when clamav not installed to PATH
Browse files Browse the repository at this point in the history
Also add example to README for when clamav not installed to PATH.
  • Loading branch information
val-ms committed May 26, 2022
1 parent fac86df commit 7c6d604
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,24 @@ Install:
cmake --build . --target install
```

#### Additional Build Examples

Build with a specific LLVM version and specific ClamAV install that installs to
local directory:
```bash
cmake .. \
-D CMAKE_INSTALL_PREFIX=install \
-D ENABLE_TESTS=ON \
-D LLVM_ROOT=/usr/lib/llvm-8 \
-D ClamAV_HOME=$HOME/clams/0.105.0

make -j12

ctest -V

make install
```

## Change Log

For information about the features in this and prior releases, read
Expand Down
2 changes: 1 addition & 1 deletion test/02_basic_runtime_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def test_00_run_test(self):
outFile = os.path.join(SAMPLEDIR, 'file')
self.execute_command (f'echo {SIGSTRING} > {outFile}')

command = f'clamscan --bytecode-unsigned -d {SIGDIR} {SAMPLEDIR}'
command = f'{self.clamscan} --bytecode-unsigned -d {SIGDIR} {SAMPLEDIR}'
output = self.execute_command (command)

self.verify_output(output.out, expected='Clamav-Unit-Test-Signature.02 FOUND')
Expand Down

0 comments on commit 7c6d604

Please sign in to comment.