-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathtestdecomment
More file actions
executable file
·34 lines (27 loc) · 1.01 KB
/
Copy pathtestdecomment
File metadata and controls
executable file
·34 lines (27 loc) · 1.01 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
#!/bin/bash
#---------------------------------------------------------------------
# testdecomment
# Author: Bob Dondero
#---------------------------------------------------------------------
#---------------------------------------------------------------------
# testdecomment is a testing script for the decomment program.
# To run it, issue the command "./testdecomment".
# To use it, the working directory must contain:
# (1) decomment, the executable version of your program, and
# (2) sampledecomment, the given executable binary file.
# The script executes decomment and sampledecomment on each file
# in the working directory that ends with ".txt", and compares the
# results.
#---------------------------------------------------------------------
# Validate the argument.
if [ "$#" -gt "0" ]; then
echo "Usage: testdecomment"
exit 1
fi
echo
# Call testdecommentdiff for each file in the working directory
# that ends with ".txt", passing along the argument.
for file in *.txt
do
./testdecommentdiff $file
done