2020-04-02 10:01:44 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
# Unofficial Bash Strict Mode
|
|
|
|
set -euo pipefail
|
|
|
|
IFS='
|
|
|
|
'
|
|
|
|
|
|
|
|
script_dirS=$(cd -P "$(dirname "$BASH_SOURCE")" &>/dev/null && pwd)
|
|
|
|
|
|
|
|
challenge() {
|
2021-06-30 17:26:59 +00:00
|
|
|
submitted=$(cd "$1" && bash "$script_dirS"/student/countfiles.sh)
|
|
|
|
expected=$(cd "$1" && bash "$script_dirS"/solutions/countfiles.sh)
|
2020-04-02 10:01:44 +00:00
|
|
|
|
|
|
|
diff <(echo "$submitted") <(echo "$expected")
|
|
|
|
}
|
|
|
|
|
|
|
|
challenge cl-camp5/folder1
|
|
|
|
challenge cl-camp5/folder2
|