diff --git a/v63004/inref/gtm5730.m b/v63004/inref/gtm5730.m new file mode 100644 index 000000000..9c0ac92e4 --- /dev/null +++ b/v63004/inref/gtm5730.m @@ -0,0 +1,25 @@ +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +; ; +; Copyright (c) 2018 YottaDB LLC. and/or its subsidiaries. ; +; All rights reserved. ; +; ; +; This source code contains the intellectual property ; +; of its copyright holder(s), and is made available ; +; under a license. If you do not know the terms of ; +; the license, please stop and do not read further. ; +; ; +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +; +gtm5730() + + FOR i=1:1:1000 DO + . TSTART + . set ^x(i)=i + . TCOMMIT + + FOR i=1001:1:2000 set ^x(i)=i ; + + KILL ^x + + quit + diff --git a/v63004/instream.csh b/v63004/instream.csh index e993cba1c..e653bfe2d 100644 --- a/v63004/instream.csh +++ b/v63004/instream.csh @@ -18,6 +18,7 @@ # gtm8860 [jake] Tests that journal extract removes additional / from journal and output file paths # gtm8791 [jake] Tests that no longer causes segmentation violation # gtm8202 [jake] Tests the functionality of the -SEQNO qualifier for the mupip journal -extract command +# gtm5730 [jake] Tests that the update process now logs record types with a corresponding, non-numerical, description # gtm1041 [jake] Tests the that env variable gtm_mstack_size sets the size of the M stack as expected #----------------------------------------------------------------------------------------------------------------- @@ -27,7 +28,8 @@ echo "v63004 test starts..." setenv subtest_list_common "" setenv subtest_list_non_replic "" setenv subtest_list_non_replic "$subtest_list_non_replic gtm8909 gtm8860 gtm8791 gtm8202 gtm1041" -setenv subtest_list_replic "" +setenv subtest_list_replic "" +setenv subtest_list_replic "$subtest_list_replic gtm5730" if ($?test_replic == 1) then setenv subtest_list "$subtest_list_common $subtest_list_replic" diff --git a/v63004/outref/gtm5730.txt b/v63004/outref/gtm5730.txt new file mode 100644 index 000000000..12487b6e7 --- /dev/null +++ b/v63004/outref/gtm5730.txt @@ -0,0 +1,8 @@ +# Get start time (used in .updproc file name) +# Run gtm5730.m to update DB 2000 times +# RF_sync to allow reciever to catch up +# Dump .updproc file from recieving side to rcvr.updproc +# Search rcvr.updproc for non-numerical type descriptor + 1 [0x1];Rectype 17 - TCOM + 1001 [0x3e9];Rectype 7 - SET + 2001 [0x7d1];Rectype 4 - KILL diff --git a/v63004/outref/outref.txt b/v63004/outref/outref.txt index 0ae6d894b..60d0992e4 100644 --- a/v63004/outref/outref.txt +++ b/v63004/outref/outref.txt @@ -6,4 +6,7 @@ PASS from gtm8791 PASS from gtm8202 PASS from gtm1041 ##ALLOW_OUTPUT REPLIC +##SUSPEND_OUTPUT NONREPLIC +PASS from gtm5730 +##ALLOW_OUTPUT NONREPLIC v63004 test DONE. diff --git a/v63004/u_inref/gtm5730.csh b/v63004/u_inref/gtm5730.csh new file mode 100755 index 000000000..63415bbae --- /dev/null +++ b/v63004/u_inref/gtm5730.csh @@ -0,0 +1,33 @@ +#!/usr/local/bin/tcsh -f +################################################################# +# # +# Copyright (c) 2018 YottaDB LLC. and/or its subsidiaries. # +# All rights reserved. # +# # +# This source code contains the intellectual property # +# of its copyright holder(s), and is made available # +# under a license. If you do not know the terms of # +# the license, please stop and do not read further. # +# # +################################################################# +# + +$gtm_tst/com/dbcreate.csh mumps 1 >& dbcreate.outx + +echo "# Get start time (used in .updproc file name)" +setenv start_time `cat start_time` # start_time is used in naming conventions + +echo "# Run gtm5730.m to update DB 2000 times" +$gtm_dist/mumps -run gtm5730 > gtm5730.m.log + +echo "# RF_sync to allow reciever to catch up" +$gtm_tst/com/RF_sync.csh + +echo "# Dump .updproc file from recieving side to rcvr.updproc" +$sec_shell 'cat $SEC_DIR/RCVR_'${start_time}.log.updproc'' >& rcvr.updproc + +echo "# Search rcvr.updproc for non-numerical type descriptor" +$ydb_dist/mumps -run LOOP^%XCMD --xec=';write:$zfind(%l,"Rectype") $zpiece(%l,":",5)," ",$zpiece(%l,":",6),!;' < rcvr.updproc + +$gtm_tst/com/dbcheck.csh >& dbcheck.outx +