diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-07 19:33:21 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-07 19:33:21 +0300 |
commit | 03b44700523a6aa3a129c35aeb36d790e6d732a7 (patch) | |
tree | bc469e6669e7bb7c9bd5bcc59c5b4f70f0f9a241 /test | |
parent | 03b8a1e6cf21dbcd3f6f03311cf02b91f3630c26 (diff) | |
download | paranucker-03b44700523a6aa3a129c35aeb36d790e6d732a7.tar.gz paranucker-03b44700523a6aa3a129c35aeb36d790e6d732a7.tar.bz2 paranucker-03b44700523a6aa3a129c35aeb36d790e6d732a7.tar.xz paranucker-03b44700523a6aa3a129c35aeb36d790e6d732a7.zip |
Add test for memoryusage plugin command.
Diffstat (limited to 'test')
-rw-r--r-- | test/Makefile | 6 | ||||
-rw-r--r-- | test/test1-01.txt | 3 | ||||
-rw-r--r-- | test/test1-03.txt | 10 |
3 files changed, 14 insertions, 5 deletions
diff --git a/test/Makefile b/test/Makefile index ac92b30..0e5ddbd 100644 --- a/test/Makefile +++ b/test/Makefile @@ -1,4 +1,4 @@ -.PHONY: test1 test2 crashtest1 crashtest2 all crashes clean +.PHONY: test1 test2 test3 crashtest1 crashtest2 all crashes clean .NOTPARALLEL: all allcrash CC := gcc-5 @@ -7,7 +7,7 @@ CXX := g++-5 PLUGIN = ../build/src/.libs/astdumper.so CMD = ${CXX} -fplugin=${PLUGIN} -fplugin-arg-astdumper-command=${1} ${2} -o a.out 2>${3} -all: test1 test2 clean +all: test1 test2 test3 clean crashes: crashtest1 crashtest2 clean clean: @@ -17,6 +17,8 @@ test1: $(call CMD,dump,test1.c,test1-01.txt) test2: $(call CMD,smalldump,test1.c,test1-02.txt) +test3: + $(call CMD,memoryusage,test1.c,test1-03.txt) crashtest1: $(call CMD,dump,crashtest1.h,crashtest1-01.txt) diff --git a/test/test1-01.txt b/test/test1-01.txt index 0f9f533..8f8db0e 100644 --- a/test/test1-01.txt +++ b/test/test1-01.txt @@ -310,7 +310,6 @@ function_decl fun1 test1.c 29:5 integer_cst 32 - type size integer_cst -2147483648 - min value integer_cst 2147483647 - max value - integer_cst 0 - initial statement_list - operand cleanup_point_expr - statement decl_expr - operand @@ -325,7 +324,6 @@ function_decl fun1 test1.c 29:5 integer_cst 32 - type size integer_cst -2147483648 - min value integer_cst 2147483647 - max value - integer_cst 0 - initial cleanup_point_expr - statement decl_expr - operand - isUsed: 1 @@ -339,7 +337,6 @@ function_decl fun1 test1.c 29:5 integer_cst 32 - type size integer_cst -2147483648 - min value integer_cst 2147483647 - max value - integer_cst 1 - initial cleanup_point_expr - statement Not supported node type: expr_stmt - operand - statement cleanup_point_expr - statement diff --git a/test/test1-03.txt b/test/test1-03.txt new file mode 100644 index 0000000..cf0bdab --- /dev/null +++ b/test/test1-03.txt @@ -0,0 +1,10 @@ +Allocations before cleanup: 54 +Allocations after cleanup: 0 +Allocations before cleanup: 57 +Allocations after cleanup: 0 +Allocations before cleanup: 39 +Allocations after cleanup: 0 +Allocations before cleanup: 81 +Allocations after cleanup: 0 +Allocations before cleanup: 50 +Allocations after cleanup: 0 |