[Tinyos-contrib-commits]
CVS: tinyos-1.x/contrib/ustutt/ncunit/scripts
ncc_cl, NONE, 1.1 uninliner, NONE, 1.1 ncunit.target, NONE, 1.1
Andreas Lachenmann
lachenmann at users.sourceforge.net
Tue Feb 20 04:33:08 PST 2007
- Previous message: [Tinyos-contrib-commits]
CVS: tinyos-1.x/contrib/ustutt/ncunit/example
Makefile, NONE, 1.1 .cvsignore, NONE, 1.1 ToTestC.nc, NONE,
1.1 TestAssertM.nc, NONE, 1.1 TestAssert.nc, NONE,
1.1 ToTestM.nc, NONE, 1.1
- Next message: [Tinyos-contrib-commits]
CVS: tinyos-1.x/contrib/ustutt/ncunit/java/ncunit/output
Comparison.java, NONE, 1.1 TokenList.java, NONE,
1.1 NCUnit.java, NONE, 1.1 TestCaseAnalyzer.java, NONE,
1.1 TestXMLParser.java, NONE, 1.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/tinyos/tinyos-1.x/contrib/ustutt/ncunit/scripts
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv4808/contrib/ustutt/ncunit/scripts
Added Files:
ncc_cl uninliner ncunit.target
Log Message:
added files to repository
--- NEW FILE: ncc_cl ---
#!/bin/bash
# Copyright (c) 2007, Institute of Parallel and Distributed Systems
# (IPVS), Universität Stuttgart.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# - Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# - Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the
# distribution.
#
# - Neither the names of the Institute of Parallel and Distributed
# Systems and Universität Stuttgart nor the names of its contributors
# may be used to endorse or promote products derived from this
# software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
cd build
echo $@ >> ncunit/uninline.txt
xargs ncc < ncunit/uninline.txt
let error_code=$?
cd ..
avr-objdump -zhD build/mica2test/main.exe > build/mica2test/main.od
avr-objdump -t build/mica2test/main.exe > build/mica2test/main.st
exit $error_code
--- NEW FILE: uninliner ---
#!/bin/bash
# Copyright (c) 2007, Institute of Parallel and Distributed Systems
# (IPVS), Universität Stuttgart.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# - Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# - Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the
# distribution.
#
# - Neither the names of the Institute of Parallel and Distributed
# Systems and Universität Stuttgart nor the names of its contributors
# may be used to endorse or promote products derived from this
# software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
if [[ $OS = "Windows_NT" ]]
then
UNINLINER_CP=`cygpath --windows ${NCUNIT_ROOT}/bin`
else
UNINLINER_CP=${NCUNIT_ROOT}/bin
fi
java -cp "${UNINLINER_CP}" ncunit.compiler.Uninliner $UNINLINE_FUNCTIONS $@
--- NEW FILE: ncunit.target ---
#based on perlnesc.target by Cory Sharp
# Copyright (c) 2007, Institute of Parallel and Distributed Systems
# (IPVS), Universität Stuttgart.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# - Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# - Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the
# distribution.
#
# - Neither the names of the Institute of Parallel and Distributed
# Systems and Universität Stuttgart nor the names of its contributors
# may be used to endorse or promote products derived from this
# software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
OUTPUTDIR = build/ncunit
OUTPUTXML = $(OUTPUTDIR)/output.xml
BUILD_EXTRA_DEPS += ncunit
ORIGINAL_INCLUDES = $(filter -I%,$(shell ncc -v -target=$(PLATFORM) $(filter -I%,$(PFLAGS) $(CFLAGS)) 2>&1 | head -1)) -I$(NCUNIT_ROOT)/mote/
ADDITIONAL_INCLUDES = -I$(OUTPUTDIR) -I$(NCUNIT_ROOT)/mote/ -I$(NCUNIT_ROOT)/mote/internal -I..
TEST_COMPONENT := $(COMPONENT)
TEST_TARGETS += $(TEST_COMPONENT).nc
TEST_ALL_INCLUDES = $(filter -I%,$(shell ncc -v -target=$(PLATFORM) $(filter -I%,$(PFLAGS) $(CFLAGS)) 2>&1 | head -1))
override NCC = $(NCUNIT_ROOT)/scripts/ncc_cl $(ADDITIONAL_INCLUDES)
override COMPONENT = $(OUTPUTDIR)/$(TEST_COMPONENT)
ORIGINAL_DEFINES := $(filter -D%,$(shell ncc -v -target=$(PLATFORM) $(filter -D%,$(PFLAGS) $(CFLAGS)) 2>&1 | head -1))
ifeq ($(OS),Windows_NT)
JAVA_NC_CP := "$(shell cygpath --windows $(NCUNIT_ROOT)/bin);$(shell cygpath --windows $(NESC_CP))"
else
JAVA_NC_CP := "$(NCUNIT_ROOT)/bin:$(NESC_CP)"
endif
ncunit: FORCE
@echo "processing $(COMPONENT) with NCUnit"
rm -f $(OUTPUTDIR)/*
rm -f build/build
mkdir -p $(OUTPUTDIR)
ln -s . build/build
ncc -fsyntax-only -fnesc-dump=interfaces -fnesc-dump=interfacedefs -fnesc-dump=functions -fnesc-dump=variables\(attribute\(test\)\) -fnesc-dump=referenced\(tags,interfacedefs,functions,interfaces\) -fnesc-dump=components\(wiring\) -fnesc-dumpfile=$(OUTPUTXML) -target=$(PLATFORM) $(ORIGINAL_INCLUDES) $(ORIGINAL_DEFINES) $(TEST_TARGETS)
cp $(TEST_TARGETS) $(OUTPUTDIR)
java -Xmx128M -cp $(JAVA_NC_CP) ncunit.output.NCUnit $(OUTPUTXML) $(OUTPUTDIR)
- Previous message: [Tinyos-contrib-commits]
CVS: tinyos-1.x/contrib/ustutt/ncunit/example
Makefile, NONE, 1.1 .cvsignore, NONE, 1.1 ToTestC.nc, NONE,
1.1 TestAssertM.nc, NONE, 1.1 TestAssert.nc, NONE,
1.1 ToTestM.nc, NONE, 1.1
- Next message: [Tinyos-contrib-commits]
CVS: tinyos-1.x/contrib/ustutt/ncunit/java/ncunit/output
Comparison.java, NONE, 1.1 TokenList.java, NONE,
1.1 NCUnit.java, NONE, 1.1 TestCaseAnalyzer.java, NONE,
1.1 TestXMLParser.java, NONE, 1.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Tinyos-contrib-commits
mailing list