citrun

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

commit 9ee44dbed55c7c017f8bff23d1f7fe5cca70874c
parent 9da943677d5fccad8fbbe68f863bc6b84ba15c1a
Author: Kyle Milz <kyle@0x30.net>
Date:   Mon, 29 Aug 2016 18:07:26 -0600

test: remove project.sh

Diffstat:
Dtest/project.sh | 60------------------------------------------------------------
1 file changed, 0 insertions(+), 60 deletions(-)

diff --git a/test/project.sh b/test/project.sh @@ -1,60 +0,0 @@ -# exports CITRUN_TOOLS and puts us in a temporary directory. -. test/utils.sh - -cat <<EOF > one.c -#include <err.h> -#include <stdlib.h> - -long long fib(long long); -void print_output(long long); - -void -usr1_sig(int signal) -{ - exit(0); -} - -int -main(int argc, char *argv[]) -{ - long long n; - - if (argc != 2) - errx(1, "argc != 2"); - - n = atoi(argv[1]); - - print_output(fib(n)); - return 0; -} -EOF - -cat <<EOF > two.c -long long -fib(long long n) -{ - if (n == 0) - return 0; - else if (n == 1) - return 1; - - return fib(n - 1) + fib(n - 2); -} -EOF - -cat <<EOF > three.c -#include <stdio.h> - -void -print_output(long long n) -{ - fprintf(stderr, "%lli", n); - return; -} -EOF - -cat <<EOF > Jamfile -Main program : one.c two.c three.c ; -EOF - -$CITRUN_TOOLS/citrun-wrap jam