4232 |
15 Sep 22 |
peter |
#!/bin/sh |
4232 |
15 Sep 22 |
peter |
2 |
|
4232 |
15 Sep 22 |
peter |
# $Id$ |
4232 |
15 Sep 22 |
peter |
4 |
|
4232 |
15 Sep 22 |
peter |
# Copyright (C) 2022 Peter Johansson |
4232 |
15 Sep 22 |
peter |
6 |
# |
4232 |
15 Sep 22 |
peter |
# This file is part of the yat library, https://dev.thep.lu.se/yat |
4232 |
15 Sep 22 |
peter |
8 |
# |
4232 |
15 Sep 22 |
peter |
# The yat library is free software; you can redistribute it |
4232 |
15 Sep 22 |
peter |
# and/or modify it under the terms of the GNU General Public License as |
4232 |
15 Sep 22 |
peter |
# published by the Free Software Foundation; either version 3 of the |
4232 |
15 Sep 22 |
peter |
# License, or (at your option) any later version. |
4232 |
15 Sep 22 |
peter |
13 |
# |
4232 |
15 Sep 22 |
peter |
# The yat library is distributed in the hope that it will be useful, |
4232 |
15 Sep 22 |
peter |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
4232 |
15 Sep 22 |
peter |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
4232 |
15 Sep 22 |
peter |
# General Public License for more details. |
4232 |
15 Sep 22 |
peter |
18 |
# |
4232 |
15 Sep 22 |
peter |
# You should have received a copy of the GNU General Public License |
4232 |
15 Sep 22 |
peter |
# along with yat. If not, see <https://www.gnu.org/licenses/>. |
4232 |
15 Sep 22 |
peter |
21 |
# |
4232 |
15 Sep 22 |
peter |
22 |
|
4232 |
15 Sep 22 |
peter |
23 |
required= |
4232 |
15 Sep 22 |
peter |
24 |
. test/init.sh || exit 99 |
4232 |
15 Sep 22 |
peter |
25 |
|
4232 |
15 Sep 22 |
peter |
26 |
cat > input.txt <<EOF |
4232 |
15 Sep 22 |
peter |
27 |
Dear John; |
4232 |
15 Sep 22 |
peter |
28 |
|
4232 |
15 Sep 22 |
peter |
29 |
A coupld of lines |
4232 |
15 Sep 22 |
peter |
30 |
Just to test |
4232 |
15 Sep 22 |
peter |
31 |
That the world is determinstic |
4232 |
15 Sep 22 |
peter |
32 |
Adieu!!! |
4232 |
15 Sep 22 |
peter |
33 |
EOF |
4232 |
15 Sep 22 |
peter |
34 |
|
4232 |
15 Sep 22 |
peter |
35 |
../../shuffle < input.txt > out1.txt || exit_fail |
4232 |
15 Sep 22 |
peter |
36 |
../../shuffle < input.txt > out2.txt || exit_fail |
4232 |
15 Sep 22 |
peter |
37 |
|
4232 |
15 Sep 22 |
peter |
38 |
diff out1.txt out2.txt || exit_fail |
4232 |
15 Sep 22 |
peter |
39 |
|
4232 |
15 Sep 22 |
peter |
40 |
exit_success |