From 9838c49aeb3674d97c018632058aa187522fbe0e Mon Sep 17 00:00:00 2001 From: Pablo Greco Date: Mar 19 2019 20:56:48 +0000 Subject: Add test for gcc-gnat --- diff --git a/tests/p_gcc-gnat/0-install_gcc-gnat.sh b/tests/p_gcc-gnat/0-install_gcc-gnat.sh new file mode 100755 index 0000000..c60a088 --- /dev/null +++ b/tests/p_gcc-gnat/0-install_gcc-gnat.sh @@ -0,0 +1,13 @@ +#!/bin/bash +# Author: Pablo Greco + +# Install gcc-gnat +t_Log "Running $0 - installing gcc-gnat." + + +# Install git +if [ $centos_ver -ge 7 ]; then + t_InstallPackage gcc-gnat +else + t_Log "This test is skipped before CentOS7." +fi diff --git a/tests/p_gcc-gnat/test_gcc-gnat.sh b/tests/p_gcc-gnat/test_gcc-gnat.sh new file mode 100755 index 0000000..ca3940a --- /dev/null +++ b/tests/p_gcc-gnat/test_gcc-gnat.sh @@ -0,0 +1,29 @@ +#!/bin/sh +# Author: Pablo Greco + +t_Log "Running $0 - gcc-gnat can build a hello.adb" + +# creating source code +pushd '/var/tmp' >/dev/null +FILE='/var/tmp/gcctesthello.adb' +EXE='/var/tmp/gcctesthello' + +cat > $FILE </dev/null