]>
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 # SPDX-License-Identifier: BSD-2-Clause-Patent
20 shuf
--input-range=$RANGE_START-$RANGE_STOP |
sed 's/^/insert /'
25 shuf
--input-range=$RANGE_START-$RANGE_STOP |
sed 's/^/delete /'
30 seq $RANGE_START $RANGE_STOP |
sed 's/^/insert /'
35 seq $RANGE_START $RANGE_STOP |
sed 's/^/delete /'
40 seq $RANGE_START $RANGE_STOP |
tac |
sed 's/^/delete /'
44 echo '# populate the tree in random order and empty it iterating forward'
49 echo '# populate the tree in random order and empty it iterating backward'
54 echo '# populate the tree in random order, list it in increasing and'
55 echo '# decreasing order, then empty it in random order'
62 echo '# populate the tree in monotonically increasing order, then undo it'
63 echo '# piecewise in the same order'
68 echo '# populate the tree in monotonically increasing order, then undo it'
69 echo '# piecewise in reverse order'
74 echo '# populate the tree randomly, trigger a run of collisions, then exit'
75 echo '# and let CmdForwardEmpty() empty the tree'