From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 119844 invoked by alias); 4 Mar 2019 07:26:54 -0000 Mailing-List: contact dwz-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Post: List-Help: List-Subscribe: Sender: dwz-owner@sourceware.org Received: (qmail 119831 invoked by uid 89); 4 Mar 2019 07:26:54 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.100.2 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,SPF_PASS autolearn=ham version=3.3.2 spammy= X-Spam-Status: No, score=-26.9 required=5.0 tests=BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,SPF_PASS autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on sourceware.org X-Spam-Level: X-HELO: mx1.suse.de X-Virus-Scanned: by amavisd-new at test-mx.suse.de Date: Tue, 01 Jan 2019 00:00:00 -0000 From: Tom de Vries To: dwz@sourceware.org, jakub@redhat.com Subject: [RFC] Add low-mem-vs-regular.sh test-case Message-ID: <20190304072731.GA15143@delia> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-SW-Source: 2019-q1/txt/msg00067.txt.bz2 Hi, is the assumption on which this test-case is based correct? That is: is the output of regular mode and low-mem mode expected to be identical for all inputs? Thanks, - Tom Add low-mem-vs-regular.sh test-case 2019-03-04 Tom de Vries * testsuite/dwz.tests/low-mem-vs-regular.sh: New test. --- testsuite/dwz.tests/low-mem-vs-regular.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/testsuite/dwz.tests/low-mem-vs-regular.sh b/testsuite/dwz.tests/low-mem-vs-regular.sh new file mode 100755 index 0000000..cbf9479 --- /dev/null +++ b/testsuite/dwz.tests/low-mem-vs-regular.sh @@ -0,0 +1,20 @@ +#!/bin/sh + +set -e + +cp ../hello 1 + +dwz -l0 1 -o 2 +dwz 1 -o 3 +cmp 2 3 + +smaller-than.sh 2 1 +smaller-than.sh 3 1 + +cmp 2 3 + +ls=$(ls) +ls=$(echo $ls) +[ "$ls" = "1 2 3" ] + +rm -f 1 2 3