]>
git.proxmox.com Git - mirror_edk2.git/blob - AppPkg/Applications/OrderedCollectionTest/gentest.sh
2 # Small test script generator for OrderedCollectionTest.
5 # - generate script: sh gentest.sh >input.txt
6 # - run script with tester: OrderedCollectionTest -i input.txt -o output.txt
8 # Copyright (C) 2014, Red Hat, Inc.
10 # This program and the accompanying materials are licensed and made available
11 # under the terms and conditions of the BSD License which accompanies this
12 # distribution. The full text of the license may be found at
13 # http://opensource.org/licenses/bsd-license.
15 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
16 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR
27 shuf
--input-range=$RANGE_START-$RANGE_STOP |
sed 's/^/insert /'
32 shuf
--input-range=$RANGE_START-$RANGE_STOP |
sed 's/^/delete /'
37 seq $RANGE_START $RANGE_STOP |
sed 's/^/insert /'
42 seq $RANGE_START $RANGE_STOP |
sed 's/^/delete /'
47 seq $RANGE_START $RANGE_STOP |
tac |
sed 's/^/delete /'
51 echo '# populate the tree in random order and empty it iterating forward'
56 echo '# populate the tree in random order and empty it iterating backward'
61 echo '# populate the tree in random order, list it in increasing and'
62 echo '# decreasing order, then empty it in random order'
69 echo '# populate the tree in monotonically increasing order, then undo it'
70 echo '# piecewise in the same order'
75 echo '# populate the tree in monotonically increasing order, then undo it'
76 echo '# piecewise in reverse order'
81 echo '# populate the tree randomly, trigger a run of collisions, then exit'
82 echo '# and let CmdForwardEmpty() empty the tree'