<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>testing on Wonderings of a SAT geek</title>
    <link>https://www.msoos.org/tags/testing/</link>
    <description>Recent content in testing on Wonderings of a SAT geek</description>
    <generator>Hugo</generator>
    <language>en-US</language>
    <lastBuildDate>Sat, 27 May 2017 11:06:30 +0000</lastBuildDate>
    <atom:link href="https://www.msoos.org/tags/testing/feed.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Testing and pentesting, a road to effectiveness</title>
      <link>https://www.msoos.org/2017/05/testing-and-pentesting/</link>
      <pubDate>Sat, 27 May 2017 11:06:30 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=3026</guid> 
      <description>&lt;p&gt;I have been involved in computer security and security testing for a while and I think it&amp;rsquo;s time to talk about some aspects of it that get ignored, mostly for the worse. Let me just get this out of the way: security testing (or &lt;a href=&#34;https://en.wikipedia.org/wiki/Penetration_test&#34;&gt;pentesting&lt;/a&gt;, if you like) and testing are &lt;em&gt;very&lt;/em&gt; closely related.&lt;/p&gt;
&lt;h3 id=&#34;the-testing-pyramid&#34;&gt;The Testing Pyramid&lt;/h3&gt;
&lt;p&gt;What&amp;rsquo;s really good about security testing being so close to testing is that you can apply the standard, well-know and widely used techniques from testing to the relatively new field of security testing. First of all, this chart:
&lt;img loading=&#34;lazy&#34; src=&#34;http://www.msoos.org/wordpress/wp-content/uploads/2017/05/triangle3.png&#34;&gt;&lt;/p&gt;
</description>
    </item>
    <item>
      <title>On Testing and Security Engineering</title>
      <link>https://www.msoos.org/2015/11/on-testing-and-security-engineering/</link>
      <pubDate>Wed, 11 Nov 2015 23:45:20 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=2849</guid> 
      <description>I have been working in a large organization for quite a while now where I have seen a lot of testing going on. As an information security engineer, I naturally aligned more with testing and indeed, information security assurance does align well with testing: It&amp;rsquo;s done on a continuous basis, its results usually mean work for developers, operations people, system architects, etc. and not caring about it is equivalent to accepting unknown risks. Since I have been working in an environment where testing was paramount, I have been digging more and more into the testing literature.</description>
    </item>
    <item>
      <title>Testing CryptoMiniSat using GoogleTest</title>
      <link>https://www.msoos.org/2015/11/testing-cryptominisat-using-googletest/</link>
      <pubDate>Sun, 01 Nov 2015 22:13:46 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=2830</guid> 
      <description>&lt;p&gt;Lately, I have been working quite hard on writing module tests for CryptoMinisat using &lt;a href=&#34;https://code.google.com/p/googletest/&#34;&gt;GoogleTest&lt;/a&gt;. I&amp;rsquo;d like to share what I&amp;rsquo;ve learnt and what surprised me most about this exercise.&lt;/p&gt;
&lt;h2 id=&#34;an-example&#34;&gt;An example&lt;/h2&gt;
&lt;p&gt;First of all, let me show how a typical test looks like:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;TEST_F(intree, fail_1)
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;{
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    s-&amp;gt;add_clause_outer(str_to_cl(&amp;#34; 1,  2&amp;#34;));
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    s-&amp;gt;add_clause_outer(str_to_cl(&amp;#34;-2,  3&amp;#34;));
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    s-&amp;gt;add_clause_outer(str_to_cl(&amp;#34;-2, -3&amp;#34;));
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    inp-&amp;gt;intree_probe();
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    check_zero_assigned_lits_contains(s, &amp;#34;-2&amp;#34;);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;}
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Here we are checking that &lt;a href=&#34;http://www.cs.utexas.edu/~marijn/cpaior2013.pdf&#34;&gt;intree probing&lt;/a&gt; finds that the set of three binary clauses cause a failure and it enqueues &amp;ldquo;-2&amp;rdquo; at top level. If one looks at it, it&amp;rsquo;s a fairly trivial test. It turns out that most are in fact, fairly trivial if the system is set up well. This test&amp;rsquo;s setup is the following test fixture:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-gdscript3&#34; data-lang=&#34;gdscript3&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;struct intree : public ::testing::Test {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    intree()
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        must_inter &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; false;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        s &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; new Solver(NULL, &lt;span style=&#34;color:#f92672&#34;&gt;&amp;amp;&lt;/span&gt;must_inter);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        s&lt;span style=&#34;color:#f92672&#34;&gt;-&amp;gt;&lt;/span&gt;new_vars(&lt;span style=&#34;color:#ae81ff&#34;&gt;30&lt;/span&gt;);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        inp &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; s&lt;span style=&#34;color:#f92672&#34;&gt;-&amp;gt;&lt;/span&gt;intree;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;~&lt;/span&gt;intree()
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        delete s;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    Solver&lt;span style=&#34;color:#f92672&#34;&gt;*&lt;/span&gt; s;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    InTree&lt;span style=&#34;color:#f92672&#34;&gt;*&lt;/span&gt; inp;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#a6e22e&#34;&gt;bool&lt;/span&gt; must_inter;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;};
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
    <item>
      <title>Towards CryptoMiniSat 5.0</title>
      <link>https://www.msoos.org/2015/06/towards-cryptominisat-5/</link>
      <pubDate>Sun, 14 Jun 2015 15:42:40 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=2733</guid> 
      <description>&lt;p&gt;I have worked a lot on CryptoMiniSat 5.0 in the past months so I thought I&amp;rsquo;d write a little bit about what I spent my time on.&lt;/p&gt;
&lt;h3 id=&#34;amazon-aws&#34;&gt;Amazon AWS&lt;/h3&gt;
&lt;p&gt;I have put lots of effort into use &lt;a href=&#34;https://en.wikipedia.org/wiki/Amazon_Web_Services&#34;&gt;Amazon AWS&lt;/a&gt; service to run CMS. This is necessary in order to compete at the SAT competition where my competitors have access to massive resources, some to clusters having over 20k CPU cores. Competing against that with a 4-core machine like I did last year will simply not cut it.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
