From 5a2b9582667e503861810bb6dd9ee3a79ae79f30 Mon Sep 17 00:00:00 2001 From: Fabian Arrotin Date: Jul 30 2019 15:29:01 +0000 Subject: Merge pull request #44 from 843723683/master Test for valac: Compile and run a HelloWorld program --- diff --git a/tests/p_valac/0-install_valac.sh b/tests/p_valac/0-install_valac.sh new file mode 100755 index 0000000..85db198 --- /dev/null +++ b/tests/p_valac/0-install_valac.sh @@ -0,0 +1,11 @@ +#!/bin/bash +# Author: Lz + +if [ "$centos_ver" -ne "7" ];then + t_Log "Package not included in CentOS $centos_ver => SKIP" + exit 0 +fi + +t_Log "$0 - installing valac" +t_InstallPackage vala + diff --git a/tests/p_valac/10-test_valac.sh b/tests/p_valac/10-test_valac.sh new file mode 100755 index 0000000..b38b498 --- /dev/null +++ b/tests/p_valac/10-test_valac.sh @@ -0,0 +1,36 @@ +#!/bin/bash + +# Author: Lz + +if [ "$centos_ver" -ne "7" ];then + t_Log "Package not included in CentOS $centos_ver => SKIP" + exit 0 +fi + +t_Log "Running $0 - Testing valac by running it with a basic file" + +# creating source code +FILE='/var/tmp/valac-test.vala' +EXE='/var/tmp/valac-test' + +cat > $FILE <