Last active
December 10, 2020 16:31
-
-
Save scottmarlow/d4a13d15e7c0ea83d35004445b4b84f0 to your computer and use it in GitHub Desktop.
Collect Java dependencies for Jakarta EE Platform TCK tests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export OUTPUT=/tmp/tckreportupdated3.txt | |
tck | |
echo "generate TCK report" > $OUTPUT | |
cd src/com/sun/ts/tests | |
for d in */ ; do | |
cd "$d" | |
PLATFORM_SPEC_TESTS="$(grep -r -o "JavaEE:SPEC:" | wc -l)" | |
if [ ! -z "$PLATFORM_SPEC_TESTS" ] | |
then | |
echo "Note: Verifies ${d///} $PLATFORM_SPEC_TESTS Platform Specification assertions" >> $OUTPUT | |
fi | |
echo "All imports in ${d///}" >> $OUTPUT | |
grep -r -o --no-filename "import .*jakarta\..*" --include=*.java| grep -v "com.sun.ts.tests" | sort | uniq >> $OUTPUT | |
echo -e " end of ${d///}\n" >> $OUTPUT | |
cd .. | |
done | |
tck | |
cd src/com/ibm | |
for d in */ ; do | |
cd "$d" | |
PLATFORM_SPEC_TESTS="$(grep -r -o "JavaEE:SPEC:" | wc -l)" | |
if [ ! -z "$PLATFORM_SPEC_TESTS" ] | |
then | |
echo "Note: Verifies ${d///} $PLATFORM_SPEC_TESTS Platform Specification assertions" >> $OUTPUT | |
fi | |
echo "All imports in ${d///}" >> $OUTPUT | |
grep -r -o --no-filename "import .*jakarta\..*" --include=*.java| sort | grep -v "com.sun.ts.tests" | uniq >> $OUTPUT | |
echo -e " end of ${d///}\n" >> $OUTPUT | |
cd .. | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment