#!/bin/bash # Author: Neal Gompa # Skip if older than CentOS 8 if [ "$centos_ver" -lt "8" ]; then t_Log "annobin does not exist pre-c8 => SKIP" exit 0 fi # Run the test t_Log "Running $0 - build a hello world program with gcc using annobin" BUILTPROG=$(mktemp) cat < int main() { printf("Hello World!\n"); return 0; } EOF ${BUILTPROG} | grep -q "Hello World" t_CheckExitStatus $? rm -f ${BUILTPROG}