Skip to content
This repository has been archived by the owner on Jun 22, 2019. It is now read-only.

Commit

Permalink
Add runner to copy testcases to student project directory
Browse files Browse the repository at this point in the history
  • Loading branch information
mreza-kiani committed May 11, 2019
1 parent 2d93c76 commit 5f03159
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# ./run.sh <runner path> <student code path>

# defining colors
RED="\033[0;31m"
GREEN="\033[0;32m"
CYAN="\033[0;36m"
NC='\033[0m' # No Color

for i in {1..3}
do
if [ -d $2/$i ]; then
cp -r $1/Part-$i/testcases $1/Part-$i/test.sh $2/$i
echo -e "${GREEN}Part-$i copied!${NC}"
else
echo -e "${RED}There's no Part-$i!${NC}"
fi
done

0 comments on commit 5f03159

Please sign in to comment.