tests/make: Add 0088-comment test - scc - simple c99 compiler (HTM) git clone git://git.simple-cc.org/scc (DIR) Log (DIR) Files (DIR) Refs (DIR) Submodules (DIR) README (DIR) LICENSE --- (DIR) commit b651c523d5aadffbcdd1739086a206a66bdaecaf (DIR) parent a523a8d010c6351d0a5688e7cda7702139b085b6 (HTM) Author: Roberto E. Vargas Caballero <k0ga@shike2.com> Date: Sun, 21 Jan 2024 12:05:41 +0100 tests/make: Add 0088-comment test Diffstat: A tests/make/execute/0088-comment.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+), 0 deletions(-) --- (DIR) diff --git a/tests/make/execute/0088-comment.sh b/tests/make/execute/0088-comment.sh @@ -0,0 +1,20 @@ +#!/bin/sh + +trap 'rm -f $tmp1 $tmp2' EXIT INT TERM QUIT HUP + +tmp1=tmp1.$$ +tmp2=tmp2.$$ + +cat >$tmp2 <<EOF +Hello +World! +EOF + +scc-make -f- <<'EOF' > $tmp1 2>&1 +all: + @echo Hello +# This is a comment + @echo World! +EOF + +diff $tmp1 $tmp2