olabusayoT commented on issue #158:
URL: https://github.com/apache/daffodil-sbt/issues/158#issuecomment-4961793169

   The above proposed solution doesn't work as we expected it to. We need to 
investigate another solution. In the mean time, the following bash script works
   
   ```bash
     OUTPUT=$(sbt --batch projects 2>/dev/null)
     ROOT=$(echo "$OUTPUT" | grep -E '^\[info\]\s{3}\*\s\S+$' | awk '{print 
$NF}')
     if grep -qF '.daffodilProject(' build.sbt 2>/dev/null
     then
       SUBPROJECTS=$(echo "$OUTPUT" | grep -E '^\[info\]\s{5}\S+$' | awk 
'{print $NF}')
     else
       SUBPROJECTS=""
     fi
     PROJECTS="$ROOT $SUBPROJECTS"
     for PROJECT in $PROJECTS
     do
       sbt $PROJECT/test
     done
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to