From f33f0a6a853f64732ff8a7f005779b9dcd6acd57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patryk=20=C5=BBywica?= Date: Fri, 28 Sep 2018 09:59:26 +0200 Subject: [PATCH] Review checking script added --- scripts/.check_reviews.sh.swp | Bin 0 -> 12288 bytes scripts/check_reviews.sh | 41 +++++++++++++++++++ z3-use-case/reviews/329575/review-34af7.md | 11 +++++ z3-use-case/reviews/329575/solution-34af7.md | 35 ++++++++++++++++ 4 files changed, 87 insertions(+) create mode 100644 scripts/.check_reviews.sh.swp create mode 100755 scripts/check_reviews.sh create mode 100644 z3-use-case/reviews/329575/review-34af7.md create mode 100644 z3-use-case/reviews/329575/solution-34af7.md diff --git a/scripts/.check_reviews.sh.swp b/scripts/.check_reviews.sh.swp new file mode 100644 index 0000000000000000000000000000000000000000..26ef28193ed259ab59aed67bbc037dc6dee8424e GIT binary patch literal 12288 zcmeI2O>YxN7{`a6x=>y#&V91kDlcgLmP1j%R2D%kY7(QYgGJ*&*1NOz%J%NEvmrrB zsl=@Z4n=|sqUsmuyuEWCM$_ zj6zjhs$Hp@l~Vcak45Fgew3)9)0Ix|Ml5gnaz_7w=Z5v6x9Z_XuGjz@U;}J` z4X^<=zy{a=8(;%$fDN#LPtbtv3i0<5As&5!7lYaUouSC*U!70Pcfd!7tzr z_z7%-5PS<~18jf|umLu}2G{@__&*JJcrAcFe;5r7b}O2kFi31a zAUTMV+weND5}lp@lvw_5WX8;dHk9l5xgx0i`-PV|j5Yt7|RD$~@Ib}x`hNkv7n z_V3zlNh-lwx3jFw+5$2g=dF+P)U1gxRuapglXTN4E1?to*C0Z}W2hRlv#8Ek7wc=6 z=H}3sHmX})X}e?wbec7?!^%E+Oj`X^+JCbHTbWNVl oC${Qcp!0s<%H13J@w_l|aNMVLY(r9IeAK6lZ9gcsZCtT`1CJa~lK=n! literal 0 HcmV?d00001 diff --git a/scripts/check_reviews.sh b/scripts/check_reviews.sh new file mode 100755 index 0000000..100d707 --- /dev/null +++ b/scripts/check_reviews.sh @@ -0,0 +1,41 @@ +#/bin/bash + +if [ "$#" -ne 2 ]; then + echo "Usage 'scripts/check_reviews.sh '" + exit 1 +fi + +TASK=$1 +STUDENT=$2 + +VALID=1 +SUM=0 +for f in $TASK/reviews/$STUDENT/review-*.md; do + SCORE=`head -n1 $f | cut -d':' -f2 | xargs` + SUM=$((SUM+SCORE)) + + SL=`grep "# Strengths / Mocne strony" $f -A3 | grep "^\\*" | wc -l` + WL=`grep "# Weaknesses / Słabe strony" $f -A3 | grep "^\\*" | wc -l` + + if [ "$SL" != "3" ] || [ "$WL" != "3" ]; then + echo "Wrong number of remarks." + VALID=0 + fi + + WRONG=`grep "^\\*[[:space:]]*$" $f | wc -l` + if [ "$WRONG" != "0" ]; then + echo "Review contain empty remark" + VALID=0 + fi +done +if [ "$SUM" != "10" ]; then + printf "Total number of points for reviews (%d) is greater then 10.\n" $SUM + VALID=0 +fi + + +if [ "$VALID" = "1" ]; then + echo "\nYour reviews are valid !" +else + echo "\nYour reviews are NOT VALID !" +fi diff --git a/z3-use-case/reviews/329575/review-34af7.md b/z3-use-case/reviews/329575/review-34af7.md new file mode 100644 index 0000000..8ae4af6 --- /dev/null +++ b/z3-use-case/reviews/329575/review-34af7.md @@ -0,0 +1,11 @@ +# Score: 1 + +# Strengths / Mocne strony +* something 1 (very important) +* somethins 2 (important) +* something 3 + +# Weaknesses / Słabe strony +* something 1 (imporatant) +* something 2 (very very important) +* something 3 (moderate) diff --git a/z3-use-case/reviews/329575/solution-34af7.md b/z3-use-case/reviews/329575/solution-34af7.md new file mode 100644 index 0000000..3af2d6d --- /dev/null +++ b/z3-use-case/reviews/329575/solution-34af7.md @@ -0,0 +1,35 @@ +# Use Case 1: System usage / Użycie systemu + +## Primary actor / Aktor podstawowy: ... + +## Main actors and theirs goals and expectations / Główni odbiorcy i oczekiwania względem systemu +* ... +* ... + +## Preconditions / Warunki wstępne +Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. + +## Postconditions / Warunki końcowe +Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. + +## The main scenario (main or happy path) / Scenariusz główny (ścieżka podstawowa) + +1. ... +2. ... + +## Extensions (alternative paths) / Rozszerzenia (ścieżki alternatywne): +* ... +* ... + +## Additional requirements / Wymagania specjalne +* ... +* ... + +## Technological requirements and restrictions on the entered data / Wymagania technologiczne oraz ograniczenia na wprowadzane dane +* ... +* ... + +## Open issues / Kwestie otwarte +* ... +* ... +