From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 802C76DE01E4 for ; Sat, 25 Aug 2018 04:58:03 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.33 X-Spam-Level: X-Spam-Status: No, score=0.33 tagged_above=-999 required=5 tests=[AWL=-0.112, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.211, SPF_NEUTRAL=0.652, UNPARSEABLE_RELAY=0.001] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YASbbf4p09h2 for ; Sat, 25 Aug 2018 04:58:02 -0700 (PDT) Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) by arlo.cworth.org (Postfix) with ESMTPS id 008066DE01F2 for ; Sat, 25 Aug 2018 04:58:01 -0700 (PDT) Received: by mail-wr1-f51.google.com with SMTP id o37-v6so9551387wrf.6 for ; Sat, 25 Aug 2018 04:58:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dme-org.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references; bh=qOkuWmvYhTg2rvod11dZdGMySnWP+KMU+foFirHhVbQ=; b=y1Xp8amj6LN+eevJLeSfJiIG4MT8RYDXmTbebiFUO3kGojOmwExm+FncW5XTuvxemb HucOCxrDpjtYotkahv+gbKR/mvqJCs0O3lw4OyieCQBqtvFatXtrODkgdpuG5O9Wu/5w TuZBTJlqXdWGOufqP35hL5HJEswgxvQN54WfWVYPoCsPZlGKPA61UstTqHUswrB4Dak6 q+gsrb/RLwtunanCYeiGreh01HqM4KcamiQoNHZHiyddgMmCDZ6v1GwRBQrqFFFhjLrR tACClcSw6hEClkvSU84USDVwil+t4iov/cfS0nPXMXOcJO4jpL51oJ5dcm+wXRaEBOXr m70w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=qOkuWmvYhTg2rvod11dZdGMySnWP+KMU+foFirHhVbQ=; b=qT8Vx6vzxCuAJ274aVwcWB1+QhA0dw8SXuv48LU+25o9A1Vzk7HsE9ogA/EosWWuxA 5O0pfI2Vj/UI0xD7LtCgxB944eL9y4umH0Y/MJIXDPRh3/dpsBSySZxYoBoq0cPsHQjS UQLYB71o8XM/8Vzff4USXPS7qhsHxPw459+A6kat6hDF/SS4I53YNmlf87OgiDrsVqwE XIuMKzN1i9DeP0Vl97iXCl5YoZKcBnVJdDxPtx/cbzxXdJjQJd4zLGwSolY/nz+ObUz5 Bv0XHMpDCkY7wo6YsR2V58cKAGmUgV9EW5NFvEE1smNvRoGj3sDB4lIlJkQemyzHBZi1 qZLw== X-Gm-Message-State: APzg51DGErFtTg8Qjcc7ujFoR5CeNVVxr6tv+dUTPfENhoC5pmbpOBwg UZdvbp8qxUUo0FEmZ64TKOpOaX65ILDqQA== X-Google-Smtp-Source: ANB0VdbsMkizuteL2/rnI63kFSx/MEgWh9+aH6ujVSRTUJigCeejMokoZLfkGJqbRHNREFxtkZWglw== X-Received: by 2002:adf:9d1c:: with SMTP id k28-v6mr3933519wre.104.1535198280447; Sat, 25 Aug 2018 04:58:00 -0700 (PDT) Received: from disaster-area.hh.sledj.net (disaster-area.hh.sledj.net. [81.149.164.25]) by smtp.gmail.com with ESMTPSA id 144-v6sm5106534wma.19.2018.08.25.04.57.58 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 25 Aug 2018 04:57:58 -0700 (PDT) Received: from localhost (disaster-area.hh.sledj.net [local]) by disaster-area.hh.sledj.net (OpenSMTPD) with ESMTPA id 08d84963 for ; Sat, 25 Aug 2018 11:57:56 +0000 (UTC) From: David Edmondson To: notmuch@notmuchmail.org Subject: [PATCH v1 1/2] test: Absolute and relative directory paths. Date: Sat, 25 Aug 2018 12:57:55 +0100 Message-Id: <20180825115756.24148-2-dme@dme.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180825115756.24148-1-dme@dme.org> References: <20180825115756.24148-1-dme@dme.org> X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Aug 2018 11:58:03 -0000 --- test/T030-config.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/T030-config.sh b/test/T030-config.sh index e91c3659..f36695c6 100755 --- a/test/T030-config.sh +++ b/test/T030-config.sh @@ -99,4 +99,14 @@ test_expect_equal "$(notmuch --config=alt-config-link config get user.name)" \ test_begin_subtest "Writing config file through symlink follows symlink" test_expect_equal "$(readlink alt-config-link)" "alt-config" +test_begin_subtest "Absolute database path returned" +notmuch config set database.path ${HOME}/Maildir +test_expect_equal "$(notmuch config get database.path)" \ + "${HOME}/Maildir" + +test_begin_subtest "Relative database path properly expanded" +notmuch config set database.path Maildir +test_expect_equal "$(notmuch config get database.path)" \ + "${HOME}/Maildir" + test_done -- 2.11.0