commit 9da943677d5fccad8fbbe68f863bc6b84ba15c1a
parent 37d833508f7a4881f33f45e7efcbc7ff103df1bb
Author: Kyle Milz <kyle@0x30.net>
Date: Mon, 29 Aug 2016 18:01:06 -0600
t: remove deleted files
Diffstat:
3 files changed, 0 insertions(+), 108 deletions(-)
diff --git a/t/inst_correct.sh b/t/inst_correct.sh
@@ -1,59 +0,0 @@
-#
-# Check that a simple program can execute successfully with instrumentation.
-#
-echo 1..5
-. test/utils.sh
-
-cat <<EOF > fib.c
-#include <stdlib.h>
-
-int fibonacci(int n) {
- if (n == 0)
- return 0;
- else if (n == 1)
- return 1;
-
- return fibonacci(n - 1) + fibonacci(n - 2);
-}
-
-int main(int argc, char *argv[]) {
- int n;
-
- if (argc != 2)
- return -1;
-
- n = atoi(argv[1]);
- return fibonacci(n);
-}
-EOF
-
-cat <<EOF > check.good
-Summary:
- 1 Source files used as input
- 1 Application link commands
- 1 Rewrite successes
- 1 Rewritten source compile successes
-
-Totals:
- 21 Lines of source code
- 2 Function definitions
- 3 If statements
- 5 Return statement values
- 4 Call expressions
- 58 Total statements
- 7 Binary operators
-EOF
-
-$CITRUN_TOOLS/citrun-wrap cc -o fib fib.c
-$CITRUN_TOOLS/citrun-check > check.out
-
-check_diff 2
-
-./fib
-[ $? -eq 255 ] && echo ok
-
-./fib 10 # = 55
-[ $? -eq 55 ] && echo ok
-
-./fib 12 # = 6765
-[ $? -eq 144 ] && echo ok
diff --git a/t/inst_preprocess.t b/t/inst_preprocess.t
@@ -1,13 +0,0 @@
-#!/bin/sh
-#
-# Make sure preprocessor flag (-E) causes no instrumentation to be done.
-#
-echo 1..3
-. test/utils.sh
-
-echo "int main(void) { return 0; }" > prepro.c
-
-$CITRUN_TOOLS/citrun-wrap gcc -E prepro.c > combined.out 2>&1
-
-[ $? -eq 0 ] && echo ok 2
-grep -q "int main(void) { return 0; }" combined.out && echo ok 3
diff --git a/t/inst_stdout.sh b/t/inst_stdout.sh
@@ -1,36 +0,0 @@
-#
-# Simple program that prints output.
-#
-echo 1..3
-. test/utils.sh
-
-cat <<EOF > hello.c
-#include <stdio.h>
-
-int main(void) {
- printf("hello, world!");
- return 0;
-}
-EOF
-
-cat <<EOF > check.good
-Summary:
- 1 Source files used as input
- 1 Application link commands
- 1 Rewrite successes
- 1 Rewritten source compile successes
-
-Totals:
- 7 Lines of source code
- 1 Function definitions
- 1 Return statement values
- 1 Call expressions
- 9 Total statements
-EOF
-
-$CITRUN_TOOLS/citrun-wrap cc -o hello hello.c
-$CITRUN_TOOLS/citrun-check > check.out
-
-[ "`./hello`" = "hello, world!" ] && echo ok program prints
-
-check_diff 3