PDA

View Full Version : Regarding Cygwin



anbucygwin
01-10-2006, 05:43 AM
Hi,
I am using Cygwin for running test scripts using make file.
In my old version of cygwin i dont have any problem with running scripts. But when i use cygwin new version to run Makefile i get Make file error.
The make file which i use inturn call other make files.
I get Makefile error in all those lines where i call Makefile inturn.
Kindly can anybody give a solution to this problem.

Twey
01-10-2006, 04:08 PM
You might want to include:
a) the exact error(s)
b) your version of gcc
c) the contents of the Makefile(s)

anbucygwin
01-24-2006, 12:34 PM
Hi,
Sorry for late response...
I have a directory structure in which it has a Makefile in one of the folders.
we used to write scripts and keep in a separate folders.
All the source files to be tested is kept in one folder.

In cygwin we used to set the path for the Makefile.Now we use commands like
1) make run
2) make cover
3) make clean
to run our test scripts,produce coverage and to clean some *.obj files produced.


The Makefile inturn calls for some Makefiles(eg., clean.mak,cover.mak) to perform the operation that we give in cygwin command prompt

I will give a part of makefile here...

# Makefile to build and execute low-level tests.
#
# usage:
# make -- compile and link
# make run -- load into debugger and go
# make cover -- generate coverage results
# make clean -- delete object files and other stuff
#
# -- To specify which test on the command line:
# make TEST=my_test
# make run TEST=my_test
#
##############################################################
# Test name
# Do not include .c in filename
#
# TEST will normally be provided on the command line, as in:
# make run TEST=csu02_15_02_t0002
#
# That is how it is called from the "run_all" script.
#
# When developing a test, you may specify the test here so that
# you can just type "make" or "make run". The value can still
# be set (overridden) from the command line. So go ahead and
# change it as necessary.

TEST = csu02_01_01_t0001

###############################################################
# The rest of the makefile should be the same for all tests for
# a given CSU.
###############################################################

# Location of low-level tests. Do not include trailing /

TEST_DIR = ../testcases

# Unit Under Test name and directory
# Do not include .c in filename or trailing / in dir name.

UUT = ohdf_process_io
UUT_DIR = ../../../../../cpiom/dev/env2/ohdf_v1/ohdf_app_env/SRC/io

# This is the default target. If you just type "make" you get the
# binary image.
all: $(TEST).exe

######################
# Set common variables
######################

include ../../../../UTIL/LL_GCC/make.defs

#####################################
# Low-level test reporting functions.
#####################################

include $(UTIL_DIR)/lltutil.mak

##############
# IO functions. Needed for I/O process tests (CSC02)
##############

include $(UTIL_DIR)/io.mak


##################
# Execute the test
##################
# This provides a "run" target to execute the test.

include $(UTIL_DIR)/run.mak


when we run this makefile in cygwin command prompt by setting the respective path it works for cywin in my system but when we run the same script in some system it shows makefile error.

I think it must be a problem with including pakages while downloading cygwin.But really i cant find the solution.
Kindly give me a solution.

Twey
01-24-2006, 05:43 PM
a) the exact error(s)
b) your version of gcc
c) the contents of the Makefile(s)OK, we've got c). What about a) and b)? :)