ref: c34608fdf5ee53e1caba64bd1f8933e359a66ab0
parent: cf4ab9cac6996d9ad65ab0a6987ba328a9c93a76
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Fri Feb 16 11:48:57 EST 2018
[test/ar] First version of the ar test
--- /dev/null
+++ b/tests/ar/execute/files/file1
@@ -1,0 +1,3 @@
+This is the first file,
+and it should go in the
+first position in the archive.
--- /dev/null
+++ b/tests/ar/execute/files/file2
@@ -1,0 +1,3 @@
+But this other one is the second one,
+and it shouldn't go in the first position
+because it should go in the second position.
--- /dev/null
+++ b/tests/ar/execute/files/file3
@@ -1,0 +1,3 @@
+and at the end, this is the last file
+that should go at the end of the file,
+thus it should go in the third position.
--- /dev/null
+++ b/tests/ar/execute/tesh.sh
@@ -1,0 +1,7 @@
+#!/bin/sh
+
+set -e
+
+cd files
+ar -qv ../test.a file1 file2
+ar -qv ../test.a file3