From: glenrendes Date: Tue, 23 Apr 2019 14:24:51 +0000 (+0200) Subject: some cleanup before matrix X-Git-Url: https://git.reasoningtechnology.com/style/static/gitweb.js?a=commitdiff_plain;h=19b10f61c07c233c62a283691710a3e2e4788340;p=subu some cleanup before matrix --- diff --git a/module/da/test/results/results_2019-04-19T09:41:00Z b/module/da/test/results/results_2019-04-19T09:41:00Z new file mode 100644 index 0000000..2649648 --- /dev/null +++ b/module/da/test/results/results_2019-04-19T09:41:00Z @@ -0,0 +1,78 @@ +Hello Emacs + +2019-04-19T09:46:09Z +glendawest045@phoenix§~/subu/module/da§ +> make dist-clean dep lib +/usr/bin/make --no-print-directory -f /home/glendawest045/subu/tool/lib/makefile-cc dist-clean +for i in tmp/da.lib.o tmp/makefile-cc.deps; do rm $i || true; done +for i in ; do [ -e $i ] && rm $i || true; done +rm include/da.h || true +rm lib/libda.a || true +if [ -e tmp/makefile-cc.deps ]; then rm tmp/makefile-cc.deps; fi +/usr/bin/make --no-print-directory -f /home/glendawest045/subu/tool/lib/makefile-cc dep +C compiler only deps +deps for C linking +cp src/da.lib.h include/da.h +/usr/bin/make --no-print-directory -f /home/glendawest045/subu/tool/lib/makefile-cc lib +gcc -std=gnu11 -fPIC -Isrc -Iinclude -I/home/glendawest045/subu/module/share/include -ggdb -O0 -Werror -DDEBUG -DDEBUGDB -o tmp/da.lib.o -c src/da.lib.c +ar rcs lib/libda.a tmp/da.lib.o + +2019-04-19T09:46:27Z +glendawest045@phoenix§~/subu/module/da§ +> cd test/ + +2019-04-19T09:47:29Z +glendawest045@phoenix§~/subu/module/da/test§ +> make dist-clean lib exec +/usr/bin/make --no-print-directory -f /home/glendawest045/subu/tool/lib/makefile-cc dist-clean +for i in tmp/test_da.cli.o tmp/makefile-cc.deps tmp/test_da.lib.o; do rm $i || true; done +for i in exec/test_da; do [ -e $i ] && rm $i || true; done +rm include/test.h || true +rm: cannot remove 'include/test.h': No such file or directory +rm lib/libtest.a || true +/usr/bin/make --no-print-directory -f /home/glendawest045/subu/tool/lib/makefile-cc lib +gcc -std=gnu11 -fPIC -Iinclude -I../include -ggdb -DDEBUG -DDEBUGDB -o tmp/test_da.lib.o -c src/test_da.lib.c +ar rcs lib/libtest.a tmp/test_da.lib.o +/usr/bin/make --no-print-directory -f /home/glendawest045/subu/tool/lib/makefile-cc exec +make sub_exec +/usr/bin/make --no-print-directory -f /home/glendawest045/subu/tool/lib/makefile-cc sub_exec +make[3]: *** No rule to make target 'exec/test_da', needed by 'sub_exec'. Stop. +make[2]: *** [makefile:31: sub_exec] Error 2 +make[1]: *** [/home/glendawest045/subu/tool/lib/makefile-cc:164: exec] Error 2 +make: *** [makefile:23: exec] Error 2 + +2019-04-19T09:47:43Z +glendawest045@phoenix§~/subu/module/da/test§ +> make dist-clean dep lib exec +/usr/bin/make --no-print-directory -f /home/glendawest045/subu/tool/lib/makefile-cc dist-clean +for i in tmp/test_da.lib.o; do rm $i || true; done +for i in exec/test_da; do [ -e $i ] && rm $i || true; done +rm include/test.h || true +rm: cannot remove 'include/test.h': No such file or directory +rm lib/libtest.a || true +if [ -e tmp/makefile-cc.deps ]; then rm tmp/makefile-cc.deps; fi +/usr/bin/make --no-print-directory -f /home/glendawest045/subu/tool/lib/makefile-cc dep +C compiler only deps +deps for C linking +/usr/bin/make --no-print-directory -f /home/glendawest045/subu/tool/lib/makefile-cc lib +gcc -std=gnu11 -fPIC -Iinclude -I../include -ggdb -DDEBUG -DDEBUGDB -o tmp/test_da.lib.o -c src/test_da.lib.c +ar rcs lib/libtest.a tmp/test_da.lib.o +/usr/bin/make --no-print-directory -f /home/glendawest045/subu/tool/lib/makefile-cc exec +make sub_exec +/usr/bin/make --no-print-directory -f /home/glendawest045/subu/tool/lib/makefile-cc sub_exec +gcc -std=gnu11 -fPIC -Iinclude -I../include -ggdb -DDEBUG -DDEBUGDB -o tmp/test_da.cli.o -c src/test_da.cli.c +gcc -o exec/test_da tmp/test_da.cli.o -Llib -L../lib -ltest -lda + +2019-04-19T09:48:09Z +glendawest045@phoenix§~/subu/module/da/test§ +> cd exec/ + +2019-04-19T09:48:12Z +glendawest045@phoenix§~/subu/module/da/test/exec§ +> ./test_da +test_da_push_alloc_0 failed +failed 1 of 21 tests + +2019-04-19T09:48:14Z +glendawest045@phoenix§~/subu/module/da/test/exec§ +> \ No newline at end of file diff --git a/module/da/test/results/results_2019-04-23T14:20:14Z_passed b/module/da/test/results/results_2019-04-23T14:20:14Z_passed new file mode 100644 index 0000000..a82fc93 --- /dev/null +++ b/module/da/test/results/results_2019-04-23T14:20:14Z_passed @@ -0,0 +1,25 @@ +Hello Emacs + + +2019-04-23T14:20:14Z +glendawest045@phoenix§~/subu/module/da/test§ +> make lib exec +/usr/bin/make --no-print-directory -f /home/glendawest045/subu/tool/lib/makefile-cc lib +make[1]: Nothing to be done for 'lib'. +/usr/bin/make --no-print-directory -f /home/glendawest045/subu/tool/lib/makefile-cc exec +make sub_exec +/usr/bin/make --no-print-directory -f /home/glendawest045/subu/tool/lib/makefile-cc sub_exec +make[3]: Nothing to be done for 'sub_exec'. + +2019-04-23T14:20:40Z +glendawest045@phoenix§~/subu/module/da/test§ +> cd exec/ + +2019-04-23T14:20:45Z +glendawest045@phoenix§~/subu/module/da/test/exec§ +> ./test_da +passed all 21 tests + +2019-04-23T14:20:47Z +glendawest045@phoenix§~/subu/module/da/test/exec§ +> \ No newline at end of file diff --git a/module/da/test/results_2019-04-19T09:41:00Z b/module/da/test/results_2019-04-19T09:41:00Z deleted file mode 100644 index 2649648..0000000 --- a/module/da/test/results_2019-04-19T09:41:00Z +++ /dev/null @@ -1,78 +0,0 @@ -Hello Emacs - -2019-04-19T09:46:09Z -glendawest045@phoenix§~/subu/module/da§ -> make dist-clean dep lib -/usr/bin/make --no-print-directory -f /home/glendawest045/subu/tool/lib/makefile-cc dist-clean -for i in tmp/da.lib.o tmp/makefile-cc.deps; do rm $i || true; done -for i in ; do [ -e $i ] && rm $i || true; done -rm include/da.h || true -rm lib/libda.a || true -if [ -e tmp/makefile-cc.deps ]; then rm tmp/makefile-cc.deps; fi -/usr/bin/make --no-print-directory -f /home/glendawest045/subu/tool/lib/makefile-cc dep -C compiler only deps -deps for C linking -cp src/da.lib.h include/da.h -/usr/bin/make --no-print-directory -f /home/glendawest045/subu/tool/lib/makefile-cc lib -gcc -std=gnu11 -fPIC -Isrc -Iinclude -I/home/glendawest045/subu/module/share/include -ggdb -O0 -Werror -DDEBUG -DDEBUGDB -o tmp/da.lib.o -c src/da.lib.c -ar rcs lib/libda.a tmp/da.lib.o - -2019-04-19T09:46:27Z -glendawest045@phoenix§~/subu/module/da§ -> cd test/ - -2019-04-19T09:47:29Z -glendawest045@phoenix§~/subu/module/da/test§ -> make dist-clean lib exec -/usr/bin/make --no-print-directory -f /home/glendawest045/subu/tool/lib/makefile-cc dist-clean -for i in tmp/test_da.cli.o tmp/makefile-cc.deps tmp/test_da.lib.o; do rm $i || true; done -for i in exec/test_da; do [ -e $i ] && rm $i || true; done -rm include/test.h || true -rm: cannot remove 'include/test.h': No such file or directory -rm lib/libtest.a || true -/usr/bin/make --no-print-directory -f /home/glendawest045/subu/tool/lib/makefile-cc lib -gcc -std=gnu11 -fPIC -Iinclude -I../include -ggdb -DDEBUG -DDEBUGDB -o tmp/test_da.lib.o -c src/test_da.lib.c -ar rcs lib/libtest.a tmp/test_da.lib.o -/usr/bin/make --no-print-directory -f /home/glendawest045/subu/tool/lib/makefile-cc exec -make sub_exec -/usr/bin/make --no-print-directory -f /home/glendawest045/subu/tool/lib/makefile-cc sub_exec -make[3]: *** No rule to make target 'exec/test_da', needed by 'sub_exec'. Stop. -make[2]: *** [makefile:31: sub_exec] Error 2 -make[1]: *** [/home/glendawest045/subu/tool/lib/makefile-cc:164: exec] Error 2 -make: *** [makefile:23: exec] Error 2 - -2019-04-19T09:47:43Z -glendawest045@phoenix§~/subu/module/da/test§ -> make dist-clean dep lib exec -/usr/bin/make --no-print-directory -f /home/glendawest045/subu/tool/lib/makefile-cc dist-clean -for i in tmp/test_da.lib.o; do rm $i || true; done -for i in exec/test_da; do [ -e $i ] && rm $i || true; done -rm include/test.h || true -rm: cannot remove 'include/test.h': No such file or directory -rm lib/libtest.a || true -if [ -e tmp/makefile-cc.deps ]; then rm tmp/makefile-cc.deps; fi -/usr/bin/make --no-print-directory -f /home/glendawest045/subu/tool/lib/makefile-cc dep -C compiler only deps -deps for C linking -/usr/bin/make --no-print-directory -f /home/glendawest045/subu/tool/lib/makefile-cc lib -gcc -std=gnu11 -fPIC -Iinclude -I../include -ggdb -DDEBUG -DDEBUGDB -o tmp/test_da.lib.o -c src/test_da.lib.c -ar rcs lib/libtest.a tmp/test_da.lib.o -/usr/bin/make --no-print-directory -f /home/glendawest045/subu/tool/lib/makefile-cc exec -make sub_exec -/usr/bin/make --no-print-directory -f /home/glendawest045/subu/tool/lib/makefile-cc sub_exec -gcc -std=gnu11 -fPIC -Iinclude -I../include -ggdb -DDEBUG -DDEBUGDB -o tmp/test_da.cli.o -c src/test_da.cli.c -gcc -o exec/test_da tmp/test_da.cli.o -Llib -L../lib -ltest -lda - -2019-04-19T09:48:09Z -glendawest045@phoenix§~/subu/module/da/test§ -> cd exec/ - -2019-04-19T09:48:12Z -glendawest045@phoenix§~/subu/module/da/test/exec§ -> ./test_da -test_da_push_alloc_0 failed -failed 1 of 21 tests - -2019-04-19T09:48:14Z -glendawest045@phoenix§~/subu/module/da/test/exec§ -> \ No newline at end of file diff --git a/module/da/test/src/test_da.cli.c b/module/da/test/src/test_da.cli.c index 3d600a3..ecd79ea 100644 --- a/module/da/test/src/test_da.cli.c +++ b/module/da/test/src/test_da.cli.c @@ -29,7 +29,6 @@ int main(){ test_da_free_0, test_da_emptyq_0, test_da_length_0, - test_da_push_alloc_0, NULL}; char *test_names[] = { @@ -54,7 +53,6 @@ int main(){ "test_da_free_0", "test_da_emptyq_0", "test_da_length_0", - "test_da_push_alloc_0", NULL}; // call tests diff --git a/module/da/test/src/test_da.lib.c b/module/da/test/src/test_da.lib.c index b3f53b8..4e872c1 100644 --- a/module/da/test/src/test_da.lib.c +++ b/module/da/test/src/test_da.lib.c @@ -698,33 +698,6 @@ bool test_da_length_0(){ return result; } -//still failing -//tests da_push_alloc(){ -bool test_da_push_alloc_0(){ - Da da; - Da *da_pt = &da; - da_alloc(da_pt, sizeof(char)); - char cats[] = "cats"; - da_push(da_pt, &cats[0]); - da_push(da_pt, &cats[1]); - da_push(da_pt, &cats[2]); - da_push(da_pt, &cats[3]); - - //save end point and rewind - char *stop = da.end; - da_rewind(da_pt); - bool flag1 = da.base == da.end; - - //allocate for pushes but don't change data - char *next = da_pt->base; - bool flag2 = next != da_pt->end; - while(flag2 && next != stop){ - next = da_push_alloc(da_pt); - flag2 = next != da_pt->end; - } - - return flag1 && flag2; -} /* Functions @@ -738,7 +711,6 @@ bool test_da_push_alloc_0(){ -da_boundq -da_index -da_strings_exists_0 -da_push_alloc -da_push -da_pop da_endq @@ -779,6 +751,5 @@ test_da_alloc_0 test_da_free_0 test_da_emptyq_0 test_da_length_0 -test_da_push_alloc_0 */ diff --git a/module/da/test/src/test_da.lib.h b/module/da/test/src/test_da.lib.h index f0b797b..1cc5f8e 100644 --- a/module/da/test/src/test_da.lib.h +++ b/module/da/test/src/test_da.lib.h @@ -22,6 +22,5 @@ bool test_da_alloc_0(); bool test_da_free_0(); bool test_da_emptyq_0(); bool test_da_length_0(); -bool test_da_push_alloc_0(); #endif