From 855dd23b395e903a71294fa5fc4395c2c6cd3272 Mon Sep 17 00:00:00 2001 From: Conrad Date: Thu, 16 Jan 2020 12:24:21 +0100 Subject: [PATCH] Added Unit Tests to prep script --- prep.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/prep.sh b/prep.sh index 2106377..4b9e307 100755 --- a/prep.sh +++ b/prep.sh @@ -37,6 +37,16 @@ runDoxygen(){ printLine "Doxygen finished." "\033[0;32m" } +runUnitTests(){ + printLine "Running Unit Tests..." + qmake src/IntelliUnitTest.pro || { printLine "ERROR: qmake not found!" "\033[0;33m"; return; } + cd src + make || { printLine "ERROR: make not found!" "\033[0;33m"; return; } + ./IntelliUnitTest + cd .. + printLine "Doxygen finished." "\033[0;32m" +} + gitCommit(){ printLine "Committing Changes to Git..." git add '*' || { printLine "ERROR: git not found!" "\033[0;33m"; return; }