Skip to content

Instantly share code, notes, and snippets.

View swimmwatch's full-sized avatar
🏠
Working from home

Dmitry Vasiliev swimmwatch

🏠
Working from home
View GitHub Profile
@swimmwatch
swimmwatch / test.sh
Last active October 15, 2020 10:27
Simple lab checker for C/C++ programs that is being compiled from Make. Script reads test cases from `tests` directory and compares output from program with text after `out:` separator in test case file.
#!/bin/bash
# --- exit codes ---
TESTS_SUCCESS=0
TESTS_FAILURE=1
# --- END exit codes ---
# --- constants ---