diff --git a/shufflecake-userland/test/main.c b/shufflecake-userland/test/main.c index 3125c0e..b696c75 100644 --- a/shufflecake-userland/test/main.c +++ b/shufflecake-userland/test/main.c @@ -49,10 +49,10 @@ int main() char *result = all_tests(); if (result != NULL) { - sflc_log_red("\nTEST FAILED: %s", result); + sflc_log_red("\nCRYPTO TEST FAILED: %s", result); } else { - sflc_log_green("\nALL TESTS PASSED"); + sflc_log_green("\nALL CRYPTO TESTS PASSED"); } return result != NULL; diff --git a/tests/consistency.sh b/tests/consistency.sh index 8627304..d78b5da 100755 --- a/tests/consistency.sh +++ b/tests/consistency.sh @@ -535,18 +535,18 @@ do_test() { echo "Deleting test files..." rm -f "${MNTPOINT1}/${TESTFILE1}" rm -f "${MNTPOINT2}/${TESTFILE2}" -bpx + # 4. Run fstrim to notify Shufflecake of the freed blocks echo "Running fstrim on $MNTPOINT1 (ext4)..." fstrim "$MNTPOINT1" if [ $? -ne 0 ]; then echo -e "${RED}WARNING: fstrim failed on \"$MNTPOINT1\". Slice recovery test may fail.${NC}" >&2; fi -bpx + echo "Running fstrim on $MNTPOINT2 (ext4)..." fstrim "$MNTPOINT2" if [ $? -ne 0 ]; then echo -e "${RED}WARNING: fstrim failed on \"$MNTPOINT2\". Slice recovery test may fail.${NC}" >&2; fi -bpx + sync # Ensure all I/O is flushed -bpx + # 5. Unmount and close the device echo "Unmounting volumes..." umount "$MNTPOINT1"