Revision 6a695e94a9a567638b191c8d9bdbd02c634dccb3 authored by Ben Gyori on 07 May 2020, 03:01:00 UTC, committed by Ben Gyori on 07 May 2020, 03:01:00 UTC
1 parent 4d7445b
Raw File
runAllTests.sh
#!/usr/bin/env bash

# uncomment the lines below if processorAnnotator.type = "server"
# start up the Processors Server for tests to run against:
#echo 'Starting Processor Server...'
#sbt 'run-main org.clulab.processors.server.ProcessorServer' &
#sleep 20

overallExitCode=0

function runTest {
    echo "Testing '$1' suite..."
    sbt $1
    if [ $? -ne 0 ]; then
        echo "The '$1' suite failed!"
        overallExitCode=1
    fi
}

runTest "test"
runTest "processors/test"
runTest "main/test"
runTest "export/test"

#echo 'Stopping Processor Server...'
#sbt 'run-main org.clulab.processors.csshare.ShutdownProcessorServer'

if [ $overallExitCode -ne 0 ]; then
	echo "At least one test suite failed!"
	exit 1
fi
back to top