Skip to content

Commit

Permalink
New v63004/gtm5730 subtest (tests GTM-5730 in V63004)
Browse files Browse the repository at this point in the history
This commit tests the below release note

The Update Process logs record types with their corresponding type description; previously it only logged the integer type value. Note that it is possible, the change could disrupt code that parses the modified results.
  • Loading branch information
JakeYottaDB authored and nars1 committed May 14, 2018
1 parent 014ffcd commit 6381203
Show file tree
Hide file tree
Showing 5 changed files with 72 additions and 1 deletion.
25 changes: 25 additions & 0 deletions v63004/inref/gtm5730.m
Original file line number Diff line number Diff line change
@@ -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

4 changes: 3 additions & 1 deletion v63004/instream.csh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
# gtm8860 [jake] Tests that journal extract removes additional / from journal and output file paths
# gtm8791 [jake] Tests that <ctrl-z> 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
#-----------------------------------------------------------------------------------------------------------------

Expand All @@ -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"
Expand Down
8 changes: 8 additions & 0 deletions v63004/outref/gtm5730.txt
Original file line number Diff line number Diff line change
@@ -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
3 changes: 3 additions & 0 deletions v63004/outref/outref.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
33 changes: 33 additions & 0 deletions v63004/u_inref/gtm5730.csh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 6381203

Please sign in to comment.