diff options
author | Oskar <[email protected]> | 2024-07-21 18:26:14 +0200 |
---|---|---|
committer | Oskar <[email protected]> | 2024-07-21 18:26:14 +0200 |
commit | 2e08693557019529cf8a4daa7931d3414cbeca51 (patch) | |
tree | 9d5744ecf075a0e8537c971ec3dc441509b3fdb3 /test | |
parent | 730e03e60740905f3c97bed11db637e3dff2801a (diff) |
New testing scripts to generate files and delete. Also fixed a segfault issue happening if the program fails during fill_lfc, it will call free_lfc, but because we haven set the 'next' node to NULL, we segfault.
Diffstat (limited to 'test')
-rwxr-xr-x | test/test_deletefiles.sh | 6 | ||||
-rwxr-xr-x | test/test_generate_delete.sh | 7 |
2 files changed, 13 insertions, 0 deletions
diff --git a/test/test_deletefiles.sh b/test/test_deletefiles.sh new file mode 100755 index 0000000..9cf917d --- /dev/null +++ b/test/test_deletefiles.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +files="1000b.img 1000mb.img 1023b.img 1023kib.img 1024b.img 1024kib.img 1.1gib.img 1gib.img 1KB.img 1KiB.img 1mb.img 1mib.img 500kib.img thisfile.txt ts_file1.txt ts_file2.txt ts_file3.txt" +options="-v" + +./tsr-TESTING $options $files diff --git a/test/test_generate_delete.sh b/test/test_generate_delete.sh new file mode 100755 index 0000000..6764682 --- /dev/null +++ b/test/test_generate_delete.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +for i in {1..10} +do + ./gentestfiles.sh + ./test_deletefiles.sh +done |