-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_script.sh
More file actions
executable file
·757 lines (604 loc) · 19.4 KB
/
Copy pathtest_script.sh
File metadata and controls
executable file
·757 lines (604 loc) · 19.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
#!/bin/bash
# NOTE: Most tests rely on an already working interactive mode and
# a working Makfile
#
#
EXECUTABLE="./pseudo-shell"
TEST_DIR="test_pseudo_shell"
FILE1="test_file1.txt"
FILE2="test_file2.txt"
# Setup test environment
setup_test_environment() {
mkdir $TEST_DIR
cp $EXECUTABLE $TEST_DIR
echo "This is a test file." > $TEST_DIR/$FILE1
echo "This is another test file." > $TEST_DIR/$FILE2
}
cleanup_test_environment() {
rm -drf $TEST_DIR
}
test_ls_command() {
echo "Testing 'ls' command..."
cd $TEST_DIR
valgrind_output=$(valgrind ../$EXECUTABLE 2>&1 <<-EOF
ls
exit
EOF
)
pseudo_shell_output=$(../$EXECUTABLE <<-EOF
ls
exit
EOF
)
# Define the expected output
expected_output=">>> .. . test_file1.txt pseudo-shell test_file2.txt
>>> "
mem_errors=$(echo "$valgrind_output" | grep 'ERROR SUMMARY:')
leaks_detected=$(echo "$valgrind_output" | grep -Eo 'definitely lost: [^0]|indirectly lost: [^0]|possibly lost: [^0]|still reachable: [^0]')
# Check if there were memory errors or leaks reported by valgrind
if echo "$mem_errors" | grep -q "0 errors"; then
:
else
echo "Memory errors detected in 'ls'."
fi
if [ -n "$leaks_detected" ]; then
echo "Memory leaks detected in 'ls'."
else
:
fi
outSorted=
# Compare the expected output with the pseudo-shell output
if [ $(echo "$pseudo_shell_output" | grep -o . | sort | tr -d "\n") == $(echo "$expected_output" | grep -o . | sort | tr -d "\n" ) ]; then
echo "'ls' command output matches expected output."
else
echo "ERROR: 'ls' command output does not match expected output. it does not have to be in order but this is expected output"
echo "$expected_output"
echo "Your output"
echo "$pseudo_shell_output" > out.txt
echo "Note: make sure you are listing all files with space inbetween. Also print the prompt like this '>>> '"
fi
echo ""
cd ..
}
# Function to test 'cat' command
test_cat_command() {
echo "Testing 'cat' command..."
cd $TEST_DIR
# Prepare the test file and content
echo "Sample content for cat test." > test_cat_file.txt
valgrind_output=$(valgrind ../$EXECUTABLE 2>&1 <<-EOF
cat test_cat_file.txt
exit
EOF
)
pseudo_shell_output=$(../$EXECUTABLE <<-EOF
cat test_cat_file.txt
exit
EOF
)
expected_output=">>> Sample content for cat test.
>>> "
# Capture any valgrind memory errors or leaks
mem_errors=$(echo "$valgrind_output" | grep 'ERROR SUMMARY:')
leaks_detected=$(echo "$valgrind_output" | grep -Eo 'definitely lost: [^0]|indirectly lost: [^0]|possibly lost: [^0]|still reachable: [^0]')
# Check if there were memory errors or leaks reported by valgrind
if echo "$mem_errors" | grep -q "0 errors"; then
:
else
echo "Memory errors detected in 'cat'."
fi
if [ -n "$leaks_detected" ]; then
echo "Memory leaks detected in 'cats'."
else
:
fi
# Compare the expected output with the pseudo-shell output
if [ "$pseudo_shell_output" == "$expected_output" ]; then
echo "'cat' command output matches expected output."
:
else
echo "Error: 'cat' command output does not match expected output."
diff -u <(echo "$pseudo_shell_output") <(echo "$expected_output")
:
fi
echo ""
cd ..
}
test_pwd_command() {
echo "Testing 'pwd' command..."
cd $TEST_DIR
valgrind_output=$(valgrind ../$EXECUTABLE 2>&1 <<-EOF
pwd
exit
EOF
)
pseudo_shell_output=$(../$EXECUTABLE <<-EOF
pwd
exit
EOF
)
# Define the expected output, assuming $TEST_DIR is an absolute path
expected_output=">>> $PWD
>>> "
mem_errors=$(echo "$valgrind_output" | grep 'ERROR SUMMARY:')
leaks_detected=$(echo "$valgrind_output" | grep -Eo 'definitely lost: [^0]|indirectly lost: [^0]|possibly lost: [^0]|still reachable: [^0]')
# Check if there were memory errors or leaks reported by valgrind
if echo "$mem_errors" | grep -q "0 errors"; then
:
else
echo "Memory errors detected in 'pwd'."
fi
if [ -n "$leaks_detected" ]; then
echo "Memory leaks detected in 'pwd'."
else
:
fi
# Compare the expected output with the pseudo-shell output
if [ "$pseudo_shell_output" == "$expected_output" ]; then
echo "'pwd' command output matches expected output."
:
else
echo "Error: 'pwd' command output does not match expected output."
diff -u <(echo "$pseudo_shell_output") <(echo "$expected_output")
:
fi
echo ""
cd ..
}
test_mkdir_command() {
echo "Testing 'mkdir' command..."
cd $TEST_DIR
# Define the name of the new directory to create
NEW_DIR="test_new_dir"
# Run the 'mkdir' command via the pseudo-shell executable and check for memory issues using EOF format
valgrind_output=$(valgrind ../$EXECUTABLE 2>&1 <<-EOF
mkdir $NEW_DIR
exit
EOF
)
rm -drf $TEST_DIR
pseudo_shell_output=$(../$EXECUTABLE <<-EOF
mkdir $NEW_DIR
exit
EOF
)
# Check if the new directory was successfully created
dir_created="[ -d "$NEW_DIR" ] && echo 'Directory created' || echo 'Directory not created'"
# Check if there were memory errors or leaks reported by valgrind
mem_errors=$(echo "$valgrind_output" | grep 'ERROR SUMMARY:')
leaks_detected=$(echo "$valgrind_output" | grep -Eo 'definitely lost: [^0]|indirectly lost: [^0]|possibly lost: [^0]|still reachable: [^0]')
# Check if there were memory errors or leaks reported by valgrind
if echo "$mem_errors" | grep -q "0 errors"; then
:
else
echo "Memory errors detected in 'mkdir'."
fi
if [ -n "$leaks_detected" ]; then
echo "Memory leaks detected in 'mkdir'."
else
:
fi
# Compare the expected directory creation with the actual result and report memory leaks
if [ -d "$NEW_DIR" ]; then
echo "'mkdir' command output matches expected output."
else
echo "Error: 'mkdir' command failed to create $NEW_DIR directory."
#echo "$mem_leak_msg"
fi
if [ ! -d "$NEW_DIR" ]; then
echo "Expected output: 'Directory created'"
echo "Actual output from pseudo-shell: $(eval $dir_created)"
diff -u <(echo "Directory created") <(echo "$(eval $dir_created)")
fi
echo ""
cd ..
}
test_cd_command() {
echo "Testing 'cd' command..."
cd $TEST_DIR
# Create a directory to change into
NEW_DIR="test_cd_dir"
mkdir $NEW_DIR
# Define the expected output, assuming $TEST_DIR/NEW_DIR is the absolute path to NEW_DIR
expected_output=">>> $PWD/$NEW_DIR
>>> "
# Run the 'cd' command followed by 'pwd' via the pseudo-shell executable and check for memory issues
valgrind_output=$(valgrind ../$EXECUTABLE 2>&1 <<-EOF
cd $NEW_DIR
pwd
exit
EOF
)
pseudo_shell_output=$(../$EXECUTABLE <<-EOF
cd $NEW_DIR
pwd
exit
EOF
)
# Capture any valgrind memory errors or leaks
mem_errors=$(echo "$valgrind_output" | grep 'ERROR SUMMARY:')
leaks_detected=$(echo "$valgrind_output" | grep -Eo 'definitely lost: [^0]|indirectly lost: [^0]|possibly lost: [^0]|still reachable: [^0]')
# Check if there were memory errors or leaks reported by valgrind
if echo "$mem_errors" | grep -q "0 errors"; then
:
else
echo "Memory errors detected in 'cd'."
fi
if [ -n "$leaks_detected" ]; then
echo "Memory leaks detected in 'cd'."
else
:
fi
# Compare the expected output with the pseudo-shell output
if [[ "$pseudo_shell_output" == *"$expected_output"* ]]; then
echo "'cd' command output matches expected output."
else
echo "Error: 'cd' command followed by 'pwd' output does not match expected output."
diff -u <(echo "$pseudo_shell_output") <(echo "$expected_output")
echo "THIS TEST RELYS ON A WORKING PWD"
fi
echo ""
cd ..
}
test_rm_command() {
echo "Testing 'rm' command..."
cd $TEST_DIR
# Create a file to remove
FILE_TO_REMOVE="test_rm_file.txt"
echo "This file will be removed." > "$FILE_TO_REMOVE"
# Run the 'rm' command via the pseudo-shell executable and check for memory issues
valgrind_output=$(valgrind ../$EXECUTABLE 2>&1 <<-EOF
rm $FILE_TO_REMOVE
exit
EOF
)
# Capture any valgrind memory errors or leaks
mem_errors=$(echo "$valgrind_output" | grep 'ERROR SUMMARY:')
leaks_detected=$(echo "$valgrind_output" | grep -Eo 'definitely lost: [^0]|indirectly lost: [^0]|possibly lost: [^0]|still reachable: [^0]')
if echo "$mem_errors" | grep -q "0 errors"; then
:
else
echo "Memory errors detected in 'rm'."
fi
if [ -n "$leaks_detected" ]; then
echo "Memory leaks detected in 'rm'."
else
:
fi
# Verify the file was successfully removed
if [ ! -f "$FILE_TO_REMOVE" ]; then
echo "'rm' command successfully removed the file."
else
echo "Error: 'rm' command failed to remove the file."
fi
echo ""
cd ..
}
#---------------------------
# CP tests
test_cp_base() {
local description="$1"
local src="$2"
local dst="$3"
local expected_dst="$4"
echo "=== Testing 'cp' command: $description ==="
if [[ -d "$src" ]]; then
mkdir -p "$src"
else
echo "Content of the source file." > "$src"
fi
echo "Executing: cp $src $dst"
valgrind_output=$(valgrind ../$EXECUTABLE 2>&1 <<-EOF
cp $src $dst
exit
EOF
)
process_valgrind_output "$valgrind_output"
verify_copy "$src" "$expected_dst" "$description"
echo ""
cd ..
}
process_valgrind_output() {
local valgrind_output="$1"
local mem_errors=$(echo "$valgrind_output" | grep 'ERROR SUMMARY:')
local leaks_detected=$(echo "$valgrind_output" | grep -Eo 'definitely lost: [^0]|indirectly lost: [^0]|possibly lost: [^0]|still reachable: [^0]')
if echo "$mem_errors" | grep -q "0 errors"; then
:
else
echo " - Memory errors detected!"
fi
if [ -n "$leaks_detected" ]; then
echo " - Memory leaks detected!"
else
:
fi
}
verify_copy() {
local src="$1"
local dst="$2"
local description="$3"
if [ -f "$dst" ] || [ -d "$dst" ]; then
if ! diff "$src" "$dst" > /dev/null; then
echo " - ERROR: Contents do not match for scenario '$description'."
else
echo "'cp' command successfully copied for scenario '$description'."
fi
else
echo "ERROR: 'cp' command failed to copy for scenario '$description'."
fi
}
test_cp_file_to_file() {
cd $TEST_DIR
test_cp_base "file to another file" "source_file.txt" "copied_file.txt" "copied_file.txt"
}
test_cp_file_to_dir() {
cd $TEST_DIR
mkdir -p "target_dir"
test_cp_base "file to directory" "source_file.txt" "target_dir/" "target_dir/source_file.txt"
}
test_cp_file_to_dir_file() {
cd $TEST_DIR
mkdir -p "target_dir"
echo "Content for file to dir/file test." > "source_file3.txt"
test_cp_base "file to dir/file" "source_file3.txt" "target_dir/source_file3.txt" "target_dir/source_file3.txt"
}
test_cp_dir_file_to_current() {
cd $TEST_DIR
mkdir -p "source_dir"
echo "Content for dir/file test." > "source_dir/current.txt"
test_cp_base "dir/file to current directory" "source_dir/current.txt" "../$TEST_DIR/" "current.txt"
}
test_cp_dir_file_to_dir_file() {
cd $TEST_DIR
echo "Content for dir/file test." > "source_dir/source_file2.txt"
test_cp_base "dir/file to dir/file" "source_dir/source_file2.txt" "target_dir/file2.txt" "target_dir/file2.txt"
}
test_cp_file_to_subdir() {
cd $TEST_DIR
mkdir -p "subdir"
test_cp_base "file to subdir" "source_file.txt" "subdir/" "subdir/source_file.txt"
}
#---------------------------
# MV
test_mv_base() {
local description="$1"
local src="$2"
local dst="$3"
local expected_dst="$4"
echo "=== Testing 'mv' command: $description ==="
# Setup source
if [[ -d "$src" ]]; then
mkdir -p "$src"
else
echo "Content of the source file." > "$src"
fi
echo "Executing: mv $src $dst"
valgrind_output=$(valgrind ../$EXECUTABLE 2>&1 <<-EOF
mv $src $dst
exit
EOF
)
process_valgrind_output "$valgrind_output"
verify_move "$src" "$expected_dst" "$description"
echo ""
cd ..
}
verify_move() {
local src="$1"
local dst="$2"
local description="$3"
if [ -f "$dst" ] || [ -d "$dst" ]; then
if [ -e "$src" ]; then
echo "ERROR: 'mv' command failed to remove the source for scenario '$description'."
else
echo "'mv' command successfully moved for scenario '$description'."
fi
else
echo "ERROR: 'mv' command failed to move for scenario '$description'."
fi
}
test_mv_file_to_file() {
cd $TEST_DIR
echo "HEY how are you" > "source_file.txt"
test_mv_base "file to another file" "source_file.txt" "moved_file.txt" "moved_file.txt"
}
test_mv_file_to_dir() {
cd $TEST_DIR
mkdir -p "target_dir"
echo "HEY how are you" > "source_file.txt"
test_mv_base "file to directory" "source_file.txt" "target_dir/" "target_dir/source_file.txt"
}
test_mv_file_to_dir_file() {
cd $TEST_DIR
mkdir -p "target_dir"
echo "Content for file to dir/file test." > "source_file3.txt"
test_mv_base "file to dir/file" "source_file3.txt" "target_dir/moved_source_file3.txt" "target_dir/moved_source_file3.txt"
}
test_mv_dir_file_to_current() {
cd $TEST_DIR
mkdir -p "source_dir"
echo "Content for dir/file test." > "source_dir/current.txt"
test_mv_base "dir/file to current directory" "source_dir/current.txt" "./moved_current.txt" "moved_current.txt"
}
test_mv_dir_file_to_dir_file() {
cd $TEST_DIR
mkdir -p "source_dir" "target_dir"
echo "Content for dir/file test." > "source_dir/source_file2.txt"
test_mv_base "dir/file to dir/file" "source_dir/source_file2.txt" "target_dir/moved_file2.txt" "target_dir/moved_file2.txt"
}
test_mv_file_to_subdir() {
cd $TEST_DIR
mkdir -p "subdir"
echo "tee hee" > "hehe.txt"
test_mv_base "file to subdir" "hehe.txt" "subdir/" "subdir/hehe.txt"
}
#---------------------------
#Test multiple commands
test_multiple_commands() {
cd $TEST_DIR
# Run the 'ls' command via the pseudo-shell executable and check for memory issues using EOF format
valgrind_output=$(valgrind ../$EXECUTABLE 2>&1 <<-EOF
ls; ls; ; ls ;
exit
EOF
)
pseudo_shell_output=$(../$EXECUTABLE <<-EOF
ls; ls; ; ls ;
exit
EOF
)
# Define the expected output
expected_output=">>> .. . pseudo-shell test_file1.txt test_file2.txt
.. pseudo-shell . test_file1.txt test_file2.txt
.. pseudo-shell . test_file1.txt test_file2.txt
>>> "
mem_errors=$(echo "$valgrind_output" | grep 'ERROR SUMMARY:')
leaks_detected=$(echo "$valgrind_output" | grep -Eo 'definitely lost: [^0]|indirectly lost: [^0]|possibly lost: [^0]|still reachable: [^0]')
# Check if there were memory errors or leaks reported by valgrind
echo "=== Testing Multiple Commands in the same line ==="
if echo "$mem_errors" | grep -q "0 errors"; then
:
else
echo "Memory errors detected in 'multiple commands same line'"
fi
if [ -n "$leaks_detected" ]; then
echo "Memory leaks detected in 'multiple commands same line'"
else
:
fi
# Compare the expected output with the pseudo-shell output
if [ $(echo "$pseudo_shell_output" | grep -o . | sort | tr -d "\n") == $(echo "$expected_output" | grep -o .| sort | tr -d "\n" ) ]; then
echo "'multiple commands on the same line' command output matches expected output."
else
echo "Error: 'multiple commands same line' command output does not match expected output."
diff -u <(echo "$pseudo_shell_output") <(echo "$expected_output")
fi
echo ""
cd ..
}
test_error_handling() {
cd $TEST_DIR
echo "=== Testing Error Handling ==="
echo "Testing with invalid command..."
test_invalid_command
echo "Testing with too many arguments..."
test_too_many_arguments
cd ..
}
test_invalid_command() {
local valgrind_output=$(valgrind ../$EXECUTABLE 2>&1 <<-EOF
lsl
exit
EOF
)
local pseudo_shell_output=$(../$EXECUTABLE 2>&1 <<-EOF
lsl
exit
EOF
)
echo "Checking for 'Error' in output for invalid command..."
if echo "$pseudo_shell_output" | grep -q "Error"; then
echo "Success: 'Error' detected for invalid command."
else
echo "ERROR: 'Error' not detected when expected."
fi
process_valgrind_output "$valgrind_output"
echo ""
}
test_too_many_arguments() {
local valgrind_output=$(valgrind ../$EXECUTABLE 2>&1 <<-EOF
ls arg1 arg2
exit
EOF
)
local pseudo_shell_output=$(../$EXECUTABLE 2>&1 <<-EOF
ls arg1 arg2
exit
EOF
)
echo "Checking for 'Error' in output for too many arguments..."
if echo "$pseudo_shell_output" | grep -q "Error"; then
echo "Success: 'Error' detected for command with too many arguments."
else
echo "ERROR: 'Error' not detected when expected for too many arguments."
fi
process_valgrind_output "$valgrind_output"
echo ""
}
test_file_mode() {
echo "=== Testing File Mode ==="
cd $TEST_DIR
# Prepare an input file with commands
echo "ls
ls
ls" > input.txt
echo ".. expected_output.txt pseudo-shell input.txt . output.txt test_file1.txt test_file2.txt
.. expected_output.txt input.txt pseudo-shell . output.txt test_file1.txt test_file2.txt
.. expected_output.txt input.txt pseudo-shell . output.txt test_file1.txt test_file2.txt " > expected_output.txt
# Execute the pseudo-shell in file mode with the input file and check for memory issues using Valgrind
valgrind_output=$(valgrind ../$EXECUTABLE -f input.txt 2>&1)
# Analyze Valgrind output for memory errors or leaks
process_valgrind_output "$valgrind_output"
# Now compare out.txt with the expected output
if cmp -s <(grep -o . output.txt | sort) <(grep -o . expected_output.txt | sort); then
echo "Success: Output matches expected output."
else
echo "ERROR: output.txt does not match expected output."
echo "DEV NOTE: there is no '>>>' in file mode"
diff -u output.txt expected_output.txt
fi
echo ""
cd ..
}
#---------------------------
# Compile the program
make clean
rm psuedo-shell
rm -drf $TEST_DIR
make
if [ ! -f "$EXECUTABLE" ]; then
echo "Error: Compilation failed, executable not found."
exit 1
fi
# Start the tests
echo ""
echo "Dev Notes: Make sure you are printing '>>> ' when prompting.
ls has spaces inbetween each item it lists and one at the end.
Dont forget new line characters.
Tests are dependent if exit is implemented"
setup_test_environment
echo ""
test_ls_command
test_cat_command
test_pwd_command
test_mkdir_command
test_cd_command
test_rm_command
echo "----------------------------------"
test_cp_file_to_file
test_cp_file_to_dir
test_cp_file_to_dir_file
test_cp_dir_file_to_current
test_cp_dir_file_to_dir_file
test_cp_file_to_subdir
echo "----------------------------------"
cleanup_test_environment
setup_test_environment
echo "----------------------------------"
test_mv_file_to_file
test_mv_file_to_dir
test_mv_file_to_dir_file
test_mv_dir_file_to_current
test_mv_dir_file_to_dir_file
test_mv_file_to_subdir
echo "----------------------------------"
cleanup_test_environment
setup_test_environment
echo ""
test_multiple_commands
test_error_handling
cleanup_test_environment
setup_test_environment
test_file_mode
cleanup_test_environment
echo "All tests completed."