mirror of
https://codeberg.org/scip/anydb.git
synced 2025-12-18 13:01:03 +01:00
lots of changes:
- added man command - added unit tests - fixed import+export file parameters (now -o and -r respectively) - added README + License - added ci pipelines
This commit is contained in:
17
t/files.txtar
Normal file
17
t/files.txtar
Normal file
@@ -0,0 +1,17 @@
|
||||
# simple file, we cannot use redirection here, so dd is our friend
|
||||
exec dd if=/dev/random of=file.txt count=5 bs=10
|
||||
|
||||
# add file to db
|
||||
exec anydb -f test.db set datum -r file.txt
|
||||
|
||||
# check for existence
|
||||
exec anydb -f test.db get datum -o out.txt
|
||||
exists out.txt
|
||||
|
||||
# check if its filled (50 bytes == count=5 x bs=10)
|
||||
exec ls -l out.txt
|
||||
stdout 50
|
||||
|
||||
# look if it's inside the db
|
||||
exec anydb -f test.db ls
|
||||
stdout datum.*binary-content
|
||||
Reference in New Issue
Block a user