Closes #591: Test for GCC image
@@ -42,6 +42,7 @@ imageTests+=(
[elasticsearch]='
'
[gcc]='
+ gcc-c-hello-world
[golang]='
@@ -0,0 +1 @@
+Hello World!
@@ -0,0 +1,6 @@
+#include <stdio.h>
+
+int main(){
+ printf("Hello World!");
+ return 0;
+}
@@ -0,0 +1,8 @@
+#!/bin/bash
+set -e
+image="$1"
+dirTest="$(dirname "$(readlink -f "$BASH_SOURCE")")"
+dirContainer='/usr/src/c'
+docker run --rm -v "$dirTest":"$dirContainer":ro -w "$dirContainer" "$image" sh -c 'gcc -o /hello-world hello-world.c && /hello-world'