Skip to content
Snippets Groups Projects
Unverified Commit 75dbf467 authored by Viorel-Gabriel MOCANU (94548)'s avatar Viorel-Gabriel MOCANU (94548) :ski:
Browse files

checker: Update checker


- Update `checker.sh`.
- Update `run_all.sh` to display `Total` points at the beginning of the
  line.

Signed-off-by: default avatarGabriel Mocanu <viorel.mocanu@upb.ro>
parent 6c639556
No related branches found
No related tags found
No related merge requests found
Pipeline #44394 passed
......@@ -5,13 +5,7 @@
rm -fr ../tests/
cp -r "$CHECKER_DATA_DIRECTORY"/../tests ..
# Everything happens in the tests/ directory.
# Checking and grading happens in the tests/ directory.
pushd ../tests > /dev/null || exit 1
echo -e "\n\n### RUNING CHECKER\n\n"
make check
echo -e "\n\n### RUNING LINTER\n\n"
make lint
./grade.sh
popd > /dev/null || exit 1
......@@ -7,7 +7,7 @@ script=./_test/run_test.sh
exec_name="mini-shell"
if test -z "$SRC_PATH"; then
SRC_PATH=$(pwd)/../src
SRC_PATH=$(pwd)/../src
fi
ln -fn "$SRC_PATH"/"$exec_name" .
......@@ -18,7 +18,7 @@ bash "$script" init
# bash "$script" check.
for i in $(seq $first_test $last_test); do
bash "$script" "$i"
bash "$script" "$i"
done | tee results.txt
grep -a '\[.*\]$' results.txt | awk -F '[] /[]+' '
......@@ -31,7 +31,7 @@ BEGIN {
}
END {
printf "\n%66s %3d/100\n", "Total:", sum;
printf "\n%s %3d/100\n", "Total:", sum;
}'
# Cleanup testing environment.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment