scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit 2b2c61fad02d16cb35a584c6786440124673fe0e
parent a12dfb2efd0750ae59a5d73a4989d29e9e0c0e48
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Wed, 21 Feb 2018 08:37:41 +0000

[tests/ar] Add more tests to test-m

Diffstat:
Mtests/ar/execute/50-test-m.sh | 34+++++++++++++++++++++++++++++++++-
1 file changed, 33 insertions(+), 1 deletion(-)

diff --git a/tests/ar/execute/50-test-m.sh b/tests/ar/execute/50-test-m.sh @@ -22,12 +22,13 @@ file1 EOF cmp $tmp1 $tmp2 + ############################################################################ #move 1st at the end cp master.a file.a ar -mv -a file3 file.a file1 -at -t file.a > $tmp1 +ar -t file.a > $tmp1 cat <<EOF > $tmp2 file2 @@ -36,3 +37,34 @@ file1 EOF cmp $tmp1 $tmp2 + + +############################################################################ +#move 3rd at the beginning + +cp master.a file.a +ar -mv -i file1 file.a file3 +ar -t file.a > $tmp1 + +cat <<EOF > $tmp2 +file3 +file1 +file2 +EOF + +cmp $tmp1 $tmp2 + +############################################################################ +#and now, test without parameters + +cp master.a file.a +ar -mv file.a +ar -t file.a > $tmp1 + +cat <<EOF > $tmp2 +file1 +file2 +file3 +EOF + +cmp $tmp1 $tmp2