#!/bin/bash # This script generate one C source code # - unit to be tested # - funtion that performs the test (Test Procedure) # 1st argument: generated file name # 2nd argument: test_function.c # 3rd argument: unit under test # begin with unit to be tested echo "#include \"$3\"" > $1 # followed by test_function.c cat $2 >> $1 #eof