source: branches/3.2/mindi-busybox/testsuite/ar.tests @ 3232

Last change on this file since 3232 was 2725, checked in by bruno, 8 years ago
  • Update mindi-busybox to 1.18.3 to avoid problems with the tar command which is now failing on recent versions with busybox 1.7.3
  • Property svn:executable set to *
File size: 735 bytes
Line 
1#!/bin/sh
2# Copyright 2010 Nokia Corporation
3# Written by Alexander Shishkin
4# Licensed under GPLv2 or later, see file LICENSE in this source tree.
5
6. ./testing.sh
7
8# testing "test name" "command(s)" "expected result" "file input" "stdin"
9
10optional FEATURE_AR_CREATE
11
12rm test.a 2>/dev/null
13testing "ar creates archives" \
14       "ar rc test.a README && ar p test.a README | md5sum" \
15       "$(md5sum <README)\n" \
16       "" \
17       ""
18rm test.a
19
20testing "ar replaces things in archives" \
21       "echo 'blah!' >file1 && echo 'blast!' >file2 && ar cr test.a README file1 file2 && mv file2 file1 && ar cr test.a file1 && ar p test.a file1" \
22       "blast!\n" \
23       "" \
24       ""
25rm test.a file1 file1 2>/dev/null
26
27exit $FAILCOUNT
Note: See TracBrowser for help on using the repository browser.