From mboxrd@z Thu Jan 1 00:00:00 1970 From: iyzsong@openmailbox.org Subject: [PATCH]: tests: Add opensmtpd-service-type test Date: Sat, 26 Nov 2016 09:52:41 +0000 (UTC) Message-ID: <161f9ae82e6ff5a8@localhost> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="103083039-1480153961=:20246" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49710) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cAZfa-00015t-Rq for guix-devel@gnu.org; Sat, 26 Nov 2016 04:53:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cAZfX-0006WQ-Gj for guix-devel@gnu.org; Sat, 26 Nov 2016 04:53:18 -0500 Received: from smtp18.openmailbox.org ([62.4.1.52]:50873 helo=smtp3.openmailbox.org) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cAZfX-0006T0-2O for guix-devel@gnu.org; Sat, 26 Nov 2016 04:53:15 -0500 Received: from localhost (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id d824026e for ; Sat, 26 Nov 2016 09:52:41 +0000 (UTC) List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org --103083039-1480153961=:20246 Content-ID: <20161126175241.20246@localhost> Content-Type: text/plain My first system test patch, TIA for review! --103083039-1480153961=:20246 Content-ID: <20161126175241.20246.1@localhost> Content-Type: application/octet-stream; name=0001-tests-Add-opensmtpd-service-type-test.patch Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=0001-tests-Add-opensmtpd-service-type-test.patch RnJvbSA2MTA3YjAxMWVlOWYwZmM0NDVhZWNlZWFiMzhiOTYzYzZjZjg0YjNhIE1vbiBTZXAgMTcg MDA6MD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cnZpY2VzIChjb25zKgorICAgICAgICAgICAg ICAgKGRoY3AtY2xpZW50LXNlcnZpY2UpCisgICAgICAgICAgICAgICAoc2VydmljZSBvcGVuc210 cGQtc2VydmljZS10eXBlCisgICAgICAgICAgICAgICAgICAgICAgICAob3BlbnNtdHBkLWNvbmZp Z3VyYXRpb24KKyAgICAgICAgICAgICAgICAgICAgICAgICAoY29uZmlnLWZpbGUKKyAgICAgICAg ICAgICAgICAgICAgICAgICAgKHBsYWluLWZpbGUgInNtdHBkLmNvbmYiICIKK2xpc3RlbiBvbiAw LjAuMC4wCithY2NlcHQgZnJvbSBhbnkgZm9yIGxvY2FsIGRlbGl2ZXIgdG8gbWJveAorIikpKSkK KyAgICAgICAgICAgICAgICViYXNlLXNlcnZpY2VzKSkpKQorCisoZGVmaW5lIChydW4tb3BlbnNt dHBkLXRlc3QpCisgICJSZXR1cm4gYSB0ZXN0IG9mIGFuIE9TIHJ1bm5pbmcgT3BlblNNVFBEIHNl cnZpY2UuIgorICAobWxldCogJXN0b3JlLW1vbmFkICgoY29tbWFuZCAoc3lzdGVtLXFlbXUtaW1h Z2Uvc2hhcmVkLXN0b3JlLXNjcmlwdAorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg KG1hcmlvbmV0dGUtb3BlcmF0aW5nLXN5c3RlbQorICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICVvcGVuc210cGQtb3MKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAj OmltcG9ydGVkLW1vZHVsZXMgJygoZ251IHNlcnZpY2VzIGhlcmQpKSkKKyAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICM6Z3JhcGhpYz8gI2YpKSkKKyAgICAoZGVmaW5lIHRlc3QKKyAg ICAgICh3aXRoLWltcG9ydGVkLW1vZHVsZXMgJygoZ251IGJ1aWxkIG1hcmlvbmV0dGUpKQorICAg ICAgICAjfihiZWdpbgorICAgICAgICAgICAgKHVzZS1tb2R1bGVzIChybnJzIGJhc2UpCisgICAg ICAgICAgICAgICAgICAgICAgICAgKHNyZmkgc3JmaS02NCkKKyAgICAgICAgICAgICAgICAgICAg ICAgICAoaWNlLTkgcmRlbGltKQorICAgICAgICAgICAgICAgICAgICAgICAgIChpY2UtOSByZWdl eCkKKyAgICAgICAgICAgICAgICAgICAgICAgICAoZ251IGJ1aWxkIG1hcmlvbmV0dGUpKQorCisg ICAgICAgICAgICAoZGVmaW5lIG1hcmlvbmV0dGUKKyAgICAgICAgICAgICAgKG1ha2UtbWFyaW9u ZXR0ZQorICAgICAgICAgICAgICAgOzsgRW5hYmxlIFRDUCBmb3J3YXJkaW5nIG9mIHRoZSBndWVz dCdzIHBvcnQgMjUuCisgICAgICAgICAgICAgICAnKCMkY29tbWFuZCAiLW5ldCIgInVzZXIsaG9z dGZ3ZD10Y3A6OjEwMjUtOjI1IikpKQorCisgICAgICAgICAgICAoZGVmaW5lIChyZWFkLXJlcGx5 LWNvZGUgcG9ydCkKKyAgICAgICAgICAgICAgIlJlYWQgYSBTTVRQIHJlcGx5IGZyb20gUE9SVCBh bmQgcmV0dXJuIGl0cyByZXBseSBjb2RlLiIKKyAgICAgICAgICAgICAgKGxldCogKChsaW5lICAg ICAgKHJlYWQtbGluZSBwb3J0KSkKKyAgICAgICAgICAgICAgICAgICAgIChtbyAgICAgICAgKHN0 cmluZy1tYXRjaCAiKFswLTldKykoWyAtXSkuKiIgbGluZSkpCisgICAgICAgICAgICAgICAgICAg ICAoY29kZSAgICAgIChzdHJpbmctPm51bWJlciAobWF0Y2g6c3Vic3RyaW5nIG1vIDEpKSkKKyAg ICAgICAgICAgICAgICAgICAgIChmaW5pc2hlZD8gKHN0cmluZz0gIiAiIChtYXRjaDpzdWJzdHJp bmcgbW8gMikpKSkKKyAgICAgICAgICAgICAgICAoaWYgZmluaXNoZWQ/CisgICAgICAgICAgICAg ICAgICAgIGNvZGUKKyAgICAgICAgICAgICAgICAgICAgKHJlYWQtcmVwbHktY29kZSBwb3J0KSkp KQorCisgICAgICAgICAgICAobWtkaXIgIyRvdXRwdXQpCisgICAgICAgICAgICAoY2hkaXIgIyRv dXRwdXQpCisKKyAgICAgICAgICAgICh0ZXN0LWJlZ2luICJvcGVuc21wdGQiKQorCisgICAgICAg ICAgICAodGVzdC1hc3NlcnQgInNlcnZpY2UgaXMgcnVubmluZyIKKyAgICAgICAgICAgICAgKG1h cmlvbmV0dGUtZXZhbAorICAgICAgICAgICAgICAgJyhiZWdpbgorICAgICAgICAgICAgICAgICAg KHVzZS1tb2R1bGVzIChnbnUgc2VydmljZXMgaGVyZCkpCisgICAgICAgICAgICAgICAgICAoc3Rh cnQtc2VydmljZSAnc210cGQpCisgICAgICAgICAgICAgICAgICAjdCkKKyAgICAgICAgICAgICAg IG1hcmlvbmV0dGUpKQorCisgICAgICAgICAgICAodGVzdC1hc3NlcnQgIm1ib3ggaXMgZW1wdHki CisgICAgICAgICAgICAgIChtYXJpb25ldHRlLWV2YWwKKyAgICAgICAgICAgICAgICcoYW5kIChm aWxlLWV4aXN0cz8gIi92YXIvbWFpbCIpCisgICAgICAgICAgICAgICAgICAgICAobm90IChmaWxl LWV4aXN0cz8gIi92YXIvbWFpbC9yb290IikpKQorICAgICAgICAgICAgICAgbWFyaW9uZXR0ZSkp CisKKyAgICAgICAgICAgICh0ZXN0LWVxICJhY2NlcHQgYW4gZW1haWwiCisgICAgICAgICAgICAg ICN0CisgICAgICAgICAgICAgIChsZXQqICgoc210cCAoc29ja2V0IEFGX0lORVQgU09DS19TVFJF QU0gMCkpCisgICAgICAgICAgICAgICAgICAgICAoYWRkciAobWFrZS1zb2NrZXQtYWRkcmVzcyBB Rl9JTkVUIElOQUREUl9MT09QQkFDSyAxMDI1KSkpCisgICAgICAgICAgICAgICAgKGNvbm5lY3Qg c210cCBhZGRyKQorICAgICAgICAgICAgICAgIDs7IEJlIGdyZWV0ZWQuCisgICAgICAgICAgICAg ICAgKHJlYWQtcmVwbHktY29kZSBzbXRwKSAgICAgICAgICAgICA7MjIwCisgICAgICAgICAgICAg ICAgOzsgR3JlZXQgdGhlIHNlcnZlci4KKyAgICAgICAgICAgICAgICAod3JpdGUtbGluZSAiRUhM TyBzb21laG9zdCIgc210cCkKKyAgICAgICAgICAgICAgICAocmVhZC1yZXBseS1jb2RlIHNtdHAp ICAgICAgICAgICAgIDsyNTAKKyAgICAgICAgICAgICAgICA7OyBTZXQgc2VuZGVyIGVtYWlsLgor ICAgICAgICAgICAgICAgICh3cml0ZS1saW5lICJNQUlMIEZST006IDxzb21lb25lPiIgc210cCkK KyAgICAgICAgICAgICAgICAocmVhZC1yZXBseS1jb2RlIHNtdHApICAgICAgICAgICAgIDsyNTAK KyAgICAgICAgICAgICAgICA7OyBTZXQgcmVjaXBpZW50IGVtYWlsLgorICAgICAgICAgICAgICAg ICh3cml0ZS1saW5lICJSQ1BUIFRPOiA8cm9vdD4iIHNtdHApCisgICAgICAgICAgICAgICAgKHJl YWQtcmVwbHktY29kZSBzbXRwKSAgICAgICAgICAgICA7MjUwCisgICAgICAgICAgICAgICAgOzsg U2VuZCBtZXNzYWdlLgorICAgICAgICAgICAgICAgICh3cml0ZS1saW5lICJEQVRBIiBzbXRwKQor ICAgICAgICAgICAgICAgIChyZWFkLXJlcGx5LWNvZGUgc210cCkgICAgICAgICAgICAgOzM1NAor ICAgICAgICAgICAgICAgICh3cml0ZS1saW5lICJTdWJqZWN0OiBIZWxsbyIgc210cCkKKyAgICAg ICAgICAgICAgICAobmV3bGluZSBzbXRwKQorICAgICAgICAgICAgICAgICh3cml0ZS1saW5lICJO aWNlIHRvIG1lZXQgeW91ISIgc210cCkKKyAgICAgICAgICAgICAgICAod3JpdGUtbGluZSAiLiIg c210cCkKKyAgICAgICAgICAgICAgICAocmVhZC1yZXBseS1jb2RlIHNtdHApICAgICAgICAgICAg IDsyNTAKKyAgICAgICAgICAgICAgICA7OyBTYXkgZ29vZGJ5ZS4KKyAgICAgICAgICAgICAgICAo d3JpdGUtbGluZSAiUVVJVCIgc210cCkKKyAgICAgICAgICAgICAgICAocmVhZC1yZXBseS1jb2Rl IHNtdHApICAgICAgICAgICAgIDsyMjEKKyAgICAgICAgICAgICAgICAoY2xvc2Ugc210cCkKKyAg ICAgICAgICAgICAgICAjdCkpCisKKyAgICAgICAgICAgICh0ZXN0LWFzc2VydCAibWFpbCBhcnJp dmVkIgorICAgICAgICAgICAgICAobWFyaW9uZXR0ZS1ldmFsCisgICAgICAgICAgICAgICAnKGJl Z2luCisgICAgICAgICAgICAgICAgICAodXNlLW1vZHVsZXMgKGljZS05IHBvcGVuKQorICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgIChpY2UtOSByZGVsaW0pKQorCisgICAgICAgICAgICAg ICAgICAoZGVmaW5lIChxdWV1ZS1lbXB0eT8pCisgICAgICAgICAgICAgICAgICAgIChlb2Ytb2Jq ZWN0PworICAgICAgICAgICAgICAgICAgICAgKHJlYWQtbGluZQorICAgICAgICAgICAgICAgICAg ICAgIChvcGVuLWlucHV0LXBpcGUgInNtdHBjdGwgc2hvdyBxdWV1ZSIpKSkpCisKKyAgICAgICAg ICAgICAgICAgIChsZXQgd2FpdCAoKQorICAgICAgICAgICAgICAgICAgICAoaWYgKHF1ZXVlLWVt cHR5PykKKyAgICAgICAgICAgICAgICAgICAgICAgIChmaWxlLWV4aXN0cz8gIi92YXIvbWFpbC9y b290IikKKyAgICAgICAgICAgICAgICAgICAgICAgIChiZWdpbiAoc2xlZXAgMSkgKHdhaXQpKSkp KQorICAgICAgICAgICAgICAgbWFyaW9uZXR0ZSkpCisKKyAgICAgICAgICAgICh0ZXN0LWVuZCkK KyAgICAgICAgICAgIChleGl0ICg9ICh0ZXN0LXJ1bm5lci1mYWlsLWNvdW50ICh0ZXN0LXJ1bm5l ci1jdXJyZW50KSkgMCkpKSkpCisKKyAgICAoZ2V4cC0+ZGVyaXZhdGlvbiAib3BlbnNtdHBkLXRl c3QiIHRlc3QpKSkKKworKGRlZmluZSAldGVzdC1vcGVuc210cGQKKyAgKHN5c3RlbS10ZXN0Cisg ICAobmFtZSAib3BlbnNtdHBkIikKKyAgIChkZXNjcmlwdGlvbiAiU2VuZCBhbiBlbWFpbCB0byBh IHJ1bm5pbmcgT3BlblNNVFBEIHNlcnZlci4iKQorICAgKHZhbHVlIChydW4tb3BlbnNtdHBkLXRl c3QpKSkpCi0tIAoyLjEwLjAKCg== --103083039-1480153961=:20246--