You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
294 B
17 lines
294 B
1 year ago
|
#!/bin/bash -x
|
||
|
|
||
|
echo "Тест компилятора"
|
||
|
|
||
|
source ../../library/sh_lib.sh
|
||
|
|
||
|
check=0
|
||
|
|
||
|
gcc -o simple_test files/simple_test.c
|
||
|
check=$(eq_is_success ${check} 0)
|
||
|
|
||
|
./simple_test | grep -E '^Hello, world!$'
|
||
|
check=$(eq_is_success ${check} 0)
|
||
|
|
||
|
check_test_status ${check} "$0"
|
||
|
exit ${check}
|