citrun

watch C/C++ source code execute
Log | Files | Refs | LICENSE

commit 939a18c54852533cfe3a978d4b4c6461b937713c
parent e2c8e871cd9e6f67888b26d76d51b16fc7166643
Author: Kyle Milz <kyle@0x30.net>
Date:   Sat, 13 Aug 2016 00:08:43 -0600

t: add new test for source file extensions

Diffstat:
At/inst_src_ext.t | 33+++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+), 0 deletions(-)

diff --git a/t/inst_src_ext.t b/t/inst_src_ext.t @@ -0,0 +1,33 @@ +#!/bin/sh +# +# Check that the advertised source file extensions work. +# +echo 1..2 + +. test/utils.sh +setup + +touch main.{c,cc,cxx,cpp,C} +$TEST_TOOLS/citrun-wrap cc -c main.c +$TEST_TOOLS/citrun-wrap c++ -c main.cc +$TEST_TOOLS/citrun-wrap c++ -c main.cxx +$TEST_TOOLS/citrun-wrap c++ -c main.cpp +# This one isn't supported +$TEST_TOOLS/citrun-wrap cc -c main.C + +cat <<EOF > check.good +Checking ..done + +Summary: + 1 Log files found + 4 Source files input + 5 Calls to the instrumentation tool + 4 Forked compilers + 4 Instrument successes + +Totals: + 4 Lines of source code +EOF + +$TEST_TOOLS/citrun-check > check.out +diff -u check.out check.good && echo ok 2