Skip to content

Commit

Permalink
make sure show_subclassing.sh output is sorted
Browse files Browse the repository at this point in the history
  • Loading branch information
texadactyl committed Jan 30, 2025
1 parent e0bd72d commit 7365060
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions show_subclassing.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ fi
# 1. Find all occurences of main.java and grep all "class" statements, keeping the file paths (-H) and ignoring case (-i).
# 2. From that, ignore case and throw out (-v) the "class main" statements.
# 3. From that, remove the directory prefix, yielding only the jacotest case (directory) name.
# 4. From that, sort.
#
# 1 vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv 2 vvvvvvvvvvvvvvvvvvv 3 vvvvvvvvvvvvvvvvvvvvvv
# 1 vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv 2 vvvvvvvvvvvvvvvvvvv 3 vvvvvvvvvvvvvvvvvvvvvv 4 vv
echo
echo $MYNAME': Jacotest case files exhibiting subordinate classes (duplicate entries are possible):' 2>&1 | tee $MYNAME.log
echo 2>&1 | tee -a $MYNAME.log
find ./tests -name main.java -exec grep -iH " class " {} \; 2>&1 | grep -iv "class main" 2>&1 | sed -e "s/\.\/tests\///" 2>&1 | tee -a $MYNAME.log
find ./tests -name main.java -exec grep -iH " class " {} \; 2>&1 | grep -iv "class main" 2>&1 | sed -e "s/\.\/tests\///" | sort 2>&1 | tee -a $MYNAME.log

0 comments on commit 7365060

Please sign in to comment.