Restore tests and script deleted in b8661825
This commit is contained in:
parent
14cabd62e5
commit
81e4a49708
12 changed files with 573 additions and 0 deletions
BIN
tests/clamav/bytecode.cvd
(Stored with Git LFS)
Normal file
BIN
tests/clamav/bytecode.cvd
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
tests/clamav/daily.cvd
(Stored with Git LFS)
Normal file
BIN
tests/clamav/daily.cvd
(Stored with Git LFS)
Normal file
Binary file not shown.
1
tests/clamav/freshclam.conf
Normal file
1
tests/clamav/freshclam.conf
Normal file
|
@ -0,0 +1 @@
|
|||
DatabaseMirror database.clamav.net
|
5
tests/clamav/hashes.json
Normal file
5
tests/clamav/hashes.json
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"bytecode.cvd": "a6800da4e3740b611e4f8a8e835be4a867abf8009af502e5bbf038d3ad162fa8",
|
||||
"daily.cvd": "da96006e191412806bac1a2cef5d48ed0ec1b46efa150cf0aa6c27e734f4c4f8",
|
||||
"main.cvd": "081884225087021e718599e8458ff6c9ee3cdebed8775dd8e445fc7b589d88a6"
|
||||
}
|
BIN
tests/clamav/main.cvd
(Stored with Git LFS)
Normal file
BIN
tests/clamav/main.cvd
(Stored with Git LFS)
Normal file
Binary file not shown.
15
tests/clamav/update-clamav-database.sh
Executable file
15
tests/clamav/update-clamav-database.sh
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
cd "$(dirname "${0}")"
|
||||
|
||||
rm ./*.cvd hashes.json || :
|
||||
|
||||
freshclam --datadir=. --config-file=freshclam.conf
|
||||
(for i in ./*.cvd;
|
||||
do echo '{}' |
|
||||
jq --arg path "$(basename "${i}")" \
|
||||
--arg sha256sum "$(sha256sum "${i}" | awk '{ print $1; }')" \
|
||||
'.[$path] = $sha256sum'; done) |
|
||||
jq -s add > hashes.json
|
Loading…
Add table
Add a link
Reference in a new issue